com.amazonaws.services.simpledb.model
Class ListDomainsRequest

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

public class ListDomainsRequest
extends AmazonWebServiceRequest

Container for the parameters to the ListDomains operation.

The ListDomains operation lists all domains associated with the Access Key ID. It returns domain names up to the limit set by MaxNumberOfDomains. A NextToken is returned if there are more than MaxNumberOfDomains domains. Calling ListDomains successive times with the NextToken provided by the operation returns up to MaxNumberOfDomains more domain names with each successive operation call.

See Also:
AmazonSimpleDB.listDomains(ListDomainsRequest)

Constructor Summary
ListDomainsRequest()
          Default constructor for a new ListDomainsRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 Integer getMaxNumberOfDomains()
          The maximum number of domain names you want returned.
 String getNextToken()
          A string informing Amazon SimpleDB where to start the next list of domain names.
 int hashCode()
           
 void setMaxNumberOfDomains(Integer maxNumberOfDomains)
          The maximum number of domain names you want returned.
 void setNextToken(String nextToken)
          A string informing Amazon SimpleDB where to start the next list of domain names.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ListDomainsRequest withMaxNumberOfDomains(Integer maxNumberOfDomains)
          The maximum number of domain names you want returned.
 ListDomainsRequest withNextToken(String nextToken)
          A string informing Amazon SimpleDB where to start the next list of domain names.
 
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

ListDomainsRequest

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

Method Detail

getMaxNumberOfDomains

public Integer getMaxNumberOfDomains()
The maximum number of domain names you want returned. The range is 1 to 100. The default setting is 100.

Returns:
The maximum number of domain names you want returned. The range is 1 to 100. The default setting is 100.

setMaxNumberOfDomains

public void setMaxNumberOfDomains(Integer maxNumberOfDomains)
The maximum number of domain names you want returned. The range is 1 to 100. The default setting is 100.

Parameters:
maxNumberOfDomains - The maximum number of domain names you want returned. The range is 1 to 100. The default setting is 100.

withMaxNumberOfDomains

public ListDomainsRequest withMaxNumberOfDomains(Integer maxNumberOfDomains)
The maximum number of domain names you want returned. The range is 1 to 100. The default setting is 100.

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

Parameters:
maxNumberOfDomains - The maximum number of domain names you want returned. The range is 1 to 100. The default setting is 100.
Returns:
A reference to this updated object so that method calls can be chained together.

getNextToken

public String getNextToken()
A string informing Amazon SimpleDB where to start the next list of domain names.

Returns:
A string informing Amazon SimpleDB where to start the next list of domain names.

setNextToken

public void setNextToken(String nextToken)
A string informing Amazon SimpleDB where to start the next list of domain names.

Parameters:
nextToken - A string informing Amazon SimpleDB where to start the next list of domain names.

withNextToken

public ListDomainsRequest withNextToken(String nextToken)
A string informing Amazon SimpleDB where to start the next list of domain names.

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

Parameters:
nextToken - A string informing Amazon SimpleDB where to start the next list of domain names.
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.