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
 boolean equals(Object obj)
           
 String getTopicArn()
          The topic's ARN.
 int hashCode()
           
 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
getClass, 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()

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.