@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; }
public QualificationType unmarshall(JsonUnmarshallerContext context) throws Exception { QualificationType qualificationType = new QualificationType(); if (context.testExpression("QualificationTypeId", targetDepth)) { context.nextToken(); qualificationType.setQualificationTypeId(context.getUnmarshaller(String.class).unmarshall(context)); qualificationType.setCreationTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); qualificationType.setName(context.getUnmarshaller(String.class).unmarshall(context)); qualificationType.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); qualificationType.setKeywords(context.getUnmarshaller(String.class).unmarshall(context)); qualificationType.setQualificationTypeStatus(context.getUnmarshaller(String.class).unmarshall(context)); qualificationType.setTest(context.getUnmarshaller(String.class).unmarshall(context)); qualificationType.setTestDurationInSeconds(context.getUnmarshaller(Long.class).unmarshall(context)); qualificationType.setAnswerKey(context.getUnmarshaller(String.class).unmarshall(context)); qualificationType.setRetryDelayInSeconds(context.getUnmarshaller(Long.class).unmarshall(context)); qualificationType.setIsRequestable(context.getUnmarshaller(Boolean.class).unmarshall(context)); qualificationType.setAutoGranted(context.getUnmarshaller(Boolean.class).unmarshall(context)); qualificationType.setAutoGrantedValue(context.getUnmarshaller(Integer.class).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateQualificationTypeResult == false) return false; CreateQualificationTypeResult other = (CreateQualificationTypeResult) obj; if (other.getQualificationType() == null ^ this.getQualificationType() == null) return false; if (other.getQualificationType() != null && other.getQualificationType().equals(this.getQualificationType()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateQualificationTypeResult == false) return false; UpdateQualificationTypeResult other = (UpdateQualificationTypeResult) obj; if (other.getQualificationType() == null ^ this.getQualificationType() == null) return false; if (other.getQualificationType() != null && other.getQualificationType().equals(this.getQualificationType()) == false) return false; return true; }
return false; QualificationType other = (QualificationType) obj; if (other.getQualificationTypeId() == null ^ this.getQualificationTypeId() == null) return false; if (other.getQualificationTypeId() != null && other.getQualificationTypeId().equals(this.getQualificationTypeId()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; 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) return false; if (other.getQualificationTypeStatus() != null && other.getQualificationTypeStatus().equals(this.getQualificationTypeStatus()) == false) return false; if (other.getTest() == null ^ this.getTest() == null) return false; if (other.getTest() != null && other.getTest().equals(this.getTest()) == false)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetQualificationTypeResult == false) return false; GetQualificationTypeResult other = (GetQualificationTypeResult) obj; if (other.getQualificationType() == null ^ this.getQualificationType() == null) return false; if (other.getQualificationType() != null && other.getQualificationType().equals(this.getQualificationType()) == false) return false; return true; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getQualificationTypeId() != null) sb.append("QualificationTypeId: ").append(getQualificationTypeId()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); 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(","); if (getTest() != null) sb.append("Test: ").append(getTest()).append(","); if (getTestDurationInSeconds() != null) sb.append("TestDurationInSeconds: ").append(getTestDurationInSeconds()).append(","); if (getAnswerKey() != null) sb.append("AnswerKey: ").append(getAnswerKey()).append(","); if (getRetryDelayInSeconds() != null) sb.append("RetryDelayInSeconds: ").append(getRetryDelayInSeconds()).append(","); if (getIsRequestable() != null) sb.append("IsRequestable: ").append(getIsRequestable()).append(","); if (getAutoGranted() != null) sb.append("AutoGranted: ").append(getAutoGranted()).append(","); if (getAutoGrantedValue() != null) sb.append("AutoGrantedValue: ").append(getAutoGrantedValue()); sb.append("}");
/** * 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); } }