com.amazonaws.services.sns.model
Class Topic

java.lang.Object
  extended by com.amazonaws.services.sns.model.Topic

public class Topic
extends Object

A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a topic's attributes, use GetTopicAttributes.


Constructor Summary
Topic()
          Default constructor for a new Topic object.
 
Method Summary
 String getTopicArn()
          The topic's ARN.
 void setTopicArn(String topicArn)
          The topic's ARN.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Topic withTopicArn(String topicArn)
          The topic's ARN.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Topic

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

Method Detail

getTopicArn

public String getTopicArn()
The topic's ARN.

Returns:
The topic's ARN.

setTopicArn

public void setTopicArn(String topicArn)
The topic's ARN.

Parameters:
topicArn - The topic's ARN.

withTopicArn

public Topic withTopicArn(String topicArn)
The topic's ARN.

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

Parameters:
topicArn - The topic's ARN.
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()


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