Interface BotChannelAssociation.Builder

    • Method Detail

      • name

        BotChannelAssociation.Builder name​(String name)

        The name of the association between the bot and the channel.

        Parameters:
        name - The name of the association between the bot and the channel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        BotChannelAssociation.Builder description​(String description)

        A text description of the association you are creating.

        Parameters:
        description - A text description of the association you are creating.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • botAlias

        BotChannelAssociation.Builder botAlias​(String botAlias)

        An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.

        Parameters:
        botAlias - An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • botName

        BotChannelAssociation.Builder botName​(String botName)

        The name of the Amazon Lex bot to which this association is being made.

        Currently, Amazon Lex supports associations with Facebook and Slack, and Twilio.

        Parameters:
        botName - The name of the Amazon Lex bot to which this association is being made.

        Currently, Amazon Lex supports associations with Facebook and Slack, and Twilio.

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

        BotChannelAssociation.Builder createdDate​(Instant createdDate)

        The date that the association between the Amazon Lex bot and the channel was created.

        Parameters:
        createdDate - The date that the association between the Amazon Lex bot and the channel was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        BotChannelAssociation.Builder type​(String type)

        Specifies the type of association by indicating the type of channel being established between the Amazon Lex bot and the external messaging platform.

        Parameters:
        type - Specifies the type of association by indicating the type of channel being established between the Amazon Lex bot and the external messaging platform.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ChannelType, ChannelType
      • type

        BotChannelAssociation.Builder type​(ChannelType type)

        Specifies the type of association by indicating the type of channel being established between the Amazon Lex bot and the external messaging platform.

        Parameters:
        type - Specifies the type of association by indicating the type of channel being established between the Amazon Lex bot and the external messaging platform.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ChannelType, ChannelType
      • botConfiguration

        BotChannelAssociation.Builder botConfiguration​(Map<String,​String> botConfiguration)

        Provides information necessary to communicate with the messaging platform.

        Parameters:
        botConfiguration - Provides information necessary to communicate with the messaging platform.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        BotChannelAssociation.Builder status​(String status)

        The status of the bot channel.

        • CREATED - The channel has been created and is ready for use.

        • IN_PROGRESS - Channel creation is in progress.

        • FAILED - There was an error creating the channel. For information about the reason for the failure, see the failureReason field.

        Parameters:
        status - The status of the bot channel.

        • CREATED - The channel has been created and is ready for use.

        • IN_PROGRESS - Channel creation is in progress.

        • FAILED - There was an error creating the channel. For information about the reason for the failure, see the failureReason field.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ChannelStatus, ChannelStatus
      • status

        BotChannelAssociation.Builder status​(ChannelStatus status)

        The status of the bot channel.

        • CREATED - The channel has been created and is ready for use.

        • IN_PROGRESS - Channel creation is in progress.

        • FAILED - There was an error creating the channel. For information about the reason for the failure, see the failureReason field.

        Parameters:
        status - The status of the bot channel.

        • CREATED - The channel has been created and is ready for use.

        • IN_PROGRESS - Channel creation is in progress.

        • FAILED - There was an error creating the channel. For information about the reason for the failure, see the failureReason field.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ChannelStatus, ChannelStatus
      • failureReason

        BotChannelAssociation.Builder failureReason​(String failureReason)

        If status is FAILED, Amazon Lex provides the reason that it failed to create the association.

        Parameters:
        failureReason - If status is FAILED, Amazon Lex provides the reason that it failed to create the association.
        Returns:
        Returns a reference to this object so that method calls can be chained together.