@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQualificationTypeId() == null) ? 0 : getQualificationTypeId().hashCode()); hashCode = prime * hashCode + ((getWorkerId() == null) ? 0 : getWorkerId().hashCode()); hashCode = prime * hashCode + ((getIntegerValue() == null) ? 0 : getIntegerValue().hashCode()); hashCode = prime * hashCode + ((getSendNotification() == null) ? 0 : getSendNotification().hashCode()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getQualificationTypeId() != null) sb.append("QualificationTypeId: ").append(getQualificationTypeId()).append(","); if (getWorkerId() != null) sb.append("WorkerId: ").append(getWorkerId()).append(","); if (getIntegerValue() != null) sb.append("IntegerValue: ").append(getIntegerValue()).append(","); if (getSendNotification() != null) sb.append("SendNotification: ").append(getSendNotification()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociateQualificationWithWorkerRequest == false) return false; AssociateQualificationWithWorkerRequest other = (AssociateQualificationWithWorkerRequest) obj; if (other.getQualificationTypeId() == null ^ this.getQualificationTypeId() == null) return false; if (other.getQualificationTypeId() != null && other.getQualificationTypeId().equals(this.getQualificationTypeId()) == false) return false; if (other.getWorkerId() == null ^ this.getWorkerId() == null) return false; if (other.getWorkerId() != null && other.getWorkerId().equals(this.getWorkerId()) == false) return false; if (other.getIntegerValue() == null ^ this.getIntegerValue() == null) return false; if (other.getIntegerValue() != null && other.getIntegerValue().equals(this.getIntegerValue()) == false) return false; if (other.getSendNotification() == null ^ this.getSendNotification() == null) return false; if (other.getSendNotification() != null && other.getSendNotification().equals(this.getSendNotification()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(AssociateQualificationWithWorkerRequest associateQualificationWithWorkerRequest, ProtocolMarshaller protocolMarshaller) { if (associateQualificationWithWorkerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(associateQualificationWithWorkerRequest.getQualificationTypeId(), QUALIFICATIONTYPEID_BINDING); protocolMarshaller.marshall(associateQualificationWithWorkerRequest.getWorkerId(), WORKERID_BINDING); protocolMarshaller.marshall(associateQualificationWithWorkerRequest.getIntegerValue(), INTEGERVALUE_BINDING); protocolMarshaller.marshall(associateQualificationWithWorkerRequest.getSendNotification(), SENDNOTIFICATION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }