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

Create Topic Request


Constructor Summary
CreateTopicRequest()
          Default constructor for a new CreateTopicRequest object.
CreateTopicRequest(String name)
          Constructs a new CreateTopicRequest object and initializes the specified object members.
 
Method Summary
 String getName()
          The name of the topic you want to create.
 void setName(String name)
          The name of the topic you want to create.
 String toString()
           
 CreateTopicRequest withName(String name)
          The name of the topic you want to create.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, 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 and initializes the specified object members. 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()
Overrides:
toString in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.