Class EventSubscription
- All Implemented Interfaces:
Serializable
,Cloneable
Describes event subscriptions.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The AWS customer account associated with the Amazon Redshift event notification subscription.The name of the Amazon Redshift event notification subscription.A Boolean value indicating whether the subscription is enabled.The list of Amazon Redshift event categories specified in the event notification subscription.The event severity specified in the Amazon Redshift event notification subscription.The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.A list of the sources that publish events to the Amazon Redshift event notification subscription.The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.The status of the Amazon Redshift event notification subscription.The date and time the Amazon Redshift event notification subscription was created.getTags()
The list of tags for the event subscription.int
hashCode()
A Boolean value indicating whether the subscription is enabled.void
setCustomerAwsId
(String customerAwsId) The AWS customer account associated with the Amazon Redshift event notification subscription.void
setCustSubscriptionId
(String custSubscriptionId) The name of the Amazon Redshift event notification subscription.void
setEnabled
(Boolean enabled) A Boolean value indicating whether the subscription is enabled.void
setEventCategoriesList
(Collection<String> eventCategoriesList) The list of Amazon Redshift event categories specified in the event notification subscription.void
setSeverity
(String severity) The event severity specified in the Amazon Redshift event notification subscription.void
setSnsTopicArn
(String snsTopicArn) The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.void
setSourceIdsList
(Collection<String> sourceIdsList) A list of the sources that publish events to the Amazon Redshift event notification subscription.void
setSourceType
(String sourceType) The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.void
The status of the Amazon Redshift event notification subscription.void
setSubscriptionCreationTime
(Date subscriptionCreationTime) The date and time the Amazon Redshift event notification subscription was created.void
setTags
(Collection<Tag> tags) The list of tags for the event subscription.toString()
Returns a string representation of this object; useful for testing and debugging.withCustomerAwsId
(String customerAwsId) The AWS customer account associated with the Amazon Redshift event notification subscription.withCustSubscriptionId
(String custSubscriptionId) The name of the Amazon Redshift event notification subscription.withEnabled
(Boolean enabled) A Boolean value indicating whether the subscription is enabled.withEventCategoriesList
(String... eventCategoriesList) The list of Amazon Redshift event categories specified in the event notification subscription.withEventCategoriesList
(Collection<String> eventCategoriesList) The list of Amazon Redshift event categories specified in the event notification subscription.withSeverity
(String severity) The event severity specified in the Amazon Redshift event notification subscription.withSnsTopicArn
(String snsTopicArn) The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.withSourceIdsList
(String... sourceIdsList) A list of the sources that publish events to the Amazon Redshift event notification subscription.withSourceIdsList
(Collection<String> sourceIdsList) A list of the sources that publish events to the Amazon Redshift event notification subscription.withSourceType
(String sourceType) The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.withStatus
(String status) The status of the Amazon Redshift event notification subscription.withSubscriptionCreationTime
(Date subscriptionCreationTime) The date and time the Amazon Redshift event notification subscription was created.The list of tags for the event subscription.withTags
(Collection<Tag> tags) The list of tags for the event subscription.
-
Constructor Details
-
EventSubscription
public EventSubscription()
-
-
Method Details
-
setCustomerAwsId
The AWS customer account associated with the Amazon Redshift event notification subscription.
- Parameters:
customerAwsId
- The AWS customer account associated with the Amazon Redshift event notification subscription.
-
getCustomerAwsId
The AWS customer account associated with the Amazon Redshift event notification subscription.
- Returns:
- The AWS customer account associated with the Amazon Redshift event notification subscription.
-
withCustomerAwsId
The AWS customer account associated with the Amazon Redshift event notification subscription.
- Parameters:
customerAwsId
- The AWS customer account associated with the Amazon Redshift event notification subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCustSubscriptionId
The name of the Amazon Redshift event notification subscription.
- Parameters:
custSubscriptionId
- The name of the Amazon Redshift event notification subscription.
-
getCustSubscriptionId
The name of the Amazon Redshift event notification subscription.
- Returns:
- The name of the Amazon Redshift event notification subscription.
-
withCustSubscriptionId
The name of the Amazon Redshift event notification subscription.
- Parameters:
custSubscriptionId
- The name of the Amazon Redshift event notification subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSnsTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.
- Parameters:
snsTopicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.
-
getSnsTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.
- Returns:
- The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.
-
withSnsTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.
- Parameters:
snsTopicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
The status of the Amazon Redshift event notification subscription.
Constraints:
- Can be one of the following: active | no-permission | topic-not-exist
- The status "no-permission" indicates that Amazon Redshift no longer has permission to post to the Amazon SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
- Parameters:
status
- The status of the Amazon Redshift event notification subscription.Constraints:
- Can be one of the following: active | no-permission | topic-not-exist
- The status "no-permission" indicates that Amazon Redshift no longer has permission to post to the Amazon SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
-
getStatus
The status of the Amazon Redshift event notification subscription.
Constraints:
- Can be one of the following: active | no-permission | topic-not-exist
- The status "no-permission" indicates that Amazon Redshift no longer has permission to post to the Amazon SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
- Returns:
- The status of the Amazon Redshift event notification
subscription.
Constraints:
- Can be one of the following: active | no-permission | topic-not-exist
- The status "no-permission" indicates that Amazon Redshift no longer has permission to post to the Amazon SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
-
withStatus
The status of the Amazon Redshift event notification subscription.
Constraints:
- Can be one of the following: active | no-permission | topic-not-exist
- The status "no-permission" indicates that Amazon Redshift no longer has permission to post to the Amazon SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
- Parameters:
status
- The status of the Amazon Redshift event notification subscription.Constraints:
- Can be one of the following: active | no-permission | topic-not-exist
- The status "no-permission" indicates that Amazon Redshift no longer has permission to post to the Amazon SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSubscriptionCreationTime
The date and time the Amazon Redshift event notification subscription was created.
- Parameters:
subscriptionCreationTime
- The date and time the Amazon Redshift event notification subscription was created.
-
getSubscriptionCreationTime
The date and time the Amazon Redshift event notification subscription was created.
- Returns:
- The date and time the Amazon Redshift event notification subscription was created.
-
withSubscriptionCreationTime
The date and time the Amazon Redshift event notification subscription was created.
- Parameters:
subscriptionCreationTime
- The date and time the Amazon Redshift event notification subscription was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceType
The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.
- Parameters:
sourceType
- The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.
-
getSourceType
The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.
- Returns:
- The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.
-
withSourceType
The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.
- Parameters:
sourceType
- The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSourceIdsList
A list of the sources that publish events to the Amazon Redshift event notification subscription.
- Returns:
- A list of the sources that publish events to the Amazon Redshift event notification subscription.
-
setSourceIdsList
A list of the sources that publish events to the Amazon Redshift event notification subscription.
- Parameters:
sourceIdsList
- A list of the sources that publish events to the Amazon Redshift event notification subscription.
-
withSourceIdsList
A list of the sources that publish events to the Amazon Redshift event notification subscription.
NOTE: This method appends the values to the existing list (if any). Use
setSourceIdsList(java.util.Collection)
orwithSourceIdsList(java.util.Collection)
if you want to override the existing values.- Parameters:
sourceIdsList
- A list of the sources that publish events to the Amazon Redshift event notification subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSourceIdsList
A list of the sources that publish events to the Amazon Redshift event notification subscription.
- Parameters:
sourceIdsList
- A list of the sources that publish events to the Amazon Redshift event notification subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEventCategoriesList
The list of Amazon Redshift event categories specified in the event notification subscription.
Values: Configuration, Management, Monitoring, Security
- Returns:
- The list of Amazon Redshift event categories specified in the
event notification subscription.
Values: Configuration, Management, Monitoring, Security
-
setEventCategoriesList
The list of Amazon Redshift event categories specified in the event notification subscription.
Values: Configuration, Management, Monitoring, Security
- Parameters:
eventCategoriesList
- The list of Amazon Redshift event categories specified in the event notification subscription.Values: Configuration, Management, Monitoring, Security
-
withEventCategoriesList
The list of Amazon Redshift event categories specified in the event notification subscription.
Values: Configuration, Management, Monitoring, Security
NOTE: This method appends the values to the existing list (if any). Use
setEventCategoriesList(java.util.Collection)
orwithEventCategoriesList(java.util.Collection)
if you want to override the existing values.- Parameters:
eventCategoriesList
- The list of Amazon Redshift event categories specified in the event notification subscription.Values: Configuration, Management, Monitoring, Security
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEventCategoriesList
The list of Amazon Redshift event categories specified in the event notification subscription.
Values: Configuration, Management, Monitoring, Security
- Parameters:
eventCategoriesList
- The list of Amazon Redshift event categories specified in the event notification subscription.Values: Configuration, Management, Monitoring, Security
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSeverity
The event severity specified in the Amazon Redshift event notification subscription.
Values: ERROR, INFO
- Parameters:
severity
- The event severity specified in the Amazon Redshift event notification subscription.Values: ERROR, INFO
-
getSeverity
The event severity specified in the Amazon Redshift event notification subscription.
Values: ERROR, INFO
- Returns:
- The event severity specified in the Amazon Redshift event
notification subscription.
Values: ERROR, INFO
-
withSeverity
The event severity specified in the Amazon Redshift event notification subscription.
Values: ERROR, INFO
- Parameters:
severity
- The event severity specified in the Amazon Redshift event notification subscription.Values: ERROR, INFO
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnabled
A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.- Parameters:
enabled
- A Boolean value indicating whether the subscription is enabled.true
indicates the subscription is enabled.
-
getEnabled
A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.- Returns:
- A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.
-
withEnabled
A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.- Parameters:
enabled
- A Boolean value indicating whether the subscription is enabled.true
indicates the subscription is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnabled
A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.- Returns:
- A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.
-
getTags
The list of tags for the event subscription.
- Returns:
- The list of tags for the event subscription.
-
setTags
The list of tags for the event subscription.
- Parameters:
tags
- The list of tags for the event subscription.
-
withTags
The list of tags for the event subscription.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- The list of tags for the event subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
The list of tags for the event subscription.
- Parameters:
tags
- The list of tags for the event subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-