Interface EventSubscription.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EventSubscription.Builder,
,EventSubscription> SdkBuilder<EventSubscription.Builder,
,EventSubscription> SdkPojo
- Enclosing class:
EventSubscription
-
Method Summary
Modifier and TypeMethodDescriptioncustomerAwsId
(String customerAwsId) The Amazon Web Services account associated with the Amazon Redshift event notification subscription.custSubscriptionId
(String custSubscriptionId) The name of the Amazon Redshift event notification subscription.A boolean value indicating whether the subscription is enabled;true
indicates that the subscription is enabled.eventCategoriesList
(String... eventCategoriesList) The list of Amazon Redshift event categories specified in the event notification subscription.eventCategoriesList
(Collection<String> eventCategoriesList) The list of Amazon Redshift event categories specified in the event notification subscription.The event severity specified in the Amazon Redshift event notification subscription.snsTopicArn
(String snsTopicArn) The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.sourceIdsList
(String... sourceIdsList) A list of the sources that publish events to the Amazon Redshift event notification subscription.sourceIdsList
(Collection<String> sourceIdsList) A list of the sources that publish events to the Amazon Redshift event notification subscription.sourceType
(String sourceType) The source type of the events returned by the Amazon Redshift event notification, such as cluster, cluster-snapshot, cluster-parameter-group, cluster-security-group, or scheduled-action.The status of the Amazon Redshift event notification subscription.subscriptionCreationTime
(Instant subscriptionCreationTime) The date and time the Amazon Redshift event notification subscription was created.tags
(Collection<Tag> tags) The list of tags for the event subscription.tags
(Consumer<Tag.Builder>... tags) The list of tags for the event subscription.The list of tags for the event subscription.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
customerAwsId
The Amazon Web Services account associated with the Amazon Redshift event notification subscription.
- Parameters:
customerAwsId
- The Amazon Web Services account associated with the Amazon Redshift event notification subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
custSubscriptionId
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.
-
snsTopicArn
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.
-
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.
- 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.
-
-
subscriptionCreationTime
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.
-
sourceType
The source type of the events returned by the Amazon Redshift event notification, such as cluster, cluster-snapshot, cluster-parameter-group, cluster-security-group, or scheduled-action.
- Parameters:
sourceType
- The source type of the events returned by the Amazon Redshift event notification, such as cluster, cluster-snapshot, cluster-parameter-group, cluster-security-group, or scheduled-action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceIdsList
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.
-
sourceIdsList
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.
-
eventCategoriesList
The list of Amazon Redshift event categories specified in the event notification subscription.
Values: Configuration, Management, Monitoring, Security, Pending
- Parameters:
eventCategoriesList
- The list of Amazon Redshift event categories specified in the event notification subscription.Values: Configuration, Management, Monitoring, Security, Pending
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventCategoriesList
The list of Amazon Redshift event categories specified in the event notification subscription.
Values: Configuration, Management, Monitoring, Security, Pending
- Parameters:
eventCategoriesList
- The list of Amazon Redshift event categories specified in the event notification subscription.Values: Configuration, Management, Monitoring, Security, Pending
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
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.
-
enabled
A boolean value indicating whether the subscription is enabled;
true
indicates that the subscription is enabled.- Parameters:
enabled
- A boolean value indicating whether the subscription is enabled;true
indicates that the subscription is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
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.
-
tags
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.
-
tags
The list of tags for the event subscription.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-