Interface CustomAction.Builder

    • Method Detail

      • customActionArn

        CustomAction.Builder customActionArn​(String customActionArn)

        The fully defined Amazon Resource Name (ARN) of the custom action.

        Parameters:
        customActionArn - The fully defined Amazon Resource Name (ARN) of the custom action.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • definition

        CustomAction.Builder definition​(CustomActionDefinition definition)

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

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

        CustomAction.Builder aliasName​(String aliasName)

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

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

        CustomAction.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

        CustomAction.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.
      • actionName

        CustomAction.Builder actionName​(String actionName)

        The name of the custom action that is included in the ARN.

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