@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TopicPreference extends Object implements Serializable, Cloneable, StructuredPojo
The contact's preference for being opted-in to or opted-out of a topic.
| Constructor and Description | 
|---|
| TopicPreference() | 
| Modifier and Type | Method and Description | 
|---|---|
| TopicPreference | clone() | 
| boolean | equals(Object obj) | 
| String | getSubscriptionStatus()
 The contact's subscription status to a topic which is either  OPT_INorOPT_OUT. | 
| String | getTopicName()
 The name of the topic. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller) | 
| void | setSubscriptionStatus(String subscriptionStatus)
 The contact's subscription status to a topic which is either  OPT_INorOPT_OUT. | 
| void | setTopicName(String topicName)
 The name of the topic. | 
| String | toString()Returns a string representation of this object. | 
| TopicPreference | withSubscriptionStatus(String subscriptionStatus)
 The contact's subscription status to a topic which is either  OPT_INorOPT_OUT. | 
| TopicPreference | withSubscriptionStatus(SubscriptionStatus subscriptionStatus)
 The contact's subscription status to a topic which is either  OPT_INorOPT_OUT. | 
| TopicPreference | withTopicName(String topicName)
 The name of the topic. | 
public void setTopicName(String topicName)
The name of the topic.
topicName - The name of the topic.public String getTopicName()
The name of the topic.
public TopicPreference withTopicName(String topicName)
The name of the topic.
topicName - The name of the topic.public void setSubscriptionStatus(String subscriptionStatus)
 The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.
 
subscriptionStatus - The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.SubscriptionStatuspublic String getSubscriptionStatus()
 The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.
 
OPT_IN or OPT_OUT.SubscriptionStatuspublic TopicPreference withSubscriptionStatus(String subscriptionStatus)
 The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.
 
subscriptionStatus - The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.SubscriptionStatuspublic TopicPreference withSubscriptionStatus(SubscriptionStatus subscriptionStatus)
 The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.
 
subscriptionStatus - The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.SubscriptionStatuspublic String toString()
toString in class ObjectObject.toString()public TopicPreference clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.