Interface NewSessionDetails.Builder

All Superinterfaces:
Buildable, CopyableBuilder<NewSessionDetails.Builder,NewSessionDetails>, SdkBuilder<NewSessionDetails.Builder,NewSessionDetails>, SdkPojo
Enclosing class:
NewSessionDetails

public static interface NewSessionDetails.Builder extends SdkPojo, CopyableBuilder<NewSessionDetails.Builder,NewSessionDetails>
  • Method Details

    • supportedMessagingContentTypes

      NewSessionDetails.Builder supportedMessagingContentTypes(Collection<String> supportedMessagingContentTypes)

      The supported chat message content types. Supported types are text/plain, text/markdown, application/json, application/vnd.amazonaws.connect.message.interactive, and application/vnd.amazonaws.connect.message.interactive.response.

      Content types must always contain text/plain. You can then put any other supported type in the list. For example, all the following lists are valid because they contain text/plain: [text/plain, text/markdown, application/json], [text/markdown, text/plain], [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response].

      Parameters:
      supportedMessagingContentTypes - The supported chat message content types. Supported types are text/plain, text/markdown, application/json, application/vnd.amazonaws.connect.message.interactive, and application/vnd.amazonaws.connect.message.interactive.response.

      Content types must always contain text/plain. You can then put any other supported type in the list. For example, all the following lists are valid because they contain text/plain: [text/plain, text/markdown, application/json], [text/markdown, text/plain], [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response].

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

      NewSessionDetails.Builder supportedMessagingContentTypes(String... supportedMessagingContentTypes)

      The supported chat message content types. Supported types are text/plain, text/markdown, application/json, application/vnd.amazonaws.connect.message.interactive, and application/vnd.amazonaws.connect.message.interactive.response.

      Content types must always contain text/plain. You can then put any other supported type in the list. For example, all the following lists are valid because they contain text/plain: [text/plain, text/markdown, application/json], [text/markdown, text/plain], [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response].

      Parameters:
      supportedMessagingContentTypes - The supported chat message content types. Supported types are text/plain, text/markdown, application/json, application/vnd.amazonaws.connect.message.interactive, and application/vnd.amazonaws.connect.message.interactive.response.

      Content types must always contain text/plain. You can then put any other supported type in the list. For example, all the following lists are valid because they contain text/plain: [text/plain, text/markdown, application/json], [text/markdown, text/plain], [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response].

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

      NewSessionDetails.Builder participantDetails(ParticipantDetails participantDetails)
      Sets the value of the ParticipantDetails property for this object.
      Parameters:
      participantDetails - The new value for the ParticipantDetails property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • participantDetails

      default NewSessionDetails.Builder participantDetails(Consumer<ParticipantDetails.Builder> participantDetails)
      Sets the value of the ParticipantDetails property for this object. This is a convenience method that creates an instance of the ParticipantDetails.Builder avoiding the need to create one manually via ParticipantDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to participantDetails(ParticipantDetails).

      Parameters:
      participantDetails - a consumer that will call methods on ParticipantDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • attributes

      NewSessionDetails.Builder attributes(Map<String,String> attributes)

      A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows just like any other contact attributes.

      There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

      Parameters:
      attributes - A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows just like any other contact attributes.

      There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

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

      NewSessionDetails.Builder streamingConfiguration(ChatStreamingConfiguration streamingConfiguration)
      Sets the value of the StreamingConfiguration property for this object.
      Parameters:
      streamingConfiguration - The new value for the StreamingConfiguration property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • streamingConfiguration

      default NewSessionDetails.Builder streamingConfiguration(Consumer<ChatStreamingConfiguration.Builder> streamingConfiguration)
      Sets the value of the StreamingConfiguration property for this object. This is a convenience method that creates an instance of the ChatStreamingConfiguration.Builder avoiding the need to create one manually via ChatStreamingConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to streamingConfiguration(ChatStreamingConfiguration).

      Parameters:
      streamingConfiguration - a consumer that will call methods on ChatStreamingConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: