public class EventSubscription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the results of a successful invocation of the DescribeEventSubscriptions action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
customerAwsId
The AWS customer account associated with the RDS event notification
subscription.
|
private java.lang.String |
custSubscriptionId
The RDS event notification subscription Id.
|
private java.lang.Boolean |
enabled
A Boolean value indicating if the subscription is enabled.
|
private SdkInternalList<java.lang.String> |
eventCategoriesList
A list of event categories for the RDS event notification subscription.
|
private java.lang.String |
snsTopicArn
The topic ARN of the RDS event notification subscription.
|
private SdkInternalList<java.lang.String> |
sourceIdsList
A list of source IDs for the RDS event notification subscription.
|
private java.lang.String |
sourceType
The source type for the RDS event notification subscription.
|
private java.lang.String |
status
The status of the RDS event notification subscription.
|
private java.lang.String |
subscriptionCreationTime
The time the RDS event notification subscription was created.
|
Constructor and Description |
---|
EventSubscription() |
Modifier and Type | Method and Description |
---|---|
EventSubscription |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCustomerAwsId()
The AWS customer account associated with the RDS event notification
subscription.
|
java.lang.String |
getCustSubscriptionId()
The RDS event notification subscription Id.
|
java.lang.Boolean |
getEnabled()
A Boolean value indicating if the subscription is enabled.
|
java.util.List<java.lang.String> |
getEventCategoriesList()
A list of event categories for the RDS event notification subscription.
|
java.lang.String |
getSnsTopicArn()
The topic ARN of the RDS event notification subscription.
|
java.util.List<java.lang.String> |
getSourceIdsList()
A list of source IDs for the RDS event notification subscription.
|
java.lang.String |
getSourceType()
The source type for the RDS event notification subscription.
|
java.lang.String |
getStatus()
The status of the RDS event notification subscription.
|
java.lang.String |
getSubscriptionCreationTime()
The time the RDS event notification subscription was created.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
A Boolean value indicating if the subscription is enabled.
|
void |
setCustomerAwsId(java.lang.String customerAwsId)
The AWS customer account associated with the RDS event notification
subscription.
|
void |
setCustSubscriptionId(java.lang.String custSubscriptionId)
The RDS event notification subscription Id.
|
void |
setEnabled(java.lang.Boolean enabled)
A Boolean value indicating if the subscription is enabled.
|
void |
setEventCategoriesList(java.util.Collection<java.lang.String> eventCategoriesList)
A list of event categories for the RDS event notification subscription.
|
void |
setSnsTopicArn(java.lang.String snsTopicArn)
The topic ARN of the RDS event notification subscription.
|
void |
setSourceIdsList(java.util.Collection<java.lang.String> sourceIdsList)
A list of source IDs for the RDS event notification subscription.
|
void |
setSourceType(java.lang.String sourceType)
The source type for the RDS event notification subscription.
|
void |
setStatus(java.lang.String status)
The status of the RDS event notification subscription.
|
void |
setSubscriptionCreationTime(java.lang.String subscriptionCreationTime)
The time the RDS event notification subscription was created.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventSubscription |
withCustomerAwsId(java.lang.String customerAwsId)
The AWS customer account associated with the RDS event notification
subscription.
|
EventSubscription |
withCustSubscriptionId(java.lang.String custSubscriptionId)
The RDS event notification subscription Id.
|
EventSubscription |
withEnabled(java.lang.Boolean enabled)
A Boolean value indicating if the subscription is enabled.
|
EventSubscription |
withEventCategoriesList(java.util.Collection<java.lang.String> eventCategoriesList)
A list of event categories for the RDS event notification subscription.
|
EventSubscription |
withEventCategoriesList(java.lang.String... eventCategoriesList)
A list of event categories for the RDS event notification subscription.
|
EventSubscription |
withSnsTopicArn(java.lang.String snsTopicArn)
The topic ARN of the RDS event notification subscription.
|
EventSubscription |
withSourceIdsList(java.util.Collection<java.lang.String> sourceIdsList)
A list of source IDs for the RDS event notification subscription.
|
EventSubscription |
withSourceIdsList(java.lang.String... sourceIdsList)
A list of source IDs for the RDS event notification subscription.
|
EventSubscription |
withSourceType(java.lang.String sourceType)
The source type for the RDS event notification subscription.
|
EventSubscription |
withStatus(java.lang.String status)
The status of the RDS event notification subscription.
|
EventSubscription |
withSubscriptionCreationTime(java.lang.String subscriptionCreationTime)
The time the RDS event notification subscription was created.
|
private java.lang.String customerAwsId
The AWS customer account associated with the RDS event notification subscription.
private java.lang.String custSubscriptionId
The RDS event notification subscription Id.
private java.lang.String snsTopicArn
The topic ARN of the RDS event notification subscription.
private java.lang.String status
The status of the RDS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that RDS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
private java.lang.String subscriptionCreationTime
The time the RDS event notification subscription was created.
private java.lang.String sourceType
The source type for the RDS event notification subscription.
private SdkInternalList<java.lang.String> sourceIdsList
A list of source IDs for the RDS event notification subscription.
private SdkInternalList<java.lang.String> eventCategoriesList
A list of event categories for the RDS event notification subscription.
private java.lang.Boolean enabled
A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.
public void setCustomerAwsId(java.lang.String customerAwsId)
The AWS customer account associated with the RDS event notification subscription.
customerAwsId
- The AWS customer account associated with the RDS event
notification subscription.public java.lang.String getCustomerAwsId()
The AWS customer account associated with the RDS event notification subscription.
public EventSubscription withCustomerAwsId(java.lang.String customerAwsId)
The AWS customer account associated with the RDS event notification subscription.
customerAwsId
- The AWS customer account associated with the RDS event
notification subscription.public void setCustSubscriptionId(java.lang.String custSubscriptionId)
The RDS event notification subscription Id.
custSubscriptionId
- The RDS event notification subscription Id.public java.lang.String getCustSubscriptionId()
The RDS event notification subscription Id.
public EventSubscription withCustSubscriptionId(java.lang.String custSubscriptionId)
The RDS event notification subscription Id.
custSubscriptionId
- The RDS event notification subscription Id.public void setSnsTopicArn(java.lang.String snsTopicArn)
The topic ARN of the RDS event notification subscription.
snsTopicArn
- The topic ARN of the RDS event notification subscription.public java.lang.String getSnsTopicArn()
The topic ARN of the RDS event notification subscription.
public EventSubscription withSnsTopicArn(java.lang.String snsTopicArn)
The topic ARN of the RDS event notification subscription.
snsTopicArn
- The topic ARN of the RDS event notification subscription.public void setStatus(java.lang.String status)
The status of the RDS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that RDS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
status
- The status of the RDS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that RDS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
public java.lang.String getStatus()
The status of the RDS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that RDS no longer has permission to post to the SNS topic. The status "topic-not-exist" 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 status "no-permission" indicates that RDS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
public EventSubscription withStatus(java.lang.String status)
The status of the RDS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that RDS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
status
- The status of the RDS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that RDS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
public void setSubscriptionCreationTime(java.lang.String subscriptionCreationTime)
The time the RDS event notification subscription was created.
subscriptionCreationTime
- The time the RDS event notification subscription was created.public java.lang.String getSubscriptionCreationTime()
The time the RDS event notification subscription was created.
public EventSubscription withSubscriptionCreationTime(java.lang.String subscriptionCreationTime)
The time the RDS event notification subscription was created.
subscriptionCreationTime
- The time the RDS event notification subscription was created.public void setSourceType(java.lang.String sourceType)
The source type for the RDS event notification subscription.
sourceType
- The source type for the RDS event notification subscription.public java.lang.String getSourceType()
The source type for the RDS event notification subscription.
public EventSubscription withSourceType(java.lang.String sourceType)
The source type for the RDS event notification subscription.
sourceType
- The source type for the RDS event notification subscription.public java.util.List<java.lang.String> getSourceIdsList()
A list of source IDs for the RDS event notification subscription.
public void setSourceIdsList(java.util.Collection<java.lang.String> sourceIdsList)
A list of source IDs for the RDS event notification subscription.
sourceIdsList
- A list of source IDs for the RDS event notification subscription.public EventSubscription withSourceIdsList(java.lang.String... sourceIdsList)
A list of source IDs for the RDS 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 RDS event notification subscription.public EventSubscription withSourceIdsList(java.util.Collection<java.lang.String> sourceIdsList)
A list of source IDs for the RDS event notification subscription.
sourceIdsList
- A list of source IDs for the RDS event notification subscription.public java.util.List<java.lang.String> getEventCategoriesList()
A list of event categories for the RDS event notification subscription.
public void setEventCategoriesList(java.util.Collection<java.lang.String> eventCategoriesList)
A list of event categories for the RDS event notification subscription.
eventCategoriesList
- A list of event categories for the RDS event notification
subscription.public EventSubscription withEventCategoriesList(java.lang.String... eventCategoriesList)
A list of event categories for the RDS 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 RDS event notification
subscription.public EventSubscription withEventCategoriesList(java.util.Collection<java.lang.String> eventCategoriesList)
A list of event categories for the RDS event notification subscription.
eventCategoriesList
- A list of event categories for the RDS event notification
subscription.public void setEnabled(java.lang.Boolean enabled)
A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.
enabled
- A Boolean value indicating if the subscription is enabled. True
indicates the subscription is enabled.public java.lang.Boolean getEnabled()
A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.
public EventSubscription withEnabled(java.lang.Boolean enabled)
A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.
enabled
- A Boolean value indicating if the subscription is enabled. True
indicates the subscription is enabled.public java.lang.Boolean isEnabled()
A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EventSubscription clone()
clone
in class java.lang.Object