@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subscription extends Object implements Serializable, Cloneable, StructuredPojo
This data type is used as a response element in the ListEventSubscriptions action.
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
Subscription |
clone() |
boolean |
equals(Object obj) |
List<EventSubscription> |
getEventSubscriptions()
The list of existing event subscriptions.
|
String |
getResourceArn()
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
|
String |
getTopicArn()
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
|
void |
setResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
|
void |
setTopicArn(String topicArn)
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
|
String |
toString()
Returns a string representation of this object.
|
Subscription |
withEventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
|
Subscription |
withEventSubscriptions(EventSubscription... eventSubscriptions)
The list of existing event subscriptions.
|
Subscription |
withResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
|
Subscription |
withTopicArn(String topicArn)
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
|
public void setResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
resourceArn
- The ARN of the assessment template that is used during the event for which the SNS notification is sent.public String getResourceArn()
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
public Subscription withResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
resourceArn
- The ARN of the assessment template that is used during the event for which the SNS notification is sent.public void setTopicArn(String topicArn)
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
topicArn
- The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.public String getTopicArn()
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
public Subscription withTopicArn(String topicArn)
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
topicArn
- The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.public List<EventSubscription> getEventSubscriptions()
The list of existing event subscriptions.
public void setEventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
eventSubscriptions
- The list of existing event subscriptions.public Subscription withEventSubscriptions(EventSubscription... eventSubscriptions)
The list of existing event subscriptions.
NOTE: This method appends the values to the existing list (if any). Use
setEventSubscriptions(java.util.Collection)
or withEventSubscriptions(java.util.Collection)
if
you want to override the existing values.
eventSubscriptions
- The list of existing event subscriptions.public Subscription withEventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
eventSubscriptions
- The list of existing event subscriptions.public String toString()
toString
in class Object
Object.toString()
public Subscription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.