public class ModifyEventSubscriptionRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
enabled
A Boolean value; set to true to activate the subscription.
|
private SdkInternalList<java.lang.String> |
eventCategories
A list of event categories for a SourceType that you want to subscribe
to.
|
private java.lang.String |
snsTopicArn
The Amazon Resource Name (ARN) of the SNS topic created for event
notification.
|
private java.lang.String |
sourceType
The type of source that will be generating the events.
|
private java.lang.String |
subscriptionName
The name of the RDS event notification subscription.
|
NOOP
Constructor and Description |
---|
ModifyEventSubscriptionRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyEventSubscriptionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getEnabled()
A Boolean value; set to true to activate the subscription.
|
java.util.List<java.lang.String> |
getEventCategories()
A list of event categories for a SourceType that you want to subscribe
to.
|
java.lang.String |
getSnsTopicArn()
The Amazon Resource Name (ARN) of the SNS topic created for event
notification.
|
java.lang.String |
getSourceType()
The type of source that will be generating the events.
|
java.lang.String |
getSubscriptionName()
The name of the RDS event notification subscription.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
A Boolean value; set to true to activate the subscription.
|
void |
setEnabled(java.lang.Boolean enabled)
A Boolean value; set to true to activate the subscription.
|
void |
setEventCategories(java.util.Collection<java.lang.String> eventCategories)
A list of event categories for a SourceType that you want to subscribe
to.
|
void |
setSnsTopicArn(java.lang.String snsTopicArn)
The Amazon Resource Name (ARN) of the SNS topic created for event
notification.
|
void |
setSourceType(java.lang.String sourceType)
The type of source that will be generating the events.
|
void |
setSubscriptionName(java.lang.String subscriptionName)
The name of the RDS event notification subscription.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifyEventSubscriptionRequest |
withEnabled(java.lang.Boolean enabled)
A Boolean value; set to true to activate the subscription.
|
ModifyEventSubscriptionRequest |
withEventCategories(java.util.Collection<java.lang.String> eventCategories)
A list of event categories for a SourceType that you want to subscribe
to.
|
ModifyEventSubscriptionRequest |
withEventCategories(java.lang.String... eventCategories)
A list of event categories for a SourceType that you want to subscribe
to.
|
ModifyEventSubscriptionRequest |
withSnsTopicArn(java.lang.String snsTopicArn)
The Amazon Resource Name (ARN) of the SNS topic created for event
notification.
|
ModifyEventSubscriptionRequest |
withSourceType(java.lang.String sourceType)
The type of source that will be generating the events.
|
ModifyEventSubscriptionRequest |
withSubscriptionName(java.lang.String subscriptionName)
The name of the RDS event notification subscription.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String subscriptionName
The name of the RDS event notification subscription.
private java.lang.String snsTopicArn
The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
private java.lang.String sourceType
The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.
Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
private SdkInternalList<java.lang.String> eventCategories
A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.
private java.lang.Boolean enabled
A Boolean value; set to true to activate the subscription.
public void setSubscriptionName(java.lang.String subscriptionName)
The name of the RDS event notification subscription.
subscriptionName
- The name of the RDS event notification subscription.public java.lang.String getSubscriptionName()
The name of the RDS event notification subscription.
public ModifyEventSubscriptionRequest withSubscriptionName(java.lang.String subscriptionName)
The name of the RDS event notification subscription.
subscriptionName
- The name of the RDS event notification subscription.public void setSnsTopicArn(java.lang.String snsTopicArn)
The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
snsTopicArn
- The Amazon Resource Name (ARN) of the SNS topic created for event
notification. The ARN is created by Amazon SNS when you create a
topic and subscribe to it.public java.lang.String getSnsTopicArn()
The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
public ModifyEventSubscriptionRequest withSnsTopicArn(java.lang.String snsTopicArn)
The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
snsTopicArn
- The Amazon Resource Name (ARN) of the SNS topic created for event
notification. The ARN is created by Amazon SNS when you create a
topic and subscribe to it.public void setSourceType(java.lang.String sourceType)
The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.
Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
sourceType
- The type of source that will be generating the events. For
example, if you want to be notified of events generated by a DB
instance, you would set this parameter to db-instance. if this
value is not specified, all events are returned.
Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
public java.lang.String getSourceType()
The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.
Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
public ModifyEventSubscriptionRequest withSourceType(java.lang.String sourceType)
The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.
Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
sourceType
- The type of source that will be generating the events. For
example, if you want to be notified of events generated by a DB
instance, you would set this parameter to db-instance. if this
value is not specified, all events are returned.
Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
public java.util.List<java.lang.String> getEventCategories()
A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.
public void setEventCategories(java.util.Collection<java.lang.String> eventCategories)
A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.
eventCategories
- A list of event categories for a SourceType that you want to
subscribe to. You can see a list of the categories for a given
SourceType in the Events topic in the Amazon RDS User Guide or by using the
DescribeEventCategories action.public ModifyEventSubscriptionRequest withEventCategories(java.lang.String... eventCategories)
A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.
NOTE: This method appends the values to the existing list (if
any). Use setEventCategories(java.util.Collection)
or
withEventCategories(java.util.Collection)
if you want to
override the existing values.
eventCategories
- A list of event categories for a SourceType that you want to
subscribe to. You can see a list of the categories for a given
SourceType in the Events topic in the Amazon RDS User Guide or by using the
DescribeEventCategories action.public ModifyEventSubscriptionRequest withEventCategories(java.util.Collection<java.lang.String> eventCategories)
A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.
eventCategories
- A list of event categories for a SourceType that you want to
subscribe to. You can see a list of the categories for a given
SourceType in the Events topic in the Amazon RDS User Guide or by using the
DescribeEventCategories action.public void setEnabled(java.lang.Boolean enabled)
A Boolean value; set to true to activate the subscription.
enabled
- A Boolean value; set to true to activate the subscription.public java.lang.Boolean getEnabled()
A Boolean value; set to true to activate the subscription.
public ModifyEventSubscriptionRequest withEnabled(java.lang.Boolean enabled)
A Boolean value; set to true to activate the subscription.
enabled
- A Boolean value; set to true to activate the subscription.public java.lang.Boolean isEnabled()
A Boolean value; set to true to activate the subscription.
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 ModifyEventSubscriptionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()