Did this page help you?

   Yes   No   Tell us about it...

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 action 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. Represents a code for an AWS service. You obtain the ServiceCode by calling DescribeServices.
  2. CategoryCode . Represents a category for the service defined for the ServiceCode value. You also obtain the cateogory code for a service by calling DescribeServices. Each AWS service defines its own set of category codes.
  3. SeverityCode . Represents a value that specifies the urgency of the case, and the time interval in which your service level agreement specifies a response from AWS Support. You obtain the SeverityCode by calling DescribeSeverityLevels.
  4. Subject . Represents the Subject field on the AWS Support Center Open a new case page.
  5. CommunicationBody . Represents the Description field on the AWS Support Center Open a new case page.
  6. Language . Specifies the human language in which AWS Support handles the case. The API currently supports English and Japanese.
  7. CcEmailAddresses . Represents 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 .

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 DescribeCases request to retrieve existing AWS Support support cases.

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

Constructor Summary
CreateCaseRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCategoryCode()
          Specifies the category of problem for the AWS Support case.
 List<String> getCcEmailAddresses()
          List of email addresses that AWS Support copies on case correspondence.
 String getCommunicationBody()
          Parameter that represents the communication body text when you create an AWS Support case by calling CreateCase.
 String getIssueType()
          Field passed as a parameter in a CreateCase call.
 String getLanguage()
          Specifies the ISO 639-1 code for the language in which AWS provides support.
 String getServiceCode()
          Code for the AWS service returned by the call to DescribeServices.
 String getSeverityCode()
          Code for the severity level returned by the call to DescribeSeverityLevels.
 String getSubject()
          Title of the AWS Support case.
 int hashCode()
           
 void setCategoryCode(String categoryCode)
          Specifies the category of problem for the AWS Support case.
 void setCcEmailAddresses(Collection<String> ccEmailAddresses)
          List of email addresses that AWS Support copies on case correspondence.
 void setCommunicationBody(String communicationBody)
          Parameter that represents the communication body text when you create an AWS Support case by calling CreateCase.
 void setIssueType(String issueType)
          Field passed as a parameter in a CreateCase call.
 void setLanguage(String language)
          Specifies the ISO 639-1 code for the language in which AWS provides support.
 void setServiceCode(String serviceCode)
          Code for the AWS service returned by the call to DescribeServices.
 void setSeverityCode(String severityCode)
          Code for the severity level returned by the call to DescribeSeverityLevels.
 void setSubject(String subject)
          Title of the AWS Support case.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateCaseRequest withCategoryCode(String categoryCode)
          Specifies the category of problem for the AWS Support case.
 CreateCaseRequest withCcEmailAddresses(Collection<String> ccEmailAddresses)
          List of email addresses that AWS Support copies on case correspondence.
 CreateCaseRequest withCcEmailAddresses(String... ccEmailAddresses)
          List of email addresses that AWS Support copies on case correspondence.
 CreateCaseRequest withCommunicationBody(String communicationBody)
          Parameter that represents the communication body text when you create an AWS Support case by calling CreateCase.
 CreateCaseRequest withIssueType(String issueType)
          Field passed as a parameter in a CreateCase call.
 CreateCaseRequest withLanguage(String language)
          Specifies the ISO 639-1 code for the language in which AWS provides support.
 CreateCaseRequest withServiceCode(String serviceCode)
          Code for the AWS service returned by the call to DescribeServices.
 CreateCaseRequest withSeverityCode(String severityCode)
          Code for the severity level returned by the call to DescribeSeverityLevels.
 CreateCaseRequest withSubject(String subject)
          Title of the AWS Support case.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateCaseRequest

public CreateCaseRequest()
Method Detail

getSubject

public String getSubject()
Title of the AWS Support case.

Returns:
Title of the AWS Support case.

setSubject

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

Parameters:
subject - Title of the AWS Support case.

withSubject

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

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

Parameters:
subject - 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()
Code for the AWS service returned by the call to DescribeServices.

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

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

setServiceCode

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

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

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

withServiceCode

public CreateCaseRequest withServiceCode(String serviceCode)
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 - 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()
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:
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)
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 - 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)
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 - 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()
Specifies the category of problem for the AWS Support case.

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

setCategoryCode

public void setCategoryCode(String categoryCode)
Specifies the category of problem for the AWS Support case.

Parameters:
categoryCode - Specifies the category of problem for the AWS Support case.

withCategoryCode

public CreateCaseRequest withCategoryCode(String categoryCode)
Specifies 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 - Specifies 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()
Parameter that represents the communication body text when you create an AWS Support case by calling CreateCase.

Constraints:
Length: 1 - 8000

Returns:
Parameter that represents the communication body text when you create an AWS Support case by calling CreateCase.

setCommunicationBody

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

Constraints:
Length: 1 - 8000

Parameters:
communicationBody - Parameter that represents the communication body text when you create an AWS Support case by calling CreateCase.

withCommunicationBody

public CreateCaseRequest withCommunicationBody(String communicationBody)
Parameter that represents 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 - Parameter that represents 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()
List of email addresses that AWS Support copies on case correspondence.

Constraints:
Length: 0 - 10

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

setCcEmailAddresses

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

Constraints:
Length: 0 - 10

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

withCcEmailAddresses

public CreateCaseRequest withCcEmailAddresses(String... ccEmailAddresses)
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 - 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)
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 - 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()
Specifies the ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English and Japanese, for which the codes are en and ja, respectively. Language parameters must be passed explicitly for operations that take them.

Returns:
Specifies the ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English and Japanese, for which the codes are en and ja, respectively. Language parameters must be passed explicitly for operations that take them.

setLanguage

public void setLanguage(String language)
Specifies the ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English and Japanese, for which the codes are en and ja, respectively. Language parameters must be passed explicitly for operations that take them.

Parameters:
language - Specifies the ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English and Japanese, for which the codes are en and ja, respectively. Language parameters must be passed explicitly for operations that take them.

withLanguage

public CreateCaseRequest withLanguage(String language)
Specifies the ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English and Japanese, for which the codes are en and ja, respectively. 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 - Specifies the ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English and Japanese, for which the codes are en and ja, respectively. 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()
Field passed as a parameter in a CreateCase call.

Returns:
Field passed as a parameter in a CreateCase call.

setIssueType

public void setIssueType(String issueType)
Field passed as a parameter in a CreateCase call.

Parameters:
issueType - Field passed as a parameter in a CreateCase call.

withIssueType

public CreateCaseRequest withIssueType(String issueType)
Field passed as a parameter in a CreateCase call.

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

Parameters:
issueType - Field passed as a parameter in a CreateCase call.
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 © 2010 Amazon Web Services, Inc. All Rights Reserved.