Interface EventSubscription.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EventSubscription.Builder,EventSubscription>,SdkBuilder<EventSubscription.Builder,EventSubscription>,SdkPojo
- Enclosing class:
- EventSubscription
public static interface EventSubscription.Builder extends SdkPojo, CopyableBuilder<EventSubscription.Builder,EventSubscription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EventSubscription.BuildercustomerAwsId(String customerAwsId)The Amazon Web Services account associated with the Amazon Redshift event notification subscription.EventSubscription.BuildercustSubscriptionId(String custSubscriptionId)The name of the Amazon Redshift event notification subscription.EventSubscription.Builderenabled(Boolean enabled)A boolean value indicating whether the subscription is enabled;trueindicates that the subscription is enabled.EventSubscription.BuildereventCategoriesList(String... eventCategoriesList)The list of Amazon Redshift event categories specified in the event notification subscription.EventSubscription.BuildereventCategoriesList(Collection<String> eventCategoriesList)The list of Amazon Redshift event categories specified in the event notification subscription.EventSubscription.Builderseverity(String severity)The event severity specified in the Amazon Redshift event notification subscription.EventSubscription.BuildersnsTopicArn(String snsTopicArn)The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.EventSubscription.BuildersourceIdsList(String... sourceIdsList)A list of the sources that publish events to the Amazon Redshift event notification subscription.EventSubscription.BuildersourceIdsList(Collection<String> sourceIdsList)A list of the sources that publish events to the Amazon Redshift event notification subscription.EventSubscription.BuildersourceType(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.EventSubscription.Builderstatus(String status)The status of the Amazon Redshift event notification subscription.EventSubscription.BuildersubscriptionCreationTime(Instant subscriptionCreationTime)The date and time the Amazon Redshift event notification subscription was created.EventSubscription.Buildertags(Collection<Tag> tags)The list of tags for the event subscription.EventSubscription.Buildertags(Consumer<Tag.Builder>... tags)The list of tags for the event subscription.EventSubscription.Buildertags(Tag... tags)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 Detail
-
customerAwsId
EventSubscription.Builder customerAwsId(String 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
EventSubscription.Builder custSubscriptionId(String 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
EventSubscription.Builder snsTopicArn(String 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
EventSubscription.Builder status(String 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
EventSubscription.Builder subscriptionCreationTime(Instant 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
EventSubscription.Builder 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.
- 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
EventSubscription.Builder sourceIdsList(Collection<String> 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
EventSubscription.Builder sourceIdsList(String... 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
EventSubscription.Builder eventCategoriesList(Collection<String> 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
EventSubscription.Builder eventCategoriesList(String... 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
EventSubscription.Builder severity(String 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
EventSubscription.Builder enabled(Boolean enabled)
A boolean value indicating whether the subscription is enabled;
trueindicates that the subscription is enabled.- Parameters:
enabled- A boolean value indicating whether the subscription is enabled;trueindicates that the subscription is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
EventSubscription.Builder tags(Collection<Tag> 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
EventSubscription.Builder tags(Tag... 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
EventSubscription.Builder tags(Consumer<Tag.Builder>... tags)
The list of tags for the event subscription.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
-