@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsSnsTopicDetails extends Object implements Serializable, Cloneable, StructuredPojo
A wrapper type for the topic's ARN.
Constructor and Description |
---|
AwsSnsTopicDetails() |
Modifier and Type | Method and Description |
---|---|
AwsSnsTopicDetails |
clone() |
boolean |
equals(Object obj) |
String |
getKmsMasterKeyId()
The ID of an Amazon Web Services managed key for Amazon SNS or a customer managed key.
|
String |
getOwner()
The subscription's owner.
|
List<AwsSnsTopicSubscription> |
getSubscription()
Subscription is an embedded property that describes the subscription endpoints of an SNS topic.
|
String |
getTopicName()
The name of the topic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKmsMasterKeyId(String kmsMasterKeyId)
The ID of an Amazon Web Services managed key for Amazon SNS or a customer managed key.
|
void |
setOwner(String owner)
The subscription's owner.
|
void |
setSubscription(Collection<AwsSnsTopicSubscription> subscription)
Subscription is an embedded property that describes the subscription endpoints of an SNS topic.
|
void |
setTopicName(String topicName)
The name of the topic.
|
String |
toString()
Returns a string representation of this object.
|
AwsSnsTopicDetails |
withKmsMasterKeyId(String kmsMasterKeyId)
The ID of an Amazon Web Services managed key for Amazon SNS or a customer managed key.
|
AwsSnsTopicDetails |
withOwner(String owner)
The subscription's owner.
|
AwsSnsTopicDetails |
withSubscription(AwsSnsTopicSubscription... subscription)
Subscription is an embedded property that describes the subscription endpoints of an SNS topic.
|
AwsSnsTopicDetails |
withSubscription(Collection<AwsSnsTopicSubscription> subscription)
Subscription is an embedded property that describes the subscription endpoints of an SNS topic.
|
AwsSnsTopicDetails |
withTopicName(String topicName)
The name of the topic.
|
public void setKmsMasterKeyId(String kmsMasterKeyId)
The ID of an Amazon Web Services managed key for Amazon SNS or a customer managed key.
kmsMasterKeyId
- The ID of an Amazon Web Services managed key for Amazon SNS or a customer managed key.public String getKmsMasterKeyId()
The ID of an Amazon Web Services managed key for Amazon SNS or a customer managed key.
public AwsSnsTopicDetails withKmsMasterKeyId(String kmsMasterKeyId)
The ID of an Amazon Web Services managed key for Amazon SNS or a customer managed key.
kmsMasterKeyId
- The ID of an Amazon Web Services managed key for Amazon SNS or a customer managed key.public List<AwsSnsTopicSubscription> getSubscription()
Subscription is an embedded property that describes the subscription endpoints of an SNS topic.
public void setSubscription(Collection<AwsSnsTopicSubscription> subscription)
Subscription is an embedded property that describes the subscription endpoints of an SNS topic.
subscription
- Subscription is an embedded property that describes the subscription endpoints of an SNS topic.public AwsSnsTopicDetails withSubscription(AwsSnsTopicSubscription... subscription)
Subscription is an embedded property that describes the subscription endpoints of an SNS topic.
NOTE: This method appends the values to the existing list (if any). Use
setSubscription(java.util.Collection)
or withSubscription(java.util.Collection)
if you want to
override the existing values.
subscription
- Subscription is an embedded property that describes the subscription endpoints of an SNS topic.public AwsSnsTopicDetails withSubscription(Collection<AwsSnsTopicSubscription> subscription)
Subscription is an embedded property that describes the subscription endpoints of an SNS topic.
subscription
- Subscription is an embedded property that describes the subscription endpoints of an SNS 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 AwsSnsTopicDetails withTopicName(String topicName)
The name of the topic.
topicName
- The name of the topic.public void setOwner(String owner)
The subscription's owner.
owner
- The subscription's owner.public String getOwner()
The subscription's owner.
public AwsSnsTopicDetails withOwner(String owner)
The subscription's owner.
owner
- The subscription's owner.public String toString()
toString
in class Object
Object.toString()
public AwsSnsTopicDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.