com.amazonaws.services.sns.model
Class Topic

java.lang.Object
  extended by com.amazonaws.services.sns.model.Topic
All Implemented Interfaces:
Serializable

public class Topic
extends Object
implements Serializable

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

See Also:
Serialized Form

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
clone, finalize, 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 © 2016. All rights reserved.