@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyEventSubscriptionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input to ModifyEventSubscription.
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()
 A Boolean value; set to  trueto activate the subscription. | 
| List<String> | getEventCategories()
 A list of event categories for a  SourceTypethat 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 Amazon DocumentDB event notification subscription. | 
| int | hashCode() | 
| Boolean | isEnabled()
 A Boolean value; set to  trueto activate the subscription. | 
| void | setEnabled(Boolean enabled)
 A Boolean value; set to  trueto activate the subscription. | 
| void | setEventCategories(Collection<String> eventCategories)
 A list of event categories for a  SourceTypethat 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 Amazon DocumentDB event notification subscription. | 
| String | toString()Returns a string representation of this object. | 
| ModifyEventSubscriptionRequest | withEnabled(Boolean enabled)
 A Boolean value; set to  trueto activate the subscription. | 
| ModifyEventSubscriptionRequest | withEventCategories(Collection<String> eventCategories)
 A list of event categories for a  SourceTypethat you want to subscribe to. | 
| ModifyEventSubscriptionRequest | withEventCategories(String... eventCategories)
 A list of event categories for a  SourceTypethat 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 Amazon DocumentDB 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, withSdkRequestTimeoutpublic void setSubscriptionName(String subscriptionName)
The name of the Amazon DocumentDB event notification subscription.
subscriptionName - The name of the Amazon DocumentDB event notification subscription.public String getSubscriptionName()
The name of the Amazon DocumentDB event notification subscription.
public ModifyEventSubscriptionRequest withSubscriptionName(String subscriptionName)
The name of the Amazon DocumentDB event notification subscription.
subscriptionName - The name of the Amazon DocumentDB 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
 an instance, 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
 
sourceType - The type of source that is generating the events. For example, if you want to be notified of events
        generated by an instance, 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
public String getSourceType()
 The type of source that is generating the events. For example, if you want to be notified of events generated by
 an instance, 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-instance. If this value is not specified,
         all events are returned.
         
         Valid values: db-instance, db-parameter-group, db-security-group
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
 an instance, 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
 
sourceType - The type of source that is generating the events. For example, if you want to be notified of events
        generated by an instance, 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
public List<String> getEventCategories()
 A list of event categories for a SourceType that you want to subscribe to.
 
SourceType that you want to subscribe to.public void setEventCategories(Collection<String> eventCategories)
 A list of event categories for a SourceType that you want to subscribe to.
 
eventCategories - A list of event categories for a SourceType that you want to subscribe to.public ModifyEventSubscriptionRequest withEventCategories(String... eventCategories)
 A list of event categories for a SourceType that you want to subscribe to.
 
 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.public ModifyEventSubscriptionRequest withEventCategories(Collection<String> eventCategories)
 A list of event categories for a SourceType that you want to subscribe to.
 
eventCategories - A list of event categories for a SourceType that you want to subscribe to.public void setEnabled(Boolean enabled)
 A Boolean value; set to true to activate the subscription.
 
enabled - A Boolean value; set to true to activate the subscription.public Boolean getEnabled()
 A Boolean value; set to true to activate the subscription.
 
true to activate the subscription.public ModifyEventSubscriptionRequest withEnabled(Boolean enabled)
 A Boolean value; set to true to activate the subscription.
 
enabled - A Boolean value; set to true to activate the subscription.public Boolean isEnabled()
 A Boolean value; set to true to activate the subscription.
 
true to activate the subscription.public String toString()
toString in class ObjectObject.toString()public ModifyEventSubscriptionRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()