Interface CreateSpaceRequest.Builder

  • Method Details

    • name

      A name that identifies the space. Must be 3-64 characters: lowercase letters, numbers, and hyphens. It must begin and end with a letter or number and cannot contain consecutive hyphens.

      Parameters:
      name - A name that identifies the space. Must be 3-64 characters: lowercase letters, numbers, and hyphens. It must begin and end with a letter or number and cannot contain consecutive hyphens.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • domainId

      CreateSpaceRequest.Builder domainId(String domainId)

      The ID of the domain to create the space in.

      Parameters:
      domainId - The ID of the domain to create the space in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataAccessRoleArn

      CreateSpaceRequest.Builder dataAccessRoleArn(String dataAccessRoleArn)

      The ARN of the IAM role used for data access. The role must be in the caller's account.

      Parameters:
      dataAccessRoleArn - The ARN of the IAM role used for data access. The role must be in the caller's account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentCoreEvaluationRoleArn

      CreateSpaceRequest.Builder agentCoreEvaluationRoleArn(String agentCoreEvaluationRoleArn)

      The ARN of the IAM role used by AgentCore online evaluation. Must be in the caller's account. Omit if the space does not use AgentCore online evaluation.

      Parameters:
      agentCoreEvaluationRoleArn - The ARN of the IAM role used by AgentCore online evaluation. Must be in the caller's account. Omit if the space does not use AgentCore online evaluation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encryptionConfiguration

      CreateSpaceRequest.Builder encryptionConfiguration(EncryptionConfiguration encryptionConfiguration)

      How to encrypt the space's data at rest. Omit for service owned encryption, which is equivalent to passing encryptionStrategy AWS_OWNED.

      Parameters:
      encryptionConfiguration - How to encrypt the space's data at rest. Omit for service owned encryption, which is equivalent to passing encryptionStrategy AWS_OWNED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encryptionConfiguration

      default CreateSpaceRequest.Builder encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration)

      How to encrypt the space's data at rest. Omit for service owned encryption, which is equivalent to passing encryptionStrategy AWS_OWNED.

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

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

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

      The tags to associate with the space.

      Parameters:
      tags - The tags to associate with the space.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      CreateSpaceRequest.Builder clientToken(String clientToken)

      Idempotency token for safe retries. Repeated requests with the same token return the original result instead of creating a duplicate.

      Parameters:
      clientToken - Idempotency token for safe retries. Repeated requests with the same token return the original result instead of creating a duplicate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateSpaceRequest.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.