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