@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCaseId() == null) ? 0 : getCaseId().hashCode()); hashCode = prime * hashCode + ((getCommunicationBody() == null) ? 0 : getCommunicationBody().hashCode()); hashCode = prime * hashCode + ((getCcEmailAddresses() == null) ? 0 : getCcEmailAddresses().hashCode()); hashCode = prime * hashCode + ((getAttachmentSetId() == null) ? 0 : getAttachmentSetId().hashCode()); return hashCode; }
/** * <p> * The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling * <a>AddAttachmentsToSet</a> * </p> * * @param attachmentSetId * The ID of a set of one or more attachments for the communication to add to the case. Create the set by * calling <a>AddAttachmentsToSet</a> * @return Returns a reference to this object so that method calls can be chained together. */ public AddCommunicationToCaseRequest withAttachmentSetId(String attachmentSetId) { setAttachmentSetId(attachmentSetId); return this; }
/** * <p> * The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as * shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> * </p> * * @param caseId * The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted * as shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> * @return Returns a reference to this object so that method calls can be chained together. */ public AddCommunicationToCaseRequest withCaseId(String caseId) { setCaseId(caseId); return this; }
/** * <p> * The email addresses in the CC line of an email to be added to the support case. * </p> * * @param ccEmailAddresses * The email addresses in the CC line of an email to be added to the support case. * @return Returns a reference to this object so that method calls can be chained together. */ public AddCommunicationToCaseRequest withCcEmailAddresses(java.util.Collection<String> ccEmailAddresses) { setCcEmailAddresses(ccEmailAddresses); return this; }
/** * <p> * The body of an email communication to add to the support case. * </p> * * @param communicationBody * The body of an email communication to add to the support case. * @return Returns a reference to this object so that method calls can be chained together. */ public AddCommunicationToCaseRequest withCommunicationBody(String communicationBody) { setCommunicationBody(communicationBody); return this; }
/** * <p> * The email addresses in the CC line of an email to be added to the support case. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCcEmailAddresses(java.util.Collection)} or {@link #withCcEmailAddresses(java.util.Collection)} if you * want to override the existing values. * </p> * * @param ccEmailAddresses * The email addresses in the CC line of an email to be added to the support case. * @return Returns a reference to this object so that method calls can be chained together. */ public AddCommunicationToCaseRequest withCcEmailAddresses(String... ccEmailAddresses) { if (this.ccEmailAddresses == null) { setCcEmailAddresses(new com.amazonaws.internal.SdkInternalList<String>(ccEmailAddresses.length)); } for (String ele : ccEmailAddresses) { this.ccEmailAddresses.add(ele); } return this; }
/** * <p> * The body of an email communication to add to the support case. * </p> * * @param communicationBody * The body of an email communication to add to the support case. * @return Returns a reference to this object so that method calls can be chained together. */ public AddCommunicationToCaseRequest withCommunicationBody(String communicationBody) { setCommunicationBody(communicationBody); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AddCommunicationToCaseRequest == false) return false; AddCommunicationToCaseRequest other = (AddCommunicationToCaseRequest) obj; if (other.getCaseId() == null ^ this.getCaseId() == null) return false; if (other.getCaseId() != null && other.getCaseId().equals(this.getCaseId()) == 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.getAttachmentSetId() == null ^ this.getAttachmentSetId() == null) return false; if (other.getAttachmentSetId() != null && other.getAttachmentSetId().equals(this.getAttachmentSetId()) == false) return false; return true; }
/** * <p> * The email addresses in the CC line of an email to be added to the support case. * </p> * * @param ccEmailAddresses * The email addresses in the CC line of an email to be added to the support case. * @return Returns a reference to this object so that method calls can be chained together. */ public AddCommunicationToCaseRequest withCcEmailAddresses(java.util.Collection<String> ccEmailAddresses) { setCcEmailAddresses(ccEmailAddresses); return this; }
/** * <p> * The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as * shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> * </p> * * @param caseId * The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted * as shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> * @return Returns a reference to this object so that method calls can be chained together. */ public AddCommunicationToCaseRequest withCaseId(String caseId) { setCaseId(caseId); return this; }
/** * <p> * The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling * <a>AddAttachmentsToSet</a> * </p> * * @param attachmentSetId * The ID of a set of one or more attachments for the communication to add to the case. Create the set by * calling <a>AddAttachmentsToSet</a> * @return Returns a reference to this object so that method calls can be chained together. */ public AddCommunicationToCaseRequest withAttachmentSetId(String attachmentSetId) { setAttachmentSetId(attachmentSetId); return this; }
/** * 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 (getCaseId() != null) sb.append("CaseId: ").append(getCaseId()).append(","); if (getCommunicationBody() != null) sb.append("CommunicationBody: ").append(getCommunicationBody()).append(","); if (getCcEmailAddresses() != null) sb.append("CcEmailAddresses: ").append(getCcEmailAddresses()).append(","); if (getAttachmentSetId() != null) sb.append("AttachmentSetId: ").append(getAttachmentSetId()); sb.append("}"); return sb.toString(); }
/** * <p> * The email addresses in the CC line of an email to be added to the support case. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCcEmailAddresses(java.util.Collection)} or {@link #withCcEmailAddresses(java.util.Collection)} if you * want to override the existing values. * </p> * * @param ccEmailAddresses * The email addresses in the CC line of an email to be added to the support case. * @return Returns a reference to this object so that method calls can be chained together. */ public AddCommunicationToCaseRequest withCcEmailAddresses(String... ccEmailAddresses) { if (this.ccEmailAddresses == null) { setCcEmailAddresses(new com.amazonaws.internal.SdkInternalList<String>(ccEmailAddresses.length)); } for (String ele : ccEmailAddresses) { this.ccEmailAddresses.add(ele); } return this; }
/** * Marshall the given parameter object. */ public void marshall(AddCommunicationToCaseRequest addCommunicationToCaseRequest, ProtocolMarshaller protocolMarshaller) { if (addCommunicationToCaseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(addCommunicationToCaseRequest.getCaseId(), CASEID_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getCommunicationBody(), COMMUNICATIONBODY_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getCcEmailAddresses(), CCEMAILADDRESSES_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.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 + ((getCaseId() == null) ? 0 : getCaseId().hashCode()); hashCode = prime * hashCode + ((getCommunicationBody() == null) ? 0 : getCommunicationBody().hashCode()); hashCode = prime * hashCode + ((getCcEmailAddresses() == null) ? 0 : getCcEmailAddresses().hashCode()); hashCode = prime * hashCode + ((getAttachmentSetId() == null) ? 0 : getAttachmentSetId().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AddCommunicationToCaseRequest == false) return false; AddCommunicationToCaseRequest other = (AddCommunicationToCaseRequest) obj; if (other.getCaseId() == null ^ this.getCaseId() == null) return false; if (other.getCaseId() != null && other.getCaseId().equals(this.getCaseId()) == 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.getAttachmentSetId() == null ^ this.getAttachmentSetId() == null) return false; if (other.getAttachmentSetId() != null && other.getAttachmentSetId().equals(this.getAttachmentSetId()) == false) return false; return true; }
/** * 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 (getCaseId() != null) sb.append("CaseId: ").append(getCaseId()).append(","); if (getCommunicationBody() != null) sb.append("CommunicationBody: ").append(getCommunicationBody()).append(","); if (getCcEmailAddresses() != null) sb.append("CcEmailAddresses: ").append(getCcEmailAddresses()).append(","); if (getAttachmentSetId() != null) sb.append("AttachmentSetId: ").append(getAttachmentSetId()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(AddCommunicationToCaseRequest addCommunicationToCaseRequest, ProtocolMarshaller protocolMarshaller) { if (addCommunicationToCaseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(addCommunicationToCaseRequest.getCaseId(), CASEID_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getCommunicationBody(), COMMUNICATIONBODY_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getCcEmailAddresses(), CCEMAILADDRESSES_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getAttachmentSetId(), ATTACHMENTSETID_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }