Interface AgentAlias.Builder

  • Method Details

    • agentAliasArn

      AgentAlias.Builder agentAliasArn(String agentAliasArn)

      The Amazon Resource Name (ARN) of the alias of the agent.

      Parameters:
      agentAliasArn - The Amazon Resource Name (ARN) of the alias of the agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentAliasHistoryEvents

      AgentAlias.Builder agentAliasHistoryEvents(Collection<AgentAliasHistoryEvent> agentAliasHistoryEvents)

      Contains details about the history of the alias.

      Parameters:
      agentAliasHistoryEvents - Contains details about the history of the alias.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentAliasHistoryEvents

      AgentAlias.Builder agentAliasHistoryEvents(AgentAliasHistoryEvent... agentAliasHistoryEvents)

      Contains details about the history of the alias.

      Parameters:
      agentAliasHistoryEvents - Contains details about the history of the alias.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentAliasHistoryEvents

      AgentAlias.Builder agentAliasHistoryEvents(Consumer<AgentAliasHistoryEvent.Builder>... agentAliasHistoryEvents)

      Contains details about the history of the alias.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to agentAliasHistoryEvents(List<AgentAliasHistoryEvent>).

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

      AgentAlias.Builder agentAliasId(String agentAliasId)

      The unique identifier of the alias of the agent.

      Parameters:
      agentAliasId - The unique identifier of the alias of the agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentAliasName

      AgentAlias.Builder agentAliasName(String agentAliasName)

      The name of the alias of the agent.

      Parameters:
      agentAliasName - The name of the alias of the agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentAliasStatus

      AgentAlias.Builder agentAliasStatus(String agentAliasStatus)

      The status of the alias of the agent and whether it is ready for use. The following statuses are possible:

      • CREATING – The agent alias is being created.

      • PREPARED – The agent alias is finished being created or updated and is ready to be invoked.

      • FAILED – The agent alias API operation failed.

      • UPDATING – The agent alias is being updated.

      • DELETING – The agent alias is being deleted.

      • DISSOCIATED - The agent alias has no version associated with it.

      Parameters:
      agentAliasStatus - The status of the alias of the agent and whether it is ready for use. The following statuses are possible:

      • CREATING – The agent alias is being created.

      • PREPARED – The agent alias is finished being created or updated and is ready to be invoked.

      • FAILED – The agent alias API operation failed.

      • UPDATING – The agent alias is being updated.

      • DELETING – The agent alias is being deleted.

      • DISSOCIATED - The agent alias has no version associated with it.

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

      AgentAlias.Builder agentAliasStatus(AgentAliasStatus agentAliasStatus)

      The status of the alias of the agent and whether it is ready for use. The following statuses are possible:

      • CREATING – The agent alias is being created.

      • PREPARED – The agent alias is finished being created or updated and is ready to be invoked.

      • FAILED – The agent alias API operation failed.

      • UPDATING – The agent alias is being updated.

      • DELETING – The agent alias is being deleted.

      • DISSOCIATED - The agent alias has no version associated with it.

      Parameters:
      agentAliasStatus - The status of the alias of the agent and whether it is ready for use. The following statuses are possible:

      • CREATING – The agent alias is being created.

      • PREPARED – The agent alias is finished being created or updated and is ready to be invoked.

      • FAILED – The agent alias API operation failed.

      • UPDATING – The agent alias is being updated.

      • DELETING – The agent alias is being deleted.

      • DISSOCIATED - The agent alias has no version associated with it.

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

      AgentAlias.Builder agentId(String agentId)

      The unique identifier of the agent.

      Parameters:
      agentId - The unique identifier of the agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aliasInvocationState

      AgentAlias.Builder aliasInvocationState(String aliasInvocationState)

      The invocation state for the agent alias. If the agent alias is running, the value is ACCEPT_INVOCATIONS. If the agent alias is paused, the value is REJECT_INVOCATIONS. Use the UpdateAgentAlias operation to change the invocation state.

      Parameters:
      aliasInvocationState - The invocation state for the agent alias. If the agent alias is running, the value is ACCEPT_INVOCATIONS. If the agent alias is paused, the value is REJECT_INVOCATIONS. Use the UpdateAgentAlias operation to change the invocation state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • aliasInvocationState

      AgentAlias.Builder aliasInvocationState(AliasInvocationState aliasInvocationState)

      The invocation state for the agent alias. If the agent alias is running, the value is ACCEPT_INVOCATIONS. If the agent alias is paused, the value is REJECT_INVOCATIONS. Use the UpdateAgentAlias operation to change the invocation state.

      Parameters:
      aliasInvocationState - The invocation state for the agent alias. If the agent alias is running, the value is ACCEPT_INVOCATIONS. If the agent alias is paused, the value is REJECT_INVOCATIONS. Use the UpdateAgentAlias operation to change the invocation state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientToken

      AgentAlias.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.

      Parameters:
      clientToken - A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      AgentAlias.Builder createdAt(Instant createdAt)

      The time at which the alias of the agent was created.

      Parameters:
      createdAt - The time at which the alias of the agent was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      AgentAlias.Builder description(String description)

      The description of the alias of the agent.

      Parameters:
      description - The description of the alias of the agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureReasons

      AgentAlias.Builder failureReasons(Collection<String> failureReasons)

      Information on the failure of Provisioned Throughput assigned to an agent alias.

      Parameters:
      failureReasons - Information on the failure of Provisioned Throughput assigned to an agent alias.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureReasons

      AgentAlias.Builder failureReasons(String... failureReasons)

      Information on the failure of Provisioned Throughput assigned to an agent alias.

      Parameters:
      failureReasons - Information on the failure of Provisioned Throughput assigned to an agent alias.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • routingConfiguration

      AgentAlias.Builder routingConfiguration(Collection<AgentAliasRoutingConfigurationListItem> routingConfiguration)

      Contains details about the routing configuration of the alias.

      Parameters:
      routingConfiguration - Contains details about the routing configuration of the alias.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • routingConfiguration

      AgentAlias.Builder routingConfiguration(AgentAliasRoutingConfigurationListItem... routingConfiguration)

      Contains details about the routing configuration of the alias.

      Parameters:
      routingConfiguration - Contains details about the routing configuration of the alias.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • routingConfiguration

      AgentAlias.Builder routingConfiguration(Consumer<AgentAliasRoutingConfigurationListItem.Builder>... routingConfiguration)

      Contains details about the routing configuration of the alias.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to routingConfiguration(List<AgentAliasRoutingConfigurationListItem>).

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

      AgentAlias.Builder updatedAt(Instant updatedAt)

      The time at which the alias was last updated.

      Parameters:
      updatedAt - The time at which the alias was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.