@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; }
/** * <p> * The ID of a set of one or more attachments for the case. Create the set by using <a>AddAttachmentsToSet</a>. * </p> * * @param attachmentSetId * The ID of a set of one or more attachments for the case. Create the set by using * <a>AddAttachmentsToSet</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCaseRequest withAttachmentSetId(String attachmentSetId) { setAttachmentSetId(attachmentSetId); return this; }
return false; CreateCaseRequest other = (CreateCaseRequest) obj; if (other.getSubject() == null ^ this.getSubject() == null) return false; if (other.getSubject() != null && other.getSubject().equals(this.getSubject()) == false) return false; if (other.getServiceCode() == null ^ this.getServiceCode() == null) return false; if (other.getServiceCode() != null && other.getServiceCode().equals(this.getServiceCode()) == false) return false; if (other.getSeverityCode() == null ^ this.getSeverityCode() == null) return false; if (other.getSeverityCode() != null && other.getSeverityCode().equals(this.getSeverityCode()) == false) return false; if (other.getCategoryCode() == null ^ this.getCategoryCode() == null) return false; 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) return false; if (other.getCcEmailAddresses() != null && other.getCcEmailAddresses().equals(this.getCcEmailAddresses()) == false) return false; if (other.getLanguage() == null ^ this.getLanguage() == null) return false; if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false)
/** * <p> * The ID of a set of one or more attachments for the case. Create the set by using <a>AddAttachmentsToSet</a>. * </p> * * @param attachmentSetId * The ID of a set of one or more attachments for the case. Create the set by using * <a>AddAttachmentsToSet</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCaseRequest withAttachmentSetId(String attachmentSetId) { setAttachmentSetId(attachmentSetId); return this; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSubject() != null) sb.append("Subject: ").append(getSubject()).append(","); if (getServiceCode() != null) sb.append("ServiceCode: ").append(getServiceCode()).append(","); if (getSeverityCode() != null) sb.append("SeverityCode: ").append(getSeverityCode()).append(","); 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(","); 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()); sb.append("}"); return sb.toString();
/** * 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); } }
@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; }
return false; CreateCaseRequest other = (CreateCaseRequest) obj; if (other.getSubject() == null ^ this.getSubject() == null) return false; if (other.getSubject() != null && other.getSubject().equals(this.getSubject()) == false) return false; if (other.getServiceCode() == null ^ this.getServiceCode() == null) return false; if (other.getServiceCode() != null && other.getServiceCode().equals(this.getServiceCode()) == false) return false; if (other.getSeverityCode() == null ^ this.getSeverityCode() == null) return false; if (other.getSeverityCode() != null && other.getSeverityCode().equals(this.getSeverityCode()) == false) return false; if (other.getCategoryCode() == null ^ this.getCategoryCode() == null) return false; 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) return false; if (other.getCcEmailAddresses() != null && other.getCcEmailAddresses().equals(this.getCcEmailAddresses()) == false) return false; if (other.getLanguage() == null ^ this.getLanguage() == null) return false; if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSubject() != null) sb.append("Subject: ").append(getSubject()).append(","); if (getServiceCode() != null) sb.append("ServiceCode: ").append(getServiceCode()).append(","); if (getSeverityCode() != null) sb.append("SeverityCode: ").append(getSeverityCode()).append(","); 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(","); 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()); sb.append("}"); return sb.toString();
/** * 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); } }