public class EventSubscription extends Object implements Serializable, Cloneable
Contains the results of a successful invocation of the DescribeEventSubscriptions action.
Constructor and Description |
---|
EventSubscription() |
Modifier and Type | Method and Description |
---|---|
EventSubscription |
clone() |
boolean |
equals(Object obj) |
String |
getCustomerAwsId()
The AWS customer account associated with the RDS event notification
subscription.
|
String |
getCustSubscriptionId()
The RDS event notification subscription Id.
|
Boolean |
getEnabled()
A Boolean value indicating if the subscription is enabled.
|
List<String> |
getEventCategoriesList()
A list of event categories for the RDS event notification
subscription.
|
String |
getSnsTopicArn()
The topic ARN of the RDS event notification subscription.
|
List<String> |
getSourceIdsList()
A list of source IDs for the RDS event notification subscription.
|
String |
getSourceType()
The source type for the RDS event notification subscription.
|
String |
getStatus()
The status of the RDS event notification subscription.
|
String |
getSubscriptionCreationTime()
The time the RDS event notification subscription was created.
|
int |
hashCode() |
Boolean |
isEnabled()
A Boolean value indicating if the subscription is enabled.
|
void |
setCustomerAwsId(String customerAwsId)
The AWS customer account associated with the RDS event notification
subscription.
|
void |
setCustSubscriptionId(String custSubscriptionId)
The RDS event notification subscription Id.
|
void |
setEnabled(Boolean enabled)
A Boolean value indicating if the subscription is enabled.
|
void |
setEventCategoriesList(Collection<String> eventCategoriesList)
A list of event categories for the RDS event notification
subscription.
|
void |
setSnsTopicArn(String snsTopicArn)
The topic ARN of the RDS event notification subscription.
|
void |
setSourceIdsList(Collection<String> sourceIdsList)
A list of source IDs for the RDS event notification subscription.
|
void |
setSourceType(String sourceType)
The source type for the RDS event notification subscription.
|
void |
setStatus(String status)
The status of the RDS event notification subscription.
|
void |
setSubscriptionCreationTime(String subscriptionCreationTime)
The time the RDS event notification subscription was created.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventSubscription |
withCustomerAwsId(String customerAwsId)
The AWS customer account associated with the RDS event notification
subscription.
|
EventSubscription |
withCustSubscriptionId(String custSubscriptionId)
The RDS event notification subscription Id.
|
EventSubscription |
withEnabled(Boolean enabled)
A Boolean value indicating if the subscription is enabled.
|
EventSubscription |
withEventCategoriesList(Collection<String> eventCategoriesList)
A list of event categories for the RDS event notification
subscription.
|
EventSubscription |
withEventCategoriesList(String... eventCategoriesList)
A list of event categories for the RDS event notification
subscription.
|
EventSubscription |
withSnsTopicArn(String snsTopicArn)
The topic ARN of the RDS event notification subscription.
|
EventSubscription |
withSourceIdsList(Collection<String> sourceIdsList)
A list of source IDs for the RDS event notification subscription.
|
EventSubscription |
withSourceIdsList(String... sourceIdsList)
A list of source IDs for the RDS event notification subscription.
|
EventSubscription |
withSourceType(String sourceType)
The source type for the RDS event notification subscription.
|
EventSubscription |
withStatus(String status)
The status of the RDS event notification subscription.
|
EventSubscription |
withSubscriptionCreationTime(String subscriptionCreationTime)
The time the RDS event notification subscription was created.
|
public String getCustomerAwsId()
public void setCustomerAwsId(String customerAwsId)
customerAwsId
- The AWS customer account associated with the RDS event notification
subscription.public EventSubscription withCustomerAwsId(String customerAwsId)
Returns a reference to this object so that method calls can be chained together.
customerAwsId
- The AWS customer account associated with the RDS event notification
subscription.public String getCustSubscriptionId()
public void setCustSubscriptionId(String custSubscriptionId)
custSubscriptionId
- The RDS event notification subscription Id.public EventSubscription withCustSubscriptionId(String custSubscriptionId)
Returns a reference to this object so that method calls can be chained together.
custSubscriptionId
- The RDS event notification subscription Id.public String getSnsTopicArn()
public void setSnsTopicArn(String snsTopicArn)
snsTopicArn
- The topic ARN of the RDS event notification subscription.public EventSubscription withSnsTopicArn(String snsTopicArn)
Returns a reference to this object so that method calls can be chained together.
snsTopicArn
- The topic ARN of the RDS event notification subscription.public String getStatus()
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 void setStatus(String status)
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 EventSubscription withStatus(String status)
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.
Returns a reference to this object so that method calls can be chained together.
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 String getSubscriptionCreationTime()
public void setSubscriptionCreationTime(String subscriptionCreationTime)
subscriptionCreationTime
- The time the RDS event notification subscription was created.public EventSubscription withSubscriptionCreationTime(String subscriptionCreationTime)
Returns a reference to this object so that method calls can be chained together.
subscriptionCreationTime
- The time the RDS event notification subscription was created.public String getSourceType()
public void setSourceType(String sourceType)
sourceType
- The source type for the RDS event notification subscription.public EventSubscription withSourceType(String sourceType)
Returns a reference to this object so that method calls can be chained together.
sourceType
- The source type for the RDS event notification subscription.public List<String> getSourceIdsList()
public void setSourceIdsList(Collection<String> sourceIdsList)
sourceIdsList
- A list of source IDs for the RDS event notification subscription.public EventSubscription withSourceIdsList(String... sourceIdsList)
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.
Returns a reference to this object so that method calls can be chained together.
sourceIdsList
- A list of source IDs for the RDS event notification subscription.public EventSubscription withSourceIdsList(Collection<String> sourceIdsList)
Returns a reference to this object so that method calls can be chained together.
sourceIdsList
- A list of source IDs for the RDS event notification subscription.public List<String> getEventCategoriesList()
public void setEventCategoriesList(Collection<String> eventCategoriesList)
eventCategoriesList
- A list of event categories for the RDS event notification
subscription.public EventSubscription withEventCategoriesList(String... eventCategoriesList)
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.
Returns a reference to this object so that method calls can be chained together.
eventCategoriesList
- A list of event categories for the RDS event notification
subscription.public EventSubscription withEventCategoriesList(Collection<String> eventCategoriesList)
Returns a reference to this object so that method calls can be chained together.
eventCategoriesList
- A list of event categories for the RDS event notification
subscription.public Boolean isEnabled()
public void setEnabled(Boolean enabled)
enabled
- A Boolean value indicating if the subscription is enabled. True
indicates the subscription is enabled.public EventSubscription withEnabled(Boolean enabled)
Returns a reference to this object so that method calls can be chained together.
enabled
- A Boolean value indicating if the subscription is enabled. True
indicates the subscription is enabled.public Boolean getEnabled()
public String toString()
toString
in class Object
Object.toString()
public EventSubscription clone()
Copyright © 2015. All rights reserved.