public class ModifyEventSubscriptionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
ModifyEventSubscription operation
.
Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.
You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.
NOOP
Constructor and Description |
---|
ModifyEventSubscriptionRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyEventSubscriptionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Boolean |
getEnabled()
A Boolean value; set to true to activate the subscription.
|
List<String> |
getEventCategories()
A list of event categories for a SourceType that you want to subscribe
to.
|
String |
getSnsTopicArn()
The Amazon Resource Name (ARN) of the SNS topic created for event
notification.
|
String |
getSourceType()
The type of source that will be generating the events.
|
String |
getSubscriptionName()
The name of the RDS event notification subscription.
|
int |
hashCode() |
Boolean |
isEnabled()
A Boolean value; set to true to activate the subscription.
|
void |
setEnabled(Boolean enabled)
A Boolean value; set to true to activate the subscription.
|
void |
setEventCategories(Collection<String> eventCategories)
A list of event categories for a SourceType that you want to subscribe
to.
|
void |
setSnsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) of the SNS topic created for event
notification.
|
void |
setSourceType(String sourceType)
The type of source that will be generating the events.
|
void |
setSubscriptionName(String subscriptionName)
The name of the RDS event notification subscription.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifyEventSubscriptionRequest |
withEnabled(Boolean enabled)
A Boolean value; set to true to activate the subscription.
|
ModifyEventSubscriptionRequest |
withEventCategories(Collection<String> eventCategories)
A list of event categories for a SourceType that you want to subscribe
to.
|
ModifyEventSubscriptionRequest |
withEventCategories(String... eventCategories)
A list of event categories for a SourceType that you want to subscribe
to.
|
ModifyEventSubscriptionRequest |
withSnsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) of the SNS topic created for event
notification.
|
ModifyEventSubscriptionRequest |
withSourceType(String sourceType)
The type of source that will be generating the events.
|
ModifyEventSubscriptionRequest |
withSubscriptionName(String subscriptionName)
The name of the RDS event notification subscription.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public String getSubscriptionName()
public void setSubscriptionName(String subscriptionName)
subscriptionName
- The name of the RDS event notification subscription.public ModifyEventSubscriptionRequest withSubscriptionName(String subscriptionName)
Returns a reference to this object so that method calls can be chained together.
subscriptionName
- The name of the RDS event notification subscription.public String getSnsTopicArn()
public void setSnsTopicArn(String snsTopicArn)
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 ModifyEventSubscriptionRequest withSnsTopicArn(String snsTopicArn)
Returns a reference to this object so that method calls can be chained together.
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 String getSourceType()
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 void setSourceType(String sourceType)
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 ModifyEventSubscriptionRequest withSourceType(String sourceType)
Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
Returns a reference to this object so that method calls can be chained together.
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 List<String> getEventCategories()
public void setEventCategories(Collection<String> eventCategories)
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(String... eventCategories)
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.
Returns a reference to this object so that method calls can be chained together.
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(Collection<String> eventCategories)
Returns a reference to this object so that method calls can be chained together.
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 Boolean isEnabled()
public void setEnabled(Boolean enabled)
enabled
- A Boolean value; set to true to activate the subscription.public ModifyEventSubscriptionRequest withEnabled(Boolean enabled)
Returns a reference to this object so that method calls can be chained together.
enabled
- A Boolean value; set to true to activate the subscription.public Boolean getEnabled()
public String toString()
toString
in class Object
Object.toString()
public ModifyEventSubscriptionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.