Interface EventSubscription.Builder

    • 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; 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

        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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)