@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyEventSubscriptionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ModifyEventSubscriptionRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyEventSubscriptionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getEnabled()
Specifies whether to activate the subscription.
|
List<String> |
getEventCategories()
A list of event categories for a source type (
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 is generating the events.
|
String |
getSubscriptionName()
The name of the RDS event notification subscription.
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether to activate the subscription.
|
void |
setEnabled(Boolean enabled)
Specifies whether to activate the subscription.
|
void |
setEventCategories(Collection<String> eventCategories)
A list of event categories for a source type (
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 is generating the events.
|
void |
setSubscriptionName(String subscriptionName)
The name of the RDS event notification subscription.
|
String |
toString()
Returns a string representation of this object.
|
ModifyEventSubscriptionRequest |
withEnabled(Boolean enabled)
Specifies whether to activate the subscription.
|
ModifyEventSubscriptionRequest |
withEventCategories(Collection<String> eventCategories)
A list of event categories for a source type (
SourceType ) that you want to subscribe to. |
ModifyEventSubscriptionRequest |
withEventCategories(String... eventCategories)
A list of event categories for a source type (
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 is generating the events.
|
ModifyEventSubscriptionRequest |
withSubscriptionName(String subscriptionName)
The name of the RDS event notification subscription.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setSubscriptionName(String subscriptionName)
The name of the RDS event notification subscription.
subscriptionName
- The name of the RDS event notification subscription.public String getSubscriptionName()
The name of the RDS event notification subscription.
public ModifyEventSubscriptionRequest withSubscriptionName(String subscriptionName)
The name of the RDS event notification subscription.
subscriptionName
- The name of the RDS event notification subscription.public void setSnsTopicArn(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 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(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(String sourceType)
The type of source that is 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. For RDS Proxy events, specify db-proxy
.
If this value isn't specified, all events are returned.
Valid Values:
db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
sourceType
- The type of source that is 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. For RDS Proxy events, specify
db-proxy
. If this value isn't specified, all events are returned.
Valid Values:
db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
public String getSourceType()
The type of source that is 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. For RDS Proxy events, specify db-proxy
.
If this value isn't specified, all events are returned.
Valid Values:
db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
db-proxy
. If this value isn't specified, all events are returned.
Valid Values:
db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
public ModifyEventSubscriptionRequest withSourceType(String sourceType)
The type of source that is 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. For RDS Proxy events, specify db-proxy
.
If this value isn't specified, all events are returned.
Valid Values:
db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
sourceType
- The type of source that is 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. For RDS Proxy events, specify
db-proxy
. If this value isn't specified, all events are returned.
Valid Values:
db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
public List<String> getEventCategories()
A list of event categories for a source type (SourceType
) that you want to subscribe to. You can see
a list of the categories for a given source type in Events in the Amazon RDS
User Guide or by using the DescribeEventCategories
operation.
SourceType
) that you want to subscribe to. You
can see a list of the categories for a given source type in Events in the
Amazon RDS User Guide or by using the DescribeEventCategories
operation.public void setEventCategories(Collection<String> eventCategories)
A list of event categories for a source type (SourceType
) that you want to subscribe to. You can see
a list of the categories for a given source type in Events in the Amazon RDS
User Guide or by using the DescribeEventCategories
operation.
eventCategories
- A list of event categories for a source type (SourceType
) that you want to subscribe to. You
can see a list of the categories for a given source type in Events in the Amazon
RDS User Guide or by using the DescribeEventCategories
operation.public ModifyEventSubscriptionRequest withEventCategories(String... eventCategories)
A list of event categories for a source type (SourceType
) that you want to subscribe to. You can see
a list of the categories for a given source type in Events in the Amazon RDS
User Guide or by using the DescribeEventCategories
operation.
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 source type (SourceType
) that you want to subscribe to. You
can see a list of the categories for a given source type in Events in the Amazon
RDS User Guide or by using the DescribeEventCategories
operation.public ModifyEventSubscriptionRequest withEventCategories(Collection<String> eventCategories)
A list of event categories for a source type (SourceType
) that you want to subscribe to. You can see
a list of the categories for a given source type in Events in the Amazon RDS
User Guide or by using the DescribeEventCategories
operation.
eventCategories
- A list of event categories for a source type (SourceType
) that you want to subscribe to. You
can see a list of the categories for a given source type in Events in the Amazon
RDS User Guide or by using the DescribeEventCategories
operation.public void setEnabled(Boolean enabled)
Specifies whether to activate the subscription.
enabled
- Specifies whether to activate the subscription.public Boolean getEnabled()
Specifies whether to activate the subscription.
public ModifyEventSubscriptionRequest withEnabled(Boolean enabled)
Specifies whether to activate the subscription.
enabled
- Specifies whether to activate the subscription.public Boolean isEnabled()
Specifies whether to activate the subscription.
public String toString()
toString
in class Object
Object.toString()
public ModifyEventSubscriptionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()