Interface CreateAgenticPersonaConfigurationRequest.Builder

  • Method Details

    • clientToken

      A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another persona configuration.

      If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the persona configuration created with this token, the operation returns ResourceNotFoundException.

      Parameters:
      clientToken - A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another persona configuration.

      If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the persona configuration created with this token, the operation returns ResourceNotFoundException.

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

      The name of the persona configuration.

      Parameters:
      name - The name of the persona configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      The description of the persona configuration.

      Parameters:
      description - The description of the persona configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelIds

      The identifiers of the models that WorkSpaces created with this configuration can use. Specify 1–25 models. The models must be on your account's model list.

      Parameters:
      modelIds - The identifiers of the models that WorkSpaces created with this configuration can use. Specify 1–25 models. The models must be on your account's model list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelIds

      The identifiers of the models that WorkSpaces created with this configuration can use. Specify 1–25 models. The models must be on your account's model list.

      Parameters:
      modelIds - The identifiers of the models that WorkSpaces created with this configuration can use. Specify 1–25 models. The models must be on your account's model list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agenticConnectorIds

      CreateAgenticPersonaConfigurationRequest.Builder agenticConnectorIds(Collection<String> agenticConnectorIds)

      The identifiers of the connectors to add to WorkSpaces created with this configuration. The connectors must be activated for your account.

      Parameters:
      agenticConnectorIds - The identifiers of the connectors to add to WorkSpaces created with this configuration. The connectors must be activated for your account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agenticConnectorIds

      CreateAgenticPersonaConfigurationRequest.Builder agenticConnectorIds(String... agenticConnectorIds)

      The identifiers of the connectors to add to WorkSpaces created with this configuration. The connectors must be activated for your account.

      Parameters:
      agenticConnectorIds - The identifiers of the connectors to add to WorkSpaces created with this configuration. The connectors must be activated for your account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agenticContextIds

      The identifiers of the contexts to add to WorkSpaces created with this configuration.

      Parameters:
      agenticContextIds - The identifiers of the contexts to add to WorkSpaces created with this configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agenticContextIds

      CreateAgenticPersonaConfigurationRequest.Builder agenticContextIds(String... agenticContextIds)

      The identifiers of the contexts to add to WorkSpaces created with this configuration.

      Parameters:
      agenticContextIds - The identifiers of the contexts to add to WorkSpaces created with this configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workspaceEnforcedPolicyId

      CreateAgenticPersonaConfigurationRequest.Builder workspaceEnforcedPolicyId(String workspaceEnforcedPolicyId)

      The identifier of the WorkSpace-enforced policy to apply to WorkSpaces created with this configuration.

      Parameters:
      workspaceEnforcedPolicyId - The identifier of the WorkSpace-enforced policy to apply to WorkSpaces created with this configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentEnforcedPolicyId

      CreateAgenticPersonaConfigurationRequest.Builder agentEnforcedPolicyId(String agentEnforcedPolicyId)

      The identifier of the agent-enforced policy to apply to WorkSpaces created with this configuration.

      Parameters:
      agentEnforcedPolicyId - The identifier of the agent-enforced policy to apply to WorkSpaces created with this configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to add to the persona configuration.

      Parameters:
      tags - The tags to add to the persona configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to add to the persona configuration.

      Parameters:
      tags - The tags to add to the persona configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to add to the persona configuration.

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

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

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.