com.amazonaws.services.support.model
Class CreateCaseRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.support.model.CreateCaseRequest
All Implemented Interfaces:
Serializable

public class CreateCaseRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateCase operation.

Creates a new case in the AWS Support Center. This operation is modeled on the behavior of the AWS Support Center Open a new case page. Its parameters require you to specify the following information:

  1. ServiceCode. The code for an AWS service. You obtain the ServiceCode by calling DescribeServices.
  2. CategoryCode. The category for the service defined for the ServiceCode value. You also obtain the category code for a service by calling DescribeServices. Each AWS service defines its own set of category codes.
  3. SeverityCode. A value that indicates the urgency of the case, which in turn determines the response time according to your service level agreement with AWS Support. You obtain the SeverityCode by calling DescribeSeverityLevels.
  4. Subject. The Subject field on the AWS Support Center Open a new case page.
  5. CommunicationBody. The Description field on the AWS Support Center Open a new case page.
  6. Language. The human language in which AWS Support handles the case. English and Japanese are currently supported.
  7. CcEmailAddresses. The AWS Support Center CC field on the Open a new case page. You can list email addresses to be copied on any correspondence about the case. The account that opens the case is already identified by passing the AWS Credentials in the HTTP POST method or in a method or function call from one of the programming languages supported by an AWS SDK .
  8. 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."

NOTE: The AWS Support API does not currently support the ability to add attachments to cases. You can, however, call AddCommunicationToCase to add information to an open case.

A successful CreateCase request returns an AWS Support case number. Case numbers are used by the DescribeCases action to retrieve existing AWS Support cases.

See Also:
AWSSupport.createCase(CreateCaseRequest), Serialized Form

Constructor Summary
CreateCaseRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 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 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 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateCaseRequest

public CreateCaseRequest()
Method Detail

getSubject

public String getSubject()
The title of the AWS Support case.

Returns:
The title of the AWS Support case.

setSubject

public void setSubject(String subject)
The title of the AWS Support case.

Parameters:
subject - The title of the AWS Support case.

withSubject

public CreateCaseRequest withSubject(String subject)
The title of the AWS Support case.

Returns a reference to this object so that method calls can be chained together.

Parameters:
subject - The title of the AWS Support case.
Returns:
A reference to this updated object so that method calls can be chained together.

getServiceCode

public String getServiceCode()
The code for the AWS service returned by the call to DescribeServices.

Constraints:
Pattern: [0-9a-z\-_]+

Returns:
The code for the AWS service returned by the call to DescribeServices.

setServiceCode

public void setServiceCode(String serviceCode)
The code for the AWS service returned by the call to DescribeServices.

Constraints:
Pattern: [0-9a-z\-_]+

Parameters:
serviceCode - The code for the AWS service returned by the call to DescribeServices.

withServiceCode

public CreateCaseRequest withServiceCode(String serviceCode)
The code for the AWS service returned by the call to DescribeServices.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: [0-9a-z\-_]+

Parameters:
serviceCode - The code for the AWS service returned by the call to DescribeServices.
Returns:
A reference to this updated object so that method calls can be chained together.

getSeverityCode

public String getSeverityCode()
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.

Returns:
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.


setSeverityCode

public void setSeverityCode(String 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.

Parameters:
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.


withSeverityCode

public CreateCaseRequest withSeverityCode(String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.

Returns:
A reference to this updated object so that method calls can be chained together.

getCategoryCode

public String getCategoryCode()
The category of problem for the AWS Support case.

Returns:
The category of problem for the AWS Support case.

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.

withCategoryCode

public CreateCaseRequest withCategoryCode(String categoryCode)
The category of problem for the AWS Support case.

Returns a reference to this object so that method calls can be chained together.

Parameters:
categoryCode - The category of problem for the AWS Support case.
Returns:
A reference to this updated object so that method calls can be chained together.

getCommunicationBody

public String getCommunicationBody()
The communication body text when you create an AWS Support case by calling CreateCase.

Constraints:
Length: 1 - 8000

Returns:
The communication body text when you create an AWS Support case by calling CreateCase.

setCommunicationBody

public void setCommunicationBody(String communicationBody)
The communication body text when you create an AWS Support case by calling CreateCase.

Constraints:
Length: 1 - 8000

Parameters:
communicationBody - The communication body text when you create an AWS Support case by calling CreateCase.

withCommunicationBody

public CreateCaseRequest withCommunicationBody(String communicationBody)
The communication body text when you create an AWS Support case by calling CreateCase.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 8000

Parameters:
communicationBody - The communication body text when you create an AWS Support case by calling CreateCase.
Returns:
A reference to this updated object so that method calls can be chained together.

getCcEmailAddresses

public List<String> getCcEmailAddresses()
A list of email addresses that AWS Support copies on case correspondence.

Constraints:
Length: 0 - 10

Returns:
A list of email addresses that AWS Support copies on case correspondence.

setCcEmailAddresses

public void setCcEmailAddresses(Collection<String> ccEmailAddresses)
A list of email addresses that AWS Support copies on case correspondence.

Constraints:
Length: 0 - 10

Parameters:
ccEmailAddresses - A list of email addresses that AWS Support copies on case correspondence.

withCcEmailAddresses

public CreateCaseRequest withCcEmailAddresses(String... ccEmailAddresses)
A list of email addresses that AWS Support copies on case correspondence.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 10

Parameters:
ccEmailAddresses - A list of email addresses that AWS Support copies on case correspondence.
Returns:
A reference to this updated object so that method calls can be chained together.

withCcEmailAddresses

public CreateCaseRequest withCcEmailAddresses(Collection<String> ccEmailAddresses)
A list of email addresses that AWS Support copies on case correspondence.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 10

Parameters:
ccEmailAddresses - A list of email addresses that AWS Support copies on case correspondence.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withLanguage

public CreateCaseRequest 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.

Returns a reference to this object so that method calls can be chained together.

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:
A reference to this updated object so that method calls can be chained together.

getIssueType

public String getIssueType()
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."

Returns:
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."

setIssueType

public void setIssueType(String 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."

Parameters:
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."

withIssueType

public CreateCaseRequest withIssueType(String 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."

Returns a reference to this object so that method calls can be chained together.

Parameters:
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."
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.