Interface SendMessageRequest.Builder

  • Method Details

    • agentSpaceId

      SendMessageRequest.Builder agentSpaceId(String agentSpaceId)

      The agent space identifier

      Parameters:
      agentSpaceId - The agent space identifier
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionId

      SendMessageRequest.Builder executionId(String executionId)

      The execution identifier for the chat session

      Parameters:
      executionId - The execution identifier for the chat session
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      The user message content

      Parameters:
      content - The user message content
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • context

      Optional context for the message

      Parameters:
      context - Optional context for the message
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • context

      Optional context for the message

      This is a convenience method that creates an instance of the SendMessageContext.Builder avoiding the need to create one manually via SendMessageContext.builder().

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

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

      Deprecated.
      userId is managed by the service and should not be provided by the caller

      User identifier. This field is deprecated and will be ignored — the service resolves user identity from the authenticated session.

      Parameters:
      userId - User identifier. This field is deprecated and will be ignored — the service resolves user identity from the authenticated session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetIds

      Optional list of asset identifiers to attach to the message

      Parameters:
      assetIds - Optional list of asset identifiers to attach to the message
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetIds

      SendMessageRequest.Builder assetIds(String... assetIds)

      Optional list of asset identifiers to attach to the message

      Parameters:
      assetIds - Optional list of asset identifiers to attach to the message
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelTier

      SendMessageRequest.Builder modelTier(String modelTier)

      Optional model tier selection. Valid values: smart, balanced, fast. Absent or unrecognized values default to balanced.

      Parameters:
      modelTier - Optional model tier selection. Valid values: smart, balanced, fast. Absent or unrecognized values default to balanced.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      SendMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.