@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 Amazon Web Services customer account associated with the RDS event notification subscription.
|
String |
getCustSubscriptionId()
The RDS event notification subscription Id.
|
Boolean |
getEnabled()
Specifies whether the subscription is enabled.
|
List<String> |
getEventCategoriesList()
A list of event categories for the RDS event notification subscription.
|
String |
getEventSubscriptionArn()
The Amazon Resource Name (ARN) for the event 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()
Specifies whether the subscription is enabled.
|
void |
setCustomerAwsId(String customerAwsId)
The Amazon Web Services customer account associated with the RDS event notification subscription.
|
void |
setCustSubscriptionId(String custSubscriptionId)
The RDS event notification subscription Id.
|
void |
setEnabled(Boolean enabled)
Specifies whether the subscription is enabled.
|
void |
setEventCategoriesList(Collection<String> eventCategoriesList)
A list of event categories for the RDS 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 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.
|
EventSubscription |
withCustomerAwsId(String customerAwsId)
The Amazon Web Services customer account associated with the RDS event notification subscription.
|
EventSubscription |
withCustSubscriptionId(String custSubscriptionId)
The RDS event notification subscription Id.
|
EventSubscription |
withEnabled(Boolean enabled)
Specifies whether 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 |
withEventSubscriptionArn(String eventSubscriptionArn)
The Amazon Resource Name (ARN) for the event 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 void setCustomerAwsId(String customerAwsId)
The Amazon Web Services customer account associated with the RDS event notification subscription.
customerAwsId
- The Amazon Web Services customer account associated with the RDS event notification subscription.public String getCustomerAwsId()
The Amazon Web Services customer account associated with the RDS event notification subscription.
public EventSubscription withCustomerAwsId(String customerAwsId)
The Amazon Web Services customer account associated with the RDS event notification subscription.
customerAwsId
- The Amazon Web Services customer account associated with the RDS event notification subscription.public void setCustSubscriptionId(String custSubscriptionId)
The RDS event notification subscription Id.
custSubscriptionId
- The RDS event notification subscription Id.public String getCustSubscriptionId()
The RDS event notification subscription Id.
public EventSubscription withCustSubscriptionId(String custSubscriptionId)
The RDS event notification subscription Id.
custSubscriptionId
- The RDS event notification subscription Id.public void setSnsTopicArn(String snsTopicArn)
The topic ARN of the RDS event notification subscription.
snsTopicArn
- The topic ARN of the RDS event notification subscription.public String getSnsTopicArn()
The topic ARN of the RDS event notification subscription.
public EventSubscription withSnsTopicArn(String snsTopicArn)
The topic ARN of the RDS event notification subscription.
snsTopicArn
- The topic ARN of the RDS event notification subscription.public void setStatus(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 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(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(String subscriptionCreationTime)
The time the RDS event notification subscription was created.
subscriptionCreationTime
- The time the RDS event notification subscription was created.public String getSubscriptionCreationTime()
The time the RDS event notification subscription was created.
public EventSubscription withSubscriptionCreationTime(String subscriptionCreationTime)
The time the RDS event notification subscription was created.
subscriptionCreationTime
- The time the RDS event notification subscription was created.public void setSourceType(String sourceType)
The source type for the RDS event notification subscription.
sourceType
- The source type for the RDS event notification subscription.public String getSourceType()
The source type for the RDS event notification subscription.
public EventSubscription withSourceType(String sourceType)
The source type for the RDS event notification subscription.
sourceType
- The source type for the RDS event notification subscription.public List<String> getSourceIdsList()
A list of source IDs for the RDS event notification subscription.
public void setSourceIdsList(Collection<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(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(Collection<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 List<String> getEventCategoriesList()
A list of event categories for the RDS event notification subscription.
public void setEventCategoriesList(Collection<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(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(Collection<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(Boolean enabled)
Specifies whether the subscription is enabled. True indicates the subscription is enabled.
enabled
- Specifies whether the subscription is enabled. True indicates the subscription is enabled.public Boolean getEnabled()
Specifies whether the subscription is enabled. True indicates the subscription is enabled.
public EventSubscription withEnabled(Boolean enabled)
Specifies whether the subscription is enabled. True indicates the subscription is enabled.
enabled
- Specifies whether the subscription is enabled. True indicates the subscription is enabled.public Boolean isEnabled()
Specifies whether the subscription is enabled. True indicates 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()