|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.rds.model.ModifyEventSubscriptionRequest
public class ModifyEventSubscriptionRequest
Container for the parameters to the 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.
AmazonRDS.modifyEventSubscription(ModifyEventSubscriptionRequest)
,
Serialized FormConstructor Summary | |
---|---|
ModifyEventSubscriptionRequest()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModifyEventSubscriptionRequest()
Method Detail |
---|
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)
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 int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |