Class CaseDetails
- java.lang.Object
-
- com.amazonaws.services.support.model.CaseDetails
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CaseDetails extends Object implements Serializable, Cloneable
A JSON-formatted object that contains the metadata for a support case. It is contained the response from a DescribeCases request. CaseDetails contains the following fields:
- 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.
- CategoryCode. The category of problem for the AWS Support case. Corresponds to the CategoryCode values returned by a call to DescribeServices.
- DisplayId. The identifier for the case on pages in the AWS Support Center.
- Language. The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.
- RecentCommunications. One or more Communication objects.
Fields of these objects are
Attachments
,Body
,CaseId
,SubmittedBy
, andTimeCreated
. - NextToken. A resumption point for pagination.
- ServiceCode. The identifier for the AWS service that corresponds to the service code defined in the call to DescribeServices.
- SeverityCode. The severity code assigned to the case. Contains one of the values returned by the call to DescribeSeverityLevels.
- Status. The status of the case in the AWS Support Center.
- Subject. The subject line of the case.
- SubmittedBy. The email address of the account that submitted the case.
- TimeCreated. The time the case was created, in ISO-8601 format.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CaseDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CaseDetails
clone()
boolean
equals(Object obj)
String
getCaseId()
The AWS Support case ID requested or returned in the call.String
getCategoryCode()
The category of problem for the AWS Support case.List<String>
getCcEmailAddresses()
The email addresses that receive copies of communication about the case.String
getDisplayId()
The ID displayed for the case in the AWS Support Center.String
getLanguage()
The ISO 639-1 code for the language in which AWS provides support.RecentCaseCommunications
getRecentCommunications()
The five most recent communications between you and AWS Support Center, including the IDs of any attachments to the communications.String
getServiceCode()
The code for the AWS service returned by the call to DescribeServices.String
getSeverityCode()
The code for the severity level returned by the call to DescribeSeverityLevels.String
getStatus()
The status of the case.String
getSubject()
The subject line for the case in the AWS Support Center.String
getSubmittedBy()
The email address of the account that submitted the case.String
getTimeCreated()
The time that the case was case created in the AWS Support Center.int
hashCode()
void
setCaseId(String caseId)
The AWS Support case ID requested or returned in the call.void
setCategoryCode(String categoryCode)
The category of problem for the AWS Support case.void
setCcEmailAddresses(Collection<String> ccEmailAddresses)
The email addresses that receive copies of communication about the case.void
setDisplayId(String displayId)
The ID displayed for the case in the AWS Support Center.void
setLanguage(String language)
The ISO 639-1 code for the language in which AWS provides support.void
setRecentCommunications(RecentCaseCommunications recentCommunications)
The five most recent communications between you and AWS Support Center, including the IDs of any attachments to the communications.void
setServiceCode(String serviceCode)
The code for the AWS service returned by the call to DescribeServices.void
setSeverityCode(String severityCode)
The code for the severity level returned by the call to DescribeSeverityLevels.void
setStatus(String status)
The status of the case.void
setSubject(String subject)
The subject line for the case in the AWS Support Center.void
setSubmittedBy(String submittedBy)
The email address of the account that submitted the case.void
setTimeCreated(String timeCreated)
The time that the case was case created in the AWS Support Center.String
toString()
Returns a string representation of this object; useful for testing and debugging.CaseDetails
withCaseId(String caseId)
The AWS Support case ID requested or returned in the call.CaseDetails
withCategoryCode(String categoryCode)
The category of problem for the AWS Support case.CaseDetails
withCcEmailAddresses(String... ccEmailAddresses)
The email addresses that receive copies of communication about the case.CaseDetails
withCcEmailAddresses(Collection<String> ccEmailAddresses)
The email addresses that receive copies of communication about the case.CaseDetails
withDisplayId(String displayId)
The ID displayed for the case in the AWS Support Center.CaseDetails
withLanguage(String language)
The ISO 639-1 code for the language in which AWS provides support.CaseDetails
withRecentCommunications(RecentCaseCommunications recentCommunications)
The five most recent communications between you and AWS Support Center, including the IDs of any attachments to the communications.CaseDetails
withServiceCode(String serviceCode)
The code for the AWS service returned by the call to DescribeServices.CaseDetails
withSeverityCode(String severityCode)
The code for the severity level returned by the call to DescribeSeverityLevels.CaseDetails
withStatus(String status)
The status of the case.CaseDetails
withSubject(String subject)
The subject line for the case in the AWS Support Center.CaseDetails
withSubmittedBy(String submittedBy)
The email address of the account that submitted the case.CaseDetails
withTimeCreated(String timeCreated)
The time that the case was case created in the AWS Support Center.
-
-
-
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 CaseDetails 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.
-
setDisplayId
public void setDisplayId(String displayId)
The ID displayed for the case in the AWS Support Center. This is a numeric string.
- Parameters:
displayId
- The ID displayed for the case in the AWS Support Center. This is a numeric string.
-
getDisplayId
public String getDisplayId()
The ID displayed for the case in the AWS Support Center. This is a numeric string.
- Returns:
- The ID displayed for the case in the AWS Support Center. This is a numeric string.
-
withDisplayId
public CaseDetails withDisplayId(String displayId)
The ID displayed for the case in the AWS Support Center. This is a numeric string.
- Parameters:
displayId
- The ID displayed for the case in the AWS Support Center. This is a numeric string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSubject
public void setSubject(String subject)
The subject line for the case in the AWS Support Center.
- Parameters:
subject
- The subject line for the case in the AWS Support Center.
-
getSubject
public String getSubject()
The subject line for the case in the AWS Support Center.
- Returns:
- The subject line for the case in the AWS Support Center.
-
withSubject
public CaseDetails withSubject(String subject)
The subject line for the case in the AWS Support Center.
- Parameters:
subject
- The subject line for the case in the AWS Support Center.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The status of the case.
- Parameters:
status
- The status of the case.
-
getStatus
public String getStatus()
The status of the case.
- Returns:
- The status of the case.
-
withStatus
public CaseDetails withStatus(String status)
The status of the case.
- Parameters:
status
- The status of the case.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setServiceCode
public void setServiceCode(String serviceCode)
The code for the AWS service returned by the call to DescribeServices.
- Parameters:
serviceCode
- The code for the AWS service returned by the call to DescribeServices.
-
getServiceCode
public String getServiceCode()
The code for the AWS service returned by the call to DescribeServices.
- Returns:
- The code for the AWS service returned by the call to DescribeServices.
-
withServiceCode
public CaseDetails withServiceCode(String serviceCode)
The code for the AWS service returned by the call to DescribeServices.
- Parameters:
serviceCode
- The code for the AWS service returned by the call to DescribeServices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCategoryCode
public void setCategoryCode(String categoryCode)
The category of problem for the AWS Support case.
- Parameters:
categoryCode
- The category of problem for the AWS Support case.
-
getCategoryCode
public String getCategoryCode()
The category of problem for the AWS Support case.
- Returns:
- The category of problem for the AWS Support case.
-
withCategoryCode
public CaseDetails withCategoryCode(String categoryCode)
The category of problem for the AWS Support case.
- Parameters:
categoryCode
- The category of problem for the AWS Support case.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSeverityCode
public void setSeverityCode(String severityCode)
The code for the severity level returned by the call to DescribeSeverityLevels.
- Parameters:
severityCode
- The code for the severity level returned by the call to DescribeSeverityLevels.
-
getSeverityCode
public String getSeverityCode()
The code for the severity level returned by the call to DescribeSeverityLevels.
- Returns:
- The code for the severity level returned by the call to DescribeSeverityLevels.
-
withSeverityCode
public CaseDetails withSeverityCode(String severityCode)
The code for the severity level returned by the call to DescribeSeverityLevels.
- Parameters:
severityCode
- The code for the severity level returned by the call to DescribeSeverityLevels.- 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 case.
- Parameters:
submittedBy
- The email address of the account that submitted the case.
-
getSubmittedBy
public String getSubmittedBy()
The email address of the account that submitted the case.
- Returns:
- The email address of the account that submitted the case.
-
withSubmittedBy
public CaseDetails withSubmittedBy(String submittedBy)
The email address of the account that submitted the case.
- Parameters:
submittedBy
- The email address of the account that submitted the case.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimeCreated
public void setTimeCreated(String timeCreated)
The time that the case was case created in the AWS Support Center.
- Parameters:
timeCreated
- The time that the case was case created in the AWS Support Center.
-
getTimeCreated
public String getTimeCreated()
The time that the case was case created in the AWS Support Center.
- Returns:
- The time that the case was case created in the AWS Support Center.
-
withTimeCreated
public CaseDetails withTimeCreated(String timeCreated)
The time that the case was case created in the AWS Support Center.
- Parameters:
timeCreated
- The time that the case was case created in the AWS Support Center.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRecentCommunications
public void setRecentCommunications(RecentCaseCommunications recentCommunications)
The five most recent communications between you and AWS Support Center, including the IDs of any attachments to the communications. Also includes a
nextToken
that you can use to retrieve earlier communications.- Parameters:
recentCommunications
- The five most recent communications between you and AWS Support Center, including the IDs of any attachments to the communications. Also includes anextToken
that you can use to retrieve earlier communications.
-
getRecentCommunications
public RecentCaseCommunications getRecentCommunications()
The five most recent communications between you and AWS Support Center, including the IDs of any attachments to the communications. Also includes a
nextToken
that you can use to retrieve earlier communications.- Returns:
- The five most recent communications between you and AWS Support
Center, including the IDs of any attachments to the
communications. Also includes a
nextToken
that you can use to retrieve earlier communications.
-
withRecentCommunications
public CaseDetails withRecentCommunications(RecentCaseCommunications recentCommunications)
The five most recent communications between you and AWS Support Center, including the IDs of any attachments to the communications. Also includes a
nextToken
that you can use to retrieve earlier communications.- Parameters:
recentCommunications
- The five most recent communications between you and AWS Support Center, including the IDs of any attachments to the communications. Also includes anextToken
that you can use to retrieve earlier communications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getCcEmailAddresses
public List<String> getCcEmailAddresses()
The email addresses that receive copies of communication about the case.
- Returns:
- The email addresses that receive copies of communication about the case.
-
setCcEmailAddresses
public void setCcEmailAddresses(Collection<String> ccEmailAddresses)
The email addresses that receive copies of communication about the case.
- Parameters:
ccEmailAddresses
- The email addresses that receive copies of communication about the case.
-
withCcEmailAddresses
public CaseDetails withCcEmailAddresses(String... ccEmailAddresses)
The email addresses that receive copies of communication about the case.
NOTE: This method appends the values to the existing list (if any). Use
setCcEmailAddresses(java.util.Collection)
orwithCcEmailAddresses(java.util.Collection)
if you want to override the existing values.- Parameters:
ccEmailAddresses
- The email addresses that receive copies of communication about the case.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCcEmailAddresses
public CaseDetails withCcEmailAddresses(Collection<String> ccEmailAddresses)
The email addresses that receive copies of communication about the case.
- Parameters:
ccEmailAddresses
- The email addresses that receive copies of communication about the case.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLanguage
public void setLanguage(String language)
The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.
- Parameters:
language
- The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.
-
getLanguage
public String getLanguage()
The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.
- Returns:
- The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.
-
withLanguage
public CaseDetails withLanguage(String language)
The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.
- Parameters:
language
- The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.- 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 CaseDetails clone()
-
-