@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventSubscription extends Object implements Serializable, Cloneable
Detailed information about an event to which you have subscribed.
Constructor and Description |
---|
EventSubscription() |
Modifier and Type | Method and Description |
---|---|
EventSubscription |
clone() |
boolean |
equals(Object obj) |
String |
getCustomerAwsId()
The AWS customer account that is associated with the Amazon DocumentDB event notification subscription.
|
String |
getCustSubscriptionId()
The Amazon DocumentDB event notification subscription ID.
|
Boolean |
getEnabled()
A Boolean value indicating whether the subscription is enabled.
|
List<String> |
getEventCategoriesList()
A list of event categories for the Amazon DocumentDB event notification subscription.
|
String |
getEventSubscriptionArn()
The Amazon Resource Name (ARN) for the event subscription.
|
String |
getSnsTopicArn()
The topic ARN of the Amazon DocumentDB event notification subscription.
|
List<String> |
getSourceIdsList()
A list of source IDs for the Amazon DocumentDB event notification subscription.
|
String |
getSourceType()
The source type for the Amazon DocumentDB event notification subscription.
|
String |
getStatus()
The status of the Amazon DocumentDB event notification subscription.
|
String |
getSubscriptionCreationTime()
The time at which the Amazon DocumentDB event notification subscription was created.
|
int |
hashCode() |
Boolean |
isEnabled()
A Boolean value indicating whether the subscription is enabled.
|
void |
setCustomerAwsId(String customerAwsId)
The AWS customer account that is associated with the Amazon DocumentDB event notification subscription.
|
void |
setCustSubscriptionId(String custSubscriptionId)
The Amazon DocumentDB event notification subscription ID.
|
void |
setEnabled(Boolean enabled)
A Boolean value indicating whether the subscription is enabled.
|
void |
setEventCategoriesList(Collection<String> eventCategoriesList)
A list of event categories for the Amazon DocumentDB event notification subscription.
|
void |
setEventSubscriptionArn(String eventSubscriptionArn)
The Amazon Resource Name (ARN) for the event subscription.
|
void |
setSnsTopicArn(String snsTopicArn)
The topic ARN of the Amazon DocumentDB event notification subscription.
|
void |
setSourceIdsList(Collection<String> sourceIdsList)
A list of source IDs for the Amazon DocumentDB event notification subscription.
|
void |
setSourceType(String sourceType)
The source type for the Amazon DocumentDB event notification subscription.
|
void |
setStatus(String status)
The status of the Amazon DocumentDB event notification subscription.
|
void |
setSubscriptionCreationTime(String subscriptionCreationTime)
The time at which the Amazon DocumentDB event notification subscription was created.
|
String |
toString()
Returns a string representation of this object.
|
EventSubscription |
withCustomerAwsId(String customerAwsId)
The AWS customer account that is associated with the Amazon DocumentDB event notification subscription.
|
EventSubscription |
withCustSubscriptionId(String custSubscriptionId)
The Amazon DocumentDB event notification subscription ID.
|
EventSubscription |
withEnabled(Boolean enabled)
A Boolean value indicating whether the subscription is enabled.
|
EventSubscription |
withEventCategoriesList(Collection<String> eventCategoriesList)
A list of event categories for the Amazon DocumentDB event notification subscription.
|
EventSubscription |
withEventCategoriesList(String... eventCategoriesList)
A list of event categories for the Amazon DocumentDB event notification subscription.
|
EventSubscription |
withEventSubscriptionArn(String eventSubscriptionArn)
The Amazon Resource Name (ARN) for the event subscription.
|
EventSubscription |
withSnsTopicArn(String snsTopicArn)
The topic ARN of the Amazon DocumentDB event notification subscription.
|
EventSubscription |
withSourceIdsList(Collection<String> sourceIdsList)
A list of source IDs for the Amazon DocumentDB event notification subscription.
|
EventSubscription |
withSourceIdsList(String... sourceIdsList)
A list of source IDs for the Amazon DocumentDB event notification subscription.
|
EventSubscription |
withSourceType(String sourceType)
The source type for the Amazon DocumentDB event notification subscription.
|
EventSubscription |
withStatus(String status)
The status of the Amazon DocumentDB event notification subscription.
|
EventSubscription |
withSubscriptionCreationTime(String subscriptionCreationTime)
The time at which the Amazon DocumentDB event notification subscription was created.
|
public void setCustomerAwsId(String customerAwsId)
The AWS customer account that is associated with the Amazon DocumentDB event notification subscription.
customerAwsId
- The AWS customer account that is associated with the Amazon DocumentDB event notification subscription.public String getCustomerAwsId()
The AWS customer account that is associated with the Amazon DocumentDB event notification subscription.
public EventSubscription withCustomerAwsId(String customerAwsId)
The AWS customer account that is associated with the Amazon DocumentDB event notification subscription.
customerAwsId
- The AWS customer account that is associated with the Amazon DocumentDB event notification subscription.public void setCustSubscriptionId(String custSubscriptionId)
The Amazon DocumentDB event notification subscription ID.
custSubscriptionId
- The Amazon DocumentDB event notification subscription ID.public String getCustSubscriptionId()
The Amazon DocumentDB event notification subscription ID.
public EventSubscription withCustSubscriptionId(String custSubscriptionId)
The Amazon DocumentDB event notification subscription ID.
custSubscriptionId
- The Amazon DocumentDB event notification subscription ID.public void setSnsTopicArn(String snsTopicArn)
The topic ARN of the Amazon DocumentDB event notification subscription.
snsTopicArn
- The topic ARN of the Amazon DocumentDB event notification subscription.public String getSnsTopicArn()
The topic ARN of the Amazon DocumentDB event notification subscription.
public EventSubscription withSnsTopicArn(String snsTopicArn)
The topic ARN of the Amazon DocumentDB event notification subscription.
snsTopicArn
- The topic ARN of the Amazon DocumentDB event notification subscription.public void setStatus(String status)
The status of the Amazon DocumentDB event notification subscription.
Constraints:
Can be one of the following: creating
, modifying
, deleting
,
active
, no-permission
, topic-not-exist
The no-permission
status indicates that Amazon DocumentDB no longer has permission to post to the
SNS topic. The topic-not-exist
status indicates that the topic was deleted after the subscription
was created.
status
- The status of the Amazon DocumentDB event notification subscription.
Constraints:
Can be one of the following: creating
, modifying
, deleting
,
active
, no-permission
, topic-not-exist
The no-permission
status indicates that Amazon DocumentDB no longer has permission to post to
the SNS topic. The topic-not-exist
status indicates that the topic was deleted after the
subscription was created.
public String getStatus()
The status of the Amazon DocumentDB event notification subscription.
Constraints:
Can be one of the following: creating
, modifying
, deleting
,
active
, no-permission
, topic-not-exist
The no-permission
status indicates that Amazon DocumentDB no longer has permission to post to the
SNS topic. The topic-not-exist
status indicates that the topic was deleted after the subscription
was created.
Constraints:
Can be one of the following: creating
, modifying
, deleting
,
active
, no-permission
, topic-not-exist
The no-permission
status indicates that Amazon DocumentDB no longer has permission to post
to the SNS topic. The topic-not-exist
status indicates that the topic was deleted after the
subscription was created.
public EventSubscription withStatus(String status)
The status of the Amazon DocumentDB event notification subscription.
Constraints:
Can be one of the following: creating
, modifying
, deleting
,
active
, no-permission
, topic-not-exist
The no-permission
status indicates that Amazon DocumentDB no longer has permission to post to the
SNS topic. The topic-not-exist
status indicates that the topic was deleted after the subscription
was created.
status
- The status of the Amazon DocumentDB event notification subscription.
Constraints:
Can be one of the following: creating
, modifying
, deleting
,
active
, no-permission
, topic-not-exist
The no-permission
status indicates that Amazon DocumentDB no longer has permission to post to
the SNS topic. The topic-not-exist
status indicates that the topic was deleted after the
subscription was created.
public void setSubscriptionCreationTime(String subscriptionCreationTime)
The time at which the Amazon DocumentDB event notification subscription was created.
subscriptionCreationTime
- The time at which the Amazon DocumentDB event notification subscription was created.public String getSubscriptionCreationTime()
The time at which the Amazon DocumentDB event notification subscription was created.
public EventSubscription withSubscriptionCreationTime(String subscriptionCreationTime)
The time at which the Amazon DocumentDB event notification subscription was created.
subscriptionCreationTime
- The time at which the Amazon DocumentDB event notification subscription was created.public void setSourceType(String sourceType)
The source type for the Amazon DocumentDB event notification subscription.
sourceType
- The source type for the Amazon DocumentDB event notification subscription.public String getSourceType()
The source type for the Amazon DocumentDB event notification subscription.
public EventSubscription withSourceType(String sourceType)
The source type for the Amazon DocumentDB event notification subscription.
sourceType
- The source type for the Amazon DocumentDB event notification subscription.public List<String> getSourceIdsList()
A list of source IDs for the Amazon DocumentDB event notification subscription.
public void setSourceIdsList(Collection<String> sourceIdsList)
A list of source IDs for the Amazon DocumentDB event notification subscription.
sourceIdsList
- A list of source IDs for the Amazon DocumentDB event notification subscription.public EventSubscription withSourceIdsList(String... sourceIdsList)
A list of source IDs for the Amazon DocumentDB event notification subscription.
NOTE: This method appends the values to the existing list (if any). Use
setSourceIdsList(java.util.Collection)
or withSourceIdsList(java.util.Collection)
if you want
to override the existing values.
sourceIdsList
- A list of source IDs for the Amazon DocumentDB event notification subscription.public EventSubscription withSourceIdsList(Collection<String> sourceIdsList)
A list of source IDs for the Amazon DocumentDB event notification subscription.
sourceIdsList
- A list of source IDs for the Amazon DocumentDB event notification subscription.public List<String> getEventCategoriesList()
A list of event categories for the Amazon DocumentDB event notification subscription.
public void setEventCategoriesList(Collection<String> eventCategoriesList)
A list of event categories for the Amazon DocumentDB event notification subscription.
eventCategoriesList
- A list of event categories for the Amazon DocumentDB event notification subscription.public EventSubscription withEventCategoriesList(String... eventCategoriesList)
A list of event categories for the Amazon DocumentDB event notification subscription.
NOTE: This method appends the values to the existing list (if any). Use
setEventCategoriesList(java.util.Collection)
or withEventCategoriesList(java.util.Collection)
if you want to override the existing values.
eventCategoriesList
- A list of event categories for the Amazon DocumentDB event notification subscription.public EventSubscription withEventCategoriesList(Collection<String> eventCategoriesList)
A list of event categories for the Amazon DocumentDB event notification subscription.
eventCategoriesList
- A list of event categories for the Amazon DocumentDB event notification subscription.public void setEnabled(Boolean enabled)
A Boolean value indicating whether the subscription is enabled. A value of true
indicates that the
subscription is enabled.
enabled
- A Boolean value indicating whether the subscription is enabled. A value of true
indicates
that the subscription is enabled.public Boolean getEnabled()
A Boolean value indicating whether the subscription is enabled. A value of true
indicates that the
subscription is enabled.
true
indicates
that the subscription is enabled.public EventSubscription withEnabled(Boolean enabled)
A Boolean value indicating whether the subscription is enabled. A value of true
indicates that the
subscription is enabled.
enabled
- A Boolean value indicating whether the subscription is enabled. A value of true
indicates
that the subscription is enabled.public Boolean isEnabled()
A Boolean value indicating whether the subscription is enabled. A value of true
indicates that the
subscription is enabled.
true
indicates
that the subscription is enabled.public void setEventSubscriptionArn(String eventSubscriptionArn)
The Amazon Resource Name (ARN) for the event subscription.
eventSubscriptionArn
- The Amazon Resource Name (ARN) for the event subscription.public String getEventSubscriptionArn()
The Amazon Resource Name (ARN) for the event subscription.
public EventSubscription withEventSubscriptionArn(String eventSubscriptionArn)
The Amazon Resource Name (ARN) for the event subscription.
eventSubscriptionArn
- The Amazon Resource Name (ARN) for the event subscription.public String toString()
toString
in class Object
Object.toString()
public EventSubscription clone()