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 Communication
clone()
boolean
equals(Object obj)
List<AttachmentDetails>
getAttachmentSet()
Information about the attachments to the case communication.String
getBody()
The text of the communication between the customer and AWS Support.String
getCaseId()
The AWS Support case ID requested or returned in the call.String
getSubmittedBy()
The email address of the account that submitted the AWS Support case.String
getTimeCreated()
The time the communication was created.int
hashCode()
void
setAttachmentSet(Collection<AttachmentDetails> attachmentSet)
Information about the attachments to the case communication.void
setBody(String body)
The text of the communication between the customer and AWS Support.void
setCaseId(String caseId)
The AWS Support case ID requested or returned in the call.void
setSubmittedBy(String submittedBy)
The email address of the account that submitted the AWS Support case.void
setTimeCreated(String timeCreated)
The time the communication was created.String
toString()
Returns a string representation of this object; useful for testing and debugging.Communication
withAttachmentSet(AttachmentDetails... attachmentSet)
Information about the attachments to the case communication.Communication
withAttachmentSet(Collection<AttachmentDetails> attachmentSet)
Information about the attachments to the case communication.Communication
withBody(String body)
The text of the communication between the customer and AWS Support.Communication
withCaseId(String caseId)
The AWS Support case ID requested or returned in the call.Communication
withSubmittedBy(String submittedBy)
The email address of the account that submitted the AWS Support case.Communication
withTimeCreated(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Communication clone()
-
-