/** * 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 (getAutoApprovalDelayInSeconds() != null) sb.append("AutoApprovalDelayInSeconds: ").append(getAutoApprovalDelayInSeconds()).append(","); if (getAssignmentDurationInSeconds() != null) sb.append("AssignmentDurationInSeconds: ").append(getAssignmentDurationInSeconds()).append(","); if (getReward() != null) sb.append("Reward: ").append(getReward()).append(","); if (getTitle() != null) sb.append("Title: ").append(getTitle()).append(","); if (getKeywords() != null) sb.append("Keywords: ").append(getKeywords()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getQualificationRequirements() != null) sb.append("QualificationRequirements: ").append(getQualificationRequirements()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAutoApprovalDelayInSeconds() == null) ? 0 : getAutoApprovalDelayInSeconds().hashCode()); hashCode = prime * hashCode + ((getAssignmentDurationInSeconds() == null) ? 0 : getAssignmentDurationInSeconds().hashCode()); hashCode = prime * hashCode + ((getReward() == null) ? 0 : getReward().hashCode()); hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode()); hashCode = prime * hashCode + ((getKeywords() == null) ? 0 : getKeywords().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getQualificationRequirements() == null) ? 0 : getQualificationRequirements().hashCode()); return hashCode; }
if (other.getAutoApprovalDelayInSeconds() != null && other.getAutoApprovalDelayInSeconds().equals(this.getAutoApprovalDelayInSeconds()) == false) return false; if (other.getAssignmentDurationInSeconds() == null ^ this.getAssignmentDurationInSeconds() == null) return false; if (other.getAssignmentDurationInSeconds() != null && other.getAssignmentDurationInSeconds().equals(this.getAssignmentDurationInSeconds()) == false) return false; if (other.getReward() == null ^ this.getReward() == null)
/** * Marshall the given parameter object. */ public void marshall(CreateHITTypeRequest createHITTypeRequest, ProtocolMarshaller protocolMarshaller) { if (createHITTypeRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createHITTypeRequest.getAutoApprovalDelayInSeconds(), AUTOAPPROVALDELAYINSECONDS_BINDING); protocolMarshaller.marshall(createHITTypeRequest.getAssignmentDurationInSeconds(), ASSIGNMENTDURATIONINSECONDS_BINDING); protocolMarshaller.marshall(createHITTypeRequest.getReward(), REWARD_BINDING); protocolMarshaller.marshall(createHITTypeRequest.getTitle(), TITLE_BINDING); protocolMarshaller.marshall(createHITTypeRequest.getKeywords(), KEYWORDS_BINDING); protocolMarshaller.marshall(createHITTypeRequest.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(createHITTypeRequest.getQualificationRequirements(), QUALIFICATIONREQUIREMENTS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }