if (getLanguage() != null) sb.append("Language: ").append(getLanguage()).append(","); if (getIssueType() != null) sb.append("IssueType: ").append(getIssueType()).append(","); if (getAttachmentSetId() != null) sb.append("AttachmentSetId: ").append(getAttachmentSetId());
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSubject() == null) ? 0 : getSubject().hashCode()); hashCode = prime * hashCode + ((getServiceCode() == null) ? 0 : getServiceCode().hashCode()); hashCode = prime * hashCode + ((getSeverityCode() == null) ? 0 : getSeverityCode().hashCode()); hashCode = prime * hashCode + ((getCategoryCode() == null) ? 0 : getCategoryCode().hashCode()); hashCode = prime * hashCode + ((getCommunicationBody() == null) ? 0 : getCommunicationBody().hashCode()); hashCode = prime * hashCode + ((getCcEmailAddresses() == null) ? 0 : getCcEmailAddresses().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); hashCode = prime * hashCode + ((getIssueType() == null) ? 0 : getIssueType().hashCode()); hashCode = prime * hashCode + ((getAttachmentSetId() == null) ? 0 : getAttachmentSetId().hashCode()); return hashCode; }
if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false) return false; if (other.getIssueType() == null ^ this.getIssueType() == null) return false; if (other.getIssueType() != null && other.getIssueType().equals(this.getIssueType()) == false) return false; if (other.getAttachmentSetId() == null ^ this.getAttachmentSetId() == null)
/** * Marshall the given parameter object. */ public void marshall(CreateCaseRequest createCaseRequest, ProtocolMarshaller protocolMarshaller) { if (createCaseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createCaseRequest.getSubject(), SUBJECT_BINDING); protocolMarshaller.marshall(createCaseRequest.getServiceCode(), SERVICECODE_BINDING); protocolMarshaller.marshall(createCaseRequest.getSeverityCode(), SEVERITYCODE_BINDING); protocolMarshaller.marshall(createCaseRequest.getCategoryCode(), CATEGORYCODE_BINDING); protocolMarshaller.marshall(createCaseRequest.getCommunicationBody(), COMMUNICATIONBODY_BINDING); protocolMarshaller.marshall(createCaseRequest.getCcEmailAddresses(), CCEMAILADDRESSES_BINDING); protocolMarshaller.marshall(createCaseRequest.getLanguage(), LANGUAGE_BINDING); protocolMarshaller.marshall(createCaseRequest.getIssueType(), ISSUETYPE_BINDING); protocolMarshaller.marshall(createCaseRequest.getAttachmentSetId(), ATTACHMENTSETID_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getLanguage() != null) sb.append("Language: ").append(getLanguage()).append(","); if (getIssueType() != null) sb.append("IssueType: ").append(getIssueType()).append(","); if (getAttachmentSetId() != null) sb.append("AttachmentSetId: ").append(getAttachmentSetId());
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSubject() == null) ? 0 : getSubject().hashCode()); hashCode = prime * hashCode + ((getServiceCode() == null) ? 0 : getServiceCode().hashCode()); hashCode = prime * hashCode + ((getSeverityCode() == null) ? 0 : getSeverityCode().hashCode()); hashCode = prime * hashCode + ((getCategoryCode() == null) ? 0 : getCategoryCode().hashCode()); hashCode = prime * hashCode + ((getCommunicationBody() == null) ? 0 : getCommunicationBody().hashCode()); hashCode = prime * hashCode + ((getCcEmailAddresses() == null) ? 0 : getCcEmailAddresses().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); hashCode = prime * hashCode + ((getIssueType() == null) ? 0 : getIssueType().hashCode()); hashCode = prime * hashCode + ((getAttachmentSetId() == null) ? 0 : getAttachmentSetId().hashCode()); return hashCode; }
if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false) return false; if (other.getIssueType() == null ^ this.getIssueType() == null) return false; if (other.getIssueType() != null && other.getIssueType().equals(this.getIssueType()) == false) return false; if (other.getAttachmentSetId() == null ^ this.getAttachmentSetId() == null)
/** * Marshall the given parameter object. */ public void marshall(CreateCaseRequest createCaseRequest, ProtocolMarshaller protocolMarshaller) { if (createCaseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createCaseRequest.getSubject(), SUBJECT_BINDING); protocolMarshaller.marshall(createCaseRequest.getServiceCode(), SERVICECODE_BINDING); protocolMarshaller.marshall(createCaseRequest.getSeverityCode(), SEVERITYCODE_BINDING); protocolMarshaller.marshall(createCaseRequest.getCategoryCode(), CATEGORYCODE_BINDING); protocolMarshaller.marshall(createCaseRequest.getCommunicationBody(), COMMUNICATIONBODY_BINDING); protocolMarshaller.marshall(createCaseRequest.getCcEmailAddresses(), CCEMAILADDRESSES_BINDING); protocolMarshaller.marshall(createCaseRequest.getLanguage(), LANGUAGE_BINDING); protocolMarshaller.marshall(createCaseRequest.getIssueType(), ISSUETYPE_BINDING); protocolMarshaller.marshall(createCaseRequest.getAttachmentSetId(), ATTACHMENTSETID_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }