/** * 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 (getGrantTime() != null) sb.append("GrantTime: ").append(getGrantTime()).append(","); if (getIntegerValue() != null) sb.append("IntegerValue: ").append(getIntegerValue()).append(","); if (getLocaleValue() != null) sb.append("LocaleValue: ").append(getLocaleValue()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); }
@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 + ((getGrantTime() == null) ? 0 : getGrantTime().hashCode()); hashCode = prime * hashCode + ((getIntegerValue() == null) ? 0 : getIntegerValue().hashCode()); hashCode = prime * hashCode + ((getLocaleValue() == null) ? 0 : getLocaleValue().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(Qualification qualification, ProtocolMarshaller protocolMarshaller) { if (qualification == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(qualification.getQualificationTypeId(), QUALIFICATIONTYPEID_BINDING); protocolMarshaller.marshall(qualification.getWorkerId(), WORKERID_BINDING); protocolMarshaller.marshall(qualification.getGrantTime(), GRANTTIME_BINDING); protocolMarshaller.marshall(qualification.getIntegerValue(), INTEGERVALUE_BINDING); protocolMarshaller.marshall(qualification.getLocaleValue(), LOCALEVALUE_BINDING); protocolMarshaller.marshall(qualification.getStatus(), STATUS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (other.getGrantTime() != null && other.getGrantTime().equals(this.getGrantTime()) == 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.getLocaleValue() == null ^ this.getLocaleValue() == null)