public class CreateCaseRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateCase operation
.
Creates a new case in the AWS Support Center. This operation is modeled on the behavior of the AWS Support Center Create Case page. Its parameters require you to specify the following information:
ServiceCode
by calling DescribeServices. ServiceCode
value. You also obtain the category code
for a service by calling DescribeServices. Each AWS service defines
its own set of category codes. NOTE: To add additional communication or attachments to an existing case, use AddCommunicationToCase.
A successful CreateCase request returns an AWS Support case number. Case numbers are used by the DescribeCases operation to retrieve existing AWS Support cases.
NOOP
Constructor and Description |
---|
CreateCaseRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCaseRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAttachmentSetId()
The ID of a set of one or more attachments for the case.
|
String |
getCategoryCode()
The category of problem for the AWS Support case.
|
List<String> |
getCcEmailAddresses()
A list of email addresses that AWS Support copies on case
correspondence.
|
String |
getCommunicationBody()
The communication body text when you create an AWS Support case by
calling CreateCase.
|
String |
getIssueType()
The type of issue for the case.
|
String |
getLanguage()
The ISO 639-1 code for the language in which AWS provides support.
|
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 |
getSubject()
The title of the AWS Support case.
|
int |
hashCode() |
void |
setAttachmentSetId(String attachmentSetId)
The ID of a set of one or more attachments for the case.
|
void |
setCategoryCode(String categoryCode)
The category of problem for the AWS Support case.
|
void |
setCcEmailAddresses(Collection<String> ccEmailAddresses)
A list of email addresses that AWS Support copies on case
correspondence.
|
void |
setCommunicationBody(String communicationBody)
The communication body text when you create an AWS Support case by
calling CreateCase.
|
void |
setIssueType(String issueType)
The type of issue for the case.
|
void |
setLanguage(String language)
The ISO 639-1 code for the language in which AWS provides support.
|
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 |
setSubject(String subject)
The title of the AWS Support case.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateCaseRequest |
withAttachmentSetId(String attachmentSetId)
The ID of a set of one or more attachments for the case.
|
CreateCaseRequest |
withCategoryCode(String categoryCode)
The category of problem for the AWS Support case.
|
CreateCaseRequest |
withCcEmailAddresses(Collection<String> ccEmailAddresses)
A list of email addresses that AWS Support copies on case
correspondence.
|
CreateCaseRequest |
withCcEmailAddresses(String... ccEmailAddresses)
A list of email addresses that AWS Support copies on case
correspondence.
|
CreateCaseRequest |
withCommunicationBody(String communicationBody)
The communication body text when you create an AWS Support case by
calling CreateCase.
|
CreateCaseRequest |
withIssueType(String issueType)
The type of issue for the case.
|
CreateCaseRequest |
withLanguage(String language)
The ISO 639-1 code for the language in which AWS provides support.
|
CreateCaseRequest |
withServiceCode(String serviceCode)
The code for the AWS service returned by the call to
DescribeServices.
|
CreateCaseRequest |
withSeverityCode(String severityCode)
The code for the severity level returned by the call to
DescribeSeverityLevels.
|
CreateCaseRequest |
withSubject(String subject)
The title of the AWS Support case.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getSubject()
public void setSubject(String subject)
subject
- The title of the AWS Support case.public CreateCaseRequest withSubject(String subject)
Returns a reference to this object so that method calls can be chained together.
subject
- The title of the AWS Support case.public String getServiceCode()
Constraints:
Pattern: [0-9a-z\-_]+
public void setServiceCode(String serviceCode)
Constraints:
Pattern: [0-9a-z\-_]+
serviceCode
- The code for the AWS service returned by the call to
DescribeServices.public CreateCaseRequest withServiceCode(String serviceCode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9a-z\-_]+
serviceCode
- The code for the AWS service returned by the call to
DescribeServices.public String getSeverityCode()
The availability of severity levels depends on each customer's support subscription. In other words, your subscription may not necessarily require the urgent level of response time.
The availability of severity levels depends on each customer's support subscription. In other words, your subscription may not necessarily require the urgent level of response time.
public void setSeverityCode(String severityCode)
The availability of severity levels depends on each customer's support subscription. In other words, your subscription may not necessarily require the urgent level of response time.
severityCode
- The code for the severity level returned by the call to
DescribeSeverityLevels. The availability of severity levels depends on each customer's support subscription. In other words, your subscription may not necessarily require the urgent level of response time.
public CreateCaseRequest withSeverityCode(String severityCode)
The availability of severity levels depends on each customer's support subscription. In other words, your subscription may not necessarily require the urgent level of response time.
Returns a reference to this object so that method calls can be chained together.
severityCode
- The code for the severity level returned by the call to
DescribeSeverityLevels. The availability of severity levels depends on each customer's support subscription. In other words, your subscription may not necessarily require the urgent level of response time.
public String getCategoryCode()
public void setCategoryCode(String categoryCode)
categoryCode
- The category of problem for the AWS Support case.public CreateCaseRequest withCategoryCode(String categoryCode)
Returns a reference to this object so that method calls can be chained together.
categoryCode
- The category of problem for the AWS Support case.public String getCommunicationBody()
Constraints:
Length: 1 - 8000
public void setCommunicationBody(String communicationBody)
Constraints:
Length: 1 - 8000
communicationBody
- The communication body text when you create an AWS Support case by
calling CreateCase.public CreateCaseRequest withCommunicationBody(String communicationBody)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 8000
communicationBody
- The communication body text when you create an AWS Support case by
calling CreateCase.public List<String> getCcEmailAddresses()
Constraints:
Length: 0 - 10
public void setCcEmailAddresses(Collection<String> ccEmailAddresses)
Constraints:
Length: 0 - 10
ccEmailAddresses
- A list of email addresses that AWS Support copies on case
correspondence.public CreateCaseRequest withCcEmailAddresses(String... ccEmailAddresses)
NOTE: This method appends the values to the existing list (if
any). Use setCcEmailAddresses(java.util.Collection)
or withCcEmailAddresses(java.util.Collection)
if you want to override
the existing values.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
ccEmailAddresses
- A list of email addresses that AWS Support copies on case
correspondence.public CreateCaseRequest withCcEmailAddresses(Collection<String> ccEmailAddresses)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
ccEmailAddresses
- A list of email addresses that AWS Support copies on case
correspondence.public String getLanguage()
public void setLanguage(String language)
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.public CreateCaseRequest withLanguage(String language)
Returns a reference to this object so that method calls can be chained together.
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.public String getIssueType()
public void setIssueType(String issueType)
issueType
- The type of issue for the case. You can specify either
"customer-service" or "technical." If you do not indicate a value, the
default is "technical."public CreateCaseRequest withIssueType(String issueType)
Returns a reference to this object so that method calls can be chained together.
issueType
- The type of issue for the case. You can specify either
"customer-service" or "technical." If you do not indicate a value, the
default is "technical."public String getAttachmentSetId()
public void setAttachmentSetId(String attachmentSetId)
attachmentSetId
- The ID of a set of one or more attachments for the case. Create the
set by using AddAttachmentsToSet.public CreateCaseRequest withAttachmentSetId(String attachmentSetId)
Returns a reference to this object so that method calls can be chained together.
attachmentSetId
- The ID of a set of one or more attachments for the case. Create the
set by using AddAttachmentsToSet.public String toString()
toString
in class Object
Object.toString()
public CreateCaseRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.