public class EventSubscription extends Object implements Serializable, Cloneable
Describes event subscriptions.
Constructor and Description |
---|
EventSubscription() |
Modifier and Type | Method and Description |
---|---|
EventSubscription |
clone() |
boolean |
equals(Object obj) |
String |
getCustomerAwsId()
The AWS customer account associated with the Amazon Redshift event
notification subscription.
|
String |
getCustSubscriptionId()
The name of the Amazon Redshift event notification subscription.
|
Boolean |
getEnabled()
A Boolean value indicating whether the subscription is enabled.
|
List<String> |
getEventCategoriesList()
The list of Amazon Redshift event categories specified in the event
notification subscription.
|
String |
getSeverity()
The event severity specified in the Amazon Redshift event notification
subscription.
|
String |
getSnsTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event
notification subscription.
|
List<String> |
getSourceIdsList()
A list of the sources that publish events to the Amazon Redshift event
notification subscription.
|
String |
getSourceType()
The source type of the events returned the Amazon Redshift event
notification, such as cluster, or cluster-snapshot.
|
String |
getStatus()
The status of the Amazon Redshift event notification subscription.
|
Date |
getSubscriptionCreationTime()
The date and time the Amazon Redshift event notification subscription was
created.
|
List<Tag> |
getTags()
The list of tags for the event subscription.
|
int |
hashCode() |
Boolean |
isEnabled()
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 |
setStatus(String status)
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventSubscription |
withCustomerAwsId(String customerAwsId)
The AWS customer account associated with the Amazon Redshift event
notification subscription.
|
EventSubscription |
withCustSubscriptionId(String custSubscriptionId)
The name of the Amazon Redshift event notification subscription.
|
EventSubscription |
withEnabled(Boolean enabled)
A Boolean value indicating whether the subscription is enabled.
|
EventSubscription |
withEventCategoriesList(Collection<String> eventCategoriesList)
The list of Amazon Redshift event categories specified in the event
notification subscription.
|
EventSubscription |
withEventCategoriesList(String... eventCategoriesList)
The list of Amazon Redshift event categories specified in the event
notification subscription.
|
EventSubscription |
withSeverity(String severity)
The event severity specified in the Amazon Redshift event notification
subscription.
|
EventSubscription |
withSnsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event
notification subscription.
|
EventSubscription |
withSourceIdsList(Collection<String> sourceIdsList)
A list of the sources that publish events to the Amazon Redshift event
notification subscription.
|
EventSubscription |
withSourceIdsList(String... sourceIdsList)
A list of the sources that publish events to the Amazon Redshift event
notification subscription.
|
EventSubscription |
withSourceType(String sourceType)
The source type of the events returned the Amazon Redshift event
notification, such as cluster, or cluster-snapshot.
|
EventSubscription |
withStatus(String status)
The status of the Amazon Redshift event notification subscription.
|
EventSubscription |
withSubscriptionCreationTime(Date subscriptionCreationTime)
The date and time the Amazon Redshift event notification subscription was
created.
|
EventSubscription |
withTags(Collection<Tag> tags)
The list of tags for the event subscription.
|
EventSubscription |
withTags(Tag... tags)
The list of tags for the event subscription.
|
public void setCustomerAwsId(String customerAwsId)
The AWS customer account associated with the Amazon Redshift event notification subscription.
customerAwsId
- The AWS customer account associated with the Amazon Redshift event
notification subscription.public String getCustomerAwsId()
The AWS customer account associated with the Amazon Redshift event notification subscription.
public EventSubscription withCustomerAwsId(String customerAwsId)
The AWS customer account associated with the Amazon Redshift event notification subscription.
customerAwsId
- The AWS customer account associated with the Amazon Redshift event
notification subscription.public void setCustSubscriptionId(String custSubscriptionId)
The name of the Amazon Redshift event notification subscription.
custSubscriptionId
- The name of the Amazon Redshift event notification subscription.public String getCustSubscriptionId()
The name of the Amazon Redshift event notification subscription.
public EventSubscription withCustSubscriptionId(String custSubscriptionId)
The name of the Amazon Redshift event notification subscription.
custSubscriptionId
- The name of the Amazon Redshift event notification subscription.public void setSnsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.
snsTopicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic used by the
event notification subscription.public String getSnsTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.
public EventSubscription withSnsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.
snsTopicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic used by the
event notification subscription.public void setStatus(String status)
The status of the Amazon Redshift event notification subscription.
Constraints:
status
- The status of the Amazon Redshift event notification
subscription.
Constraints:
public String getStatus()
The status of the Amazon Redshift event notification subscription.
Constraints:
Constraints:
public EventSubscription withStatus(String status)
The status of the Amazon Redshift event notification subscription.
Constraints:
status
- The status of the Amazon Redshift event notification
subscription.
Constraints:
public void setSubscriptionCreationTime(Date subscriptionCreationTime)
The date and time the Amazon Redshift event notification subscription was created.
subscriptionCreationTime
- The date and time the Amazon Redshift event notification
subscription was created.public Date getSubscriptionCreationTime()
The date and time the Amazon Redshift event notification subscription was created.
public EventSubscription withSubscriptionCreationTime(Date subscriptionCreationTime)
The date and time the Amazon Redshift event notification subscription was created.
subscriptionCreationTime
- The date and time the Amazon Redshift event notification
subscription was created.public void setSourceType(String sourceType)
The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.
sourceType
- The source type of the events returned the Amazon Redshift event
notification, such as cluster, or cluster-snapshot.public String getSourceType()
The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.
public EventSubscription withSourceType(String sourceType)
The source type of the events returned the Amazon Redshift event notification, such as cluster, or cluster-snapshot.
sourceType
- The source type of the events returned the Amazon Redshift event
notification, such as cluster, or cluster-snapshot.public List<String> getSourceIdsList()
A list of the sources that publish events to the Amazon Redshift event notification subscription.
public void setSourceIdsList(Collection<String> sourceIdsList)
A list of the sources that publish events to the Amazon Redshift event notification subscription.
sourceIdsList
- A list of the sources that publish events to the Amazon Redshift
event notification subscription.public EventSubscription withSourceIdsList(String... sourceIdsList)
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)
or
withSourceIdsList(java.util.Collection)
if you want to override
the existing values.
sourceIdsList
- A list of the sources that publish events to the Amazon Redshift
event notification subscription.public EventSubscription withSourceIdsList(Collection<String> sourceIdsList)
A list of the sources that publish events to the Amazon Redshift event notification subscription.
sourceIdsList
- A list of the sources that publish events to the Amazon Redshift
event notification subscription.public List<String> getEventCategoriesList()
The list of Amazon Redshift event categories specified in the event notification subscription.
Values: Configuration, Management, Monitoring, Security
Values: Configuration, Management, Monitoring, Security
public void setEventCategoriesList(Collection<String> eventCategoriesList)
The list of Amazon Redshift event categories specified in the event notification subscription.
Values: Configuration, Management, Monitoring, Security
eventCategoriesList
- The list of Amazon Redshift event categories specified in the
event notification subscription.
Values: Configuration, Management, Monitoring, Security
public EventSubscription withEventCategoriesList(String... eventCategoriesList)
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)
or
withEventCategoriesList(java.util.Collection)
if you want to
override the existing values.
eventCategoriesList
- The list of Amazon Redshift event categories specified in the
event notification subscription.
Values: Configuration, Management, Monitoring, Security
public EventSubscription withEventCategoriesList(Collection<String> eventCategoriesList)
The list of Amazon Redshift event categories specified in the event notification subscription.
Values: Configuration, Management, Monitoring, Security
eventCategoriesList
- The list of Amazon Redshift event categories specified in the
event notification subscription.
Values: Configuration, Management, Monitoring, Security
public void setSeverity(String severity)
The event severity specified in the Amazon Redshift event notification subscription.
Values: ERROR, INFO
severity
- The event severity specified in the Amazon Redshift event
notification subscription.
Values: ERROR, INFO
public String getSeverity()
The event severity specified in the Amazon Redshift event notification subscription.
Values: ERROR, INFO
Values: ERROR, INFO
public EventSubscription withSeverity(String severity)
The event severity specified in the Amazon Redshift event notification subscription.
Values: ERROR, INFO
severity
- The event severity specified in the Amazon Redshift event
notification subscription.
Values: ERROR, INFO
public void setEnabled(Boolean enabled)
A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.
enabled
- A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.public Boolean getEnabled()
A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.
true
indicates the subscription is enabled.public EventSubscription withEnabled(Boolean enabled)
A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.
enabled
- A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.public Boolean isEnabled()
A Boolean value indicating whether the subscription is enabled.
true
indicates the subscription is enabled.
true
indicates the subscription is enabled.public List<Tag> getTags()
The list of tags for the event subscription.
public void setTags(Collection<Tag> tags)
The list of tags for the event subscription.
tags
- The list of tags for the event subscription.public EventSubscription withTags(Tag... tags)
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)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The list of tags for the event subscription.public EventSubscription withTags(Collection<Tag> tags)
The list of tags for the event subscription.
tags
- The list of tags for the event subscription.public String toString()
toString
in class Object
Object.toString()
public EventSubscription clone()
Copyright © 2018. All rights reserved.