@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 Amazon Resource Name (ARN).
Constructor and Description |
---|
AwsSnsTopicDetails() |
Modifier and Type | Method and Description |
---|---|
AwsSnsTopicDetails |
clone() |
boolean |
equals(Object obj) |
String |
getKmsMasterKeyId()
The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.
|
String |
getOwner()
The subscription's owner.
|
List<AwsSnsTopicSubscription> |
getSubscription()
Subscription is an embedded property that describes the subscription endpoints of an Amazon 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 AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.
|
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 Amazon 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 AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.
|
AwsSnsTopicDetails |
withOwner(String owner)
The subscription's owner.
|
AwsSnsTopicDetails |
withSubscription(AwsSnsTopicSubscription... subscription)
Subscription is an embedded property that describes the subscription endpoints of an Amazon SNS topic.
|
AwsSnsTopicDetails |
withSubscription(Collection<AwsSnsTopicSubscription> subscription)
Subscription is an embedded property that describes the subscription endpoints of an Amazon SNS topic.
|
AwsSnsTopicDetails |
withTopicName(String topicName)
The name of the topic.
|
public void setKmsMasterKeyId(String kmsMasterKeyId)
The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.
kmsMasterKeyId
- The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.public String getKmsMasterKeyId()
The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.
public AwsSnsTopicDetails withKmsMasterKeyId(String kmsMasterKeyId)
The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.
kmsMasterKeyId
- The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.public List<AwsSnsTopicSubscription> getSubscription()
Subscription is an embedded property that describes the subscription endpoints of an Amazon SNS topic.
public void setSubscription(Collection<AwsSnsTopicSubscription> subscription)
Subscription is an embedded property that describes the subscription endpoints of an Amazon SNS topic.
subscription
- Subscription is an embedded property that describes the subscription endpoints of an Amazon SNS topic.public AwsSnsTopicDetails withSubscription(AwsSnsTopicSubscription... subscription)
Subscription is an embedded property that describes the subscription endpoints of an Amazon 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 Amazon SNS topic.public AwsSnsTopicDetails withSubscription(Collection<AwsSnsTopicSubscription> subscription)
Subscription is an embedded property that describes the subscription endpoints of an Amazon SNS topic.
subscription
- Subscription is an embedded property that describes the subscription endpoints of an Amazon 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.