if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getKeywords() != null) sb.append("Keywords: ").append(getKeywords()).append(","); if (getQualificationTypeStatus() != null) sb.append("QualificationTypeStatus: ").append(getQualificationTypeStatus()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQualificationTypeId() == null) ? 0 : getQualificationTypeId().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getKeywords() == null) ? 0 : getKeywords().hashCode()); hashCode = prime * hashCode + ((getQualificationTypeStatus() == null) ? 0 : getQualificationTypeStatus().hashCode()); hashCode = prime * hashCode + ((getTest() == null) ? 0 : getTest().hashCode()); hashCode = prime * hashCode + ((getTestDurationInSeconds() == null) ? 0 : getTestDurationInSeconds().hashCode()); hashCode = prime * hashCode + ((getAnswerKey() == null) ? 0 : getAnswerKey().hashCode()); hashCode = prime * hashCode + ((getRetryDelayInSeconds() == null) ? 0 : getRetryDelayInSeconds().hashCode()); hashCode = prime * hashCode + ((getIsRequestable() == null) ? 0 : getIsRequestable().hashCode()); hashCode = prime * hashCode + ((getAutoGranted() == null) ? 0 : getAutoGranted().hashCode()); hashCode = prime * hashCode + ((getAutoGrantedValue() == null) ? 0 : getAutoGrantedValue().hashCode()); return hashCode; }
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getKeywords() == null ^ this.getKeywords() == null) return false; if (other.getKeywords() != null && other.getKeywords().equals(this.getKeywords()) == false) return false; if (other.getQualificationTypeStatus() == null ^ this.getQualificationTypeStatus() == null)
/** * Marshall the given parameter object. */ public void marshall(QualificationType qualificationType, ProtocolMarshaller protocolMarshaller) { if (qualificationType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(qualificationType.getQualificationTypeId(), QUALIFICATIONTYPEID_BINDING); protocolMarshaller.marshall(qualificationType.getCreationTime(), CREATIONTIME_BINDING); protocolMarshaller.marshall(qualificationType.getName(), NAME_BINDING); protocolMarshaller.marshall(qualificationType.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(qualificationType.getKeywords(), KEYWORDS_BINDING); protocolMarshaller.marshall(qualificationType.getQualificationTypeStatus(), QUALIFICATIONTYPESTATUS_BINDING); protocolMarshaller.marshall(qualificationType.getTest(), TEST_BINDING); protocolMarshaller.marshall(qualificationType.getTestDurationInSeconds(), TESTDURATIONINSECONDS_BINDING); protocolMarshaller.marshall(qualificationType.getAnswerKey(), ANSWERKEY_BINDING); protocolMarshaller.marshall(qualificationType.getRetryDelayInSeconds(), RETRYDELAYINSECONDS_BINDING); protocolMarshaller.marshall(qualificationType.getIsRequestable(), ISREQUESTABLE_BINDING); protocolMarshaller.marshall(qualificationType.getAutoGranted(), AUTOGRANTED_BINDING); protocolMarshaller.marshall(qualificationType.getAutoGrantedValue(), AUTOGRANTEDVALUE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }