Class CaseDetails
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<CaseDetails.Builder,
CaseDetails>
A JSON-formatted object that contains the metadata for a support case. It is contained in the response from a DescribeCases request. CaseDetails contains the following fields:
-
caseId - The 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 support case. Corresponds to the
CategoryCode
values returned by a call to DescribeServices. -
displayId - The identifier for the case on pages in the Amazon Web Services Support Center.
-
language - The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the
language
parameter if you want support in that language. -
nextToken - A resumption point for pagination.
-
recentCommunications - One or more Communication objects. Fields of these objects are
attachments
,body
,caseId
,submittedBy
, andtimeCreated
. -
serviceCode - The identifier for the Amazon Web Services 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. The possible values are:
low
,normal
,high
,urgent
, andcritical
. -
status - The status of the case in the Amazon Web Services Support Center. Valid values:
-
opened
-
pending-customer-action
-
reopened
-
resolved
-
unassigned
-
work-in-progress
-
-
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:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CaseDetails.Builder
builder()
final String
caseId()
The support case ID requested or returned in the call.final String
The category of problem for the support case.The email addresses that receive copies of communication about the case.final String
The ID displayed for the case in the Amazon Web Services Support Center.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the CcEmailAddresses property.final int
hashCode()
final String
language()
The language in which Amazon Web Services Support handles the case.final RecentCaseCommunications
The five most recent communications between you and Amazon Web Services Support Center, including the IDs of any attachments to the communications.static Class
<? extends CaseDetails.Builder> final String
The code for the Amazon Web Services service.final String
The code for the severity level returned by the call to DescribeSeverityLevels.final String
status()
The status of the case.final String
subject()
The subject line for the case in the Amazon Web Services Support Center.final String
The email address of the account that submitted the case.final String
The time that the case was created in the Amazon Web Services Support Center.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
caseId
The 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 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
-
displayId
The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string.
- Returns:
- The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string.
-
subject
The subject line for the case in the Amazon Web Services Support Center.
- Returns:
- The subject line for the case in the Amazon Web Services Support Center.
-
status
The status of the case.
Valid values:
-
opened
-
pending-customer-action
-
reopened
-
resolved
-
unassigned
-
work-in-progress
- Returns:
- The status of the case.
Valid values:
-
opened
-
pending-customer-action
-
reopened
-
resolved
-
unassigned
-
work-in-progress
-
-
-
serviceCode
The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by calling DescribeServices.
- Returns:
- The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by calling DescribeServices.
-
categoryCode
The category of problem for the support case.
- Returns:
- The category of problem for the support case.
-
severityCode
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.
-
submittedBy
The email address of the account that submitted the case.
- Returns:
- The email address of the account that submitted the case.
-
timeCreated
The time that the case was created in the Amazon Web Services Support Center.
- Returns:
- The time that the case was created in the Amazon Web Services Support Center.
-
recentCommunications
The five most recent communications between you and Amazon Web Services 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 Amazon Web Services Support Center, including the IDs
of any attachments to the communications. Also includes a
nextToken
that you can use to retrieve earlier communications.
-
hasCcEmailAddresses
public final boolean hasCcEmailAddresses()For responses, this returns true if the service returned a value for the CcEmailAddresses property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
ccEmailAddresses
The email addresses that receive copies of communication about the case.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCcEmailAddresses()
method.- Returns:
- The email addresses that receive copies of communication about the case.
-
language
The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the
language
parameter if you want support in that language.- Returns:
- The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently
supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO
639-1 code for the
language
parameter if you want support in that language.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<CaseDetails.Builder,
CaseDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
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. -
getValueForField
-
sdkFields
-