Class Communication
- java.lang.Object
-
- com.amazonaws.services.support.model.Communication
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Communication extends Object implements Serializable, Cloneable
A communication associated with an AWS Support case. The communication consists of the case ID, the message body, attachment information, the account email address, and the date and time of the communication.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Communication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Communicationclone()booleanequals(Object obj)List<AttachmentDetails>getAttachmentSet()Information about the attachments to the case communication.StringgetBody()The text of the communication between the customer and AWS Support.StringgetCaseId()The AWS Support case ID requested or returned in the call.StringgetSubmittedBy()The email address of the account that submitted the AWS Support case.StringgetTimeCreated()The time the communication was created.inthashCode()voidsetAttachmentSet(Collection<AttachmentDetails> attachmentSet)Information about the attachments to the case communication.voidsetBody(String body)The text of the communication between the customer and AWS Support.voidsetCaseId(String caseId)The AWS Support case ID requested or returned in the call.voidsetSubmittedBy(String submittedBy)The email address of the account that submitted the AWS Support case.voidsetTimeCreated(String timeCreated)The time the communication was created.StringtoString()Returns a string representation of this object; useful for testing and debugging.CommunicationwithAttachmentSet(AttachmentDetails... attachmentSet)Information about the attachments to the case communication.CommunicationwithAttachmentSet(Collection<AttachmentDetails> attachmentSet)Information about the attachments to the case communication.CommunicationwithBody(String body)The text of the communication between the customer and AWS Support.CommunicationwithCaseId(String caseId)The AWS Support case ID requested or returned in the call.CommunicationwithSubmittedBy(String submittedBy)The email address of the account that submitted the AWS Support case.CommunicationwithTimeCreated(String timeCreated)The time the communication was created.
-
-
-
Method Detail
-
setCaseId
public void setCaseId(String 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-12345678910-2013-c4c1d2bf33c5cf47
- Parameters:
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-12345678910-2013-c4c1d2bf33c5cf47
-
getCaseId
public String getCaseId()
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-12345678910-2013-c4c1d2bf33c5cf47
- Returns:
- 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-12345678910-2013-c4c1d2bf33c5cf47
-
withCaseId
public Communication withCaseId(String 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-12345678910-2013-c4c1d2bf33c5cf47
- Parameters:
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-12345678910-2013-c4c1d2bf33c5cf47- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBody
public void setBody(String body)
The text of the communication between the customer and AWS Support.
- Parameters:
body- The text of the communication between the customer and AWS Support.
-
getBody
public String getBody()
The text of the communication between the customer and AWS Support.
- Returns:
- The text of the communication between the customer and AWS Support.
-
withBody
public Communication withBody(String body)
The text of the communication between the customer and AWS Support.
- Parameters:
body- The text of the communication between the customer and AWS Support.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSubmittedBy
public void setSubmittedBy(String submittedBy)
The email address of the account that submitted the AWS Support case.
- Parameters:
submittedBy- The email address of the account that submitted the AWS Support case.
-
getSubmittedBy
public String getSubmittedBy()
The email address of the account that submitted the AWS Support case.
- Returns:
- The email address of the account that submitted the AWS Support case.
-
withSubmittedBy
public Communication withSubmittedBy(String submittedBy)
The email address of the account that submitted the AWS Support case.
- Parameters:
submittedBy- The email address of the account that submitted the AWS Support case.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimeCreated
public void setTimeCreated(String timeCreated)
The time the communication was created.
- Parameters:
timeCreated- The time the communication was created.
-
getTimeCreated
public String getTimeCreated()
The time the communication was created.
- Returns:
- The time the communication was created.
-
withTimeCreated
public Communication withTimeCreated(String timeCreated)
The time the communication was created.
- Parameters:
timeCreated- The time the communication was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttachmentSet
public List<AttachmentDetails> getAttachmentSet()
Information about the attachments to the case communication.
- Returns:
- Information about the attachments to the case communication.
-
setAttachmentSet
public void setAttachmentSet(Collection<AttachmentDetails> attachmentSet)
Information about the attachments to the case communication.
- Parameters:
attachmentSet- Information about the attachments to the case communication.
-
withAttachmentSet
public Communication withAttachmentSet(AttachmentDetails... attachmentSet)
Information about the attachments to the case communication.
NOTE: This method appends the values to the existing list (if any). Use
setAttachmentSet(java.util.Collection)orwithAttachmentSet(java.util.Collection)if you want to override the existing values.- Parameters:
attachmentSet- Information about the attachments to the case communication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAttachmentSet
public Communication withAttachmentSet(Collection<AttachmentDetails> attachmentSet)
Information about the attachments to the case communication.
- Parameters:
attachmentSet- Information about the attachments to the case communication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Communication clone()
-
-