if (getCategoryCode() != null) sb.append("CategoryCode: ").append(getCategoryCode()).append(","); if (getCommunicationBody() != null) sb.append("CommunicationBody: ").append(getCommunicationBody()).append(","); if (getCcEmailAddresses() != null) sb.append("CcEmailAddresses: ").append(getCcEmailAddresses()).append(",");
@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.getCategoryCode() != null && other.getCategoryCode().equals(this.getCategoryCode()) == false) return false; if (other.getCommunicationBody() == null ^ this.getCommunicationBody() == null) return false; if (other.getCommunicationBody() != null && other.getCommunicationBody().equals(this.getCommunicationBody()) == false) return false; if (other.getCcEmailAddresses() == null ^ this.getCcEmailAddresses() == 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 (getCategoryCode() != null) sb.append("CategoryCode: ").append(getCategoryCode()).append(","); if (getCommunicationBody() != null) sb.append("CommunicationBody: ").append(getCommunicationBody()).append(","); if (getCcEmailAddresses() != null) sb.append("CcEmailAddresses: ").append(getCcEmailAddresses()).append(",");
@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.getCategoryCode() != null && other.getCategoryCode().equals(this.getCategoryCode()) == false) return false; if (other.getCommunicationBody() == null ^ this.getCommunicationBody() == null) return false; if (other.getCommunicationBody() != null && other.getCommunicationBody().equals(this.getCommunicationBody()) == false) return false; if (other.getCcEmailAddresses() == null ^ this.getCcEmailAddresses() == 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); } }