@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_IN or OPT_OUT. |
String |
getTopicName()
The name of the topic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setSubscriptionStatus(String subscriptionStatus)
The contact's subscription status to a topic which is either
OPT_IN or OPT_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_IN or OPT_OUT. |
TopicPreference |
withSubscriptionStatus(SubscriptionStatus subscriptionStatus)
The contact's subscription status to a topic which is either
OPT_IN or OPT_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)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.