com.amazonaws.services.simpledb.model
Class CreateDomainRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.simpledb.model.CreateDomainRequest

public class CreateDomainRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreateDomain operation.

The CreateDomain operation creates a new domain. The domain name should be unique among the domains associated with the Access Key ID provided in the request. The CreateDomain operation may take 10 or more seconds to complete.

NOTE: CreateDomain is an idempotent operation; running it multiple times using the same domain name will not result in an error response.

The client can create up to 100 domains per account.

If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/ .

See Also:
AmazonSimpleDB.createDomain(CreateDomainRequest)

Constructor Summary
CreateDomainRequest()
          Default constructor for a new CreateDomainRequest object.
CreateDomainRequest(String domainName)
          Constructs a new CreateDomainRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getDomainName()
          The name of the domain to create.
 int hashCode()
           
 void setDomainName(String domainName)
          The name of the domain to create.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateDomainRequest withDomainName(String domainName)
          The name of the domain to create.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateDomainRequest

public CreateDomainRequest()
Default constructor for a new CreateDomainRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateDomainRequest

public CreateDomainRequest(String domainName)
Constructs a new CreateDomainRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
domainName - The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.
Method Detail

getDomainName

public String getDomainName()
The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.

Returns:
The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.

setDomainName

public void setDomainName(String domainName)
The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.

Parameters:
domainName - The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.

withDomainName

public CreateDomainRequest withDomainName(String domainName)
The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.

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

Parameters:
domainName - The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.
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.