@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()
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 is generating the events.
|
String |
getSubscriptionName()
The name of the 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 is generating the events.
|
void |
setSubscriptionName(String subscriptionName)
The name of the event notification subscription.
|
String |
toString()
Returns a string representation of this object.
|
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 is generating the events.
|
ModifyEventSubscriptionRequest |
withSubscriptionName(String subscriptionName)
The name of the 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 event notification subscription.
subscriptionName
- The name of the event notification subscription.public String getSubscriptionName()
The name of the event notification subscription.
public ModifyEventSubscriptionRequest withSubscriptionName(String subscriptionName)
The name of the event notification subscription.
subscriptionName
- The name of the 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. 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 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. if this value is not specified,
all events are returned.
Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
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. 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(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. 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 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. 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()
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 by using the DescribeEventCategories action.
public void setEventCategories(Collection<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 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 by using the DescribeEventCategories action.public ModifyEventSubscriptionRequest withEventCategories(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 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 by using the DescribeEventCategories action.public ModifyEventSubscriptionRequest withEventCategories(Collection<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 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 by using the DescribeEventCategories action.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.
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.
public String toString()
toString
in class Object
Object.toString()
public ModifyEventSubscriptionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()