com.amazonaws.services.sns.model
Class CreateTopicRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.sns.model.CreateTopicRequest

public class CreateTopicRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreateTopic operation.

The CreateTopic action creates a topic to which notifications can be published. Users can create at most 25 topics. This action is idempotent, so if the requester already owns a topic with the specified name, that topic's ARN will be returned without creating a new topic.

See Also:
AmazonSNS.createTopic(CreateTopicRequest)

Constructor Summary
CreateTopicRequest()
          Default constructor for a new CreateTopicRequest object.
CreateTopicRequest(String name)
          Constructs a new CreateTopicRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          The name of the topic you want to create.
 int hashCode()
           
 void setName(String name)
          The name of the topic you want to create.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateTopicRequest withName(String name)
          The name of the topic you want 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

CreateTopicRequest

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


CreateTopicRequest

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

Parameters:
name - The name of the topic you want to create.

Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, and hyphens, and must be between 1 and 256 characters long.

Method Detail

getName

public String getName()
The name of the topic you want to create.

Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, and hyphens, and must be between 1 and 256 characters long.

Returns:
The name of the topic you want to create.

Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, and hyphens, and must be between 1 and 256 characters long.


setName

public void setName(String name)
The name of the topic you want to create.

Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, and hyphens, and must be between 1 and 256 characters long.

Parameters:
name - The name of the topic you want to create.

Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, and hyphens, and must be between 1 and 256 characters long.


withName

public CreateTopicRequest withName(String name)
The name of the topic you want to create.

Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, and hyphens, and must be between 1 and 256 characters long.

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

Parameters:
name - The name of the topic you want to create.

Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, and hyphens, and must be between 1 and 256 characters long.

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.