Interface CreateCustomActionRequest.Builder

    • Method Detail

      • definition

        CreateCustomActionRequest.Builder definition​(CustomActionDefinition definition)

        The definition of the command to run when invoked as an alias or as an action button.

        Parameters:
        definition - The definition of the command to run when invoked as an alias or as an action button.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • aliasName

        CreateCustomActionRequest.Builder aliasName​(String aliasName)

        The name used to invoke this action in a chat channel. For example, @aws run my-alias.

        Parameters:
        aliasName - The name used to invoke this action in a chat channel. For example, @aws run my-alias.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attachments

        CreateCustomActionRequest.Builder attachments​(Collection<CustomActionAttachment> attachments)

        Defines when this custom action button should be attached to a notification.

        Parameters:
        attachments - Defines when this custom action button should be attached to a notification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attachments

        CreateCustomActionRequest.Builder attachments​(CustomActionAttachment... attachments)

        Defines when this custom action button should be attached to a notification.

        Parameters:
        attachments - Defines when this custom action button should be attached to a notification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateCustomActionRequest.Builder tags​(Collection<Tag> tags)

        A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

        Parameters:
        tags - A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateCustomActionRequest.Builder tags​(Tag... tags)

        A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

        Parameters:
        tags - A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateCustomActionRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

        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)
      • clientToken

        CreateCustomActionRequest.Builder clientToken​(String clientToken)

        A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.

        If you do not specify a client token, one is automatically generated by the SDK.

        Parameters:
        clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.

        If you do not specify a client token, one is automatically generated by the SDK.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • actionName

        CreateCustomActionRequest.Builder actionName​(String actionName)

        The name of the custom action. This name is included in the Amazon Resource Name (ARN).

        Parameters:
        actionName - The name of the custom action. This name is included in the Amazon Resource Name (ARN).
        Returns:
        Returns a reference to this object so that method calls can be chained together.