Interface CreateDatasetRequest.Builder

  • Method Details

    • clientToken

      CreateDatasetRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't 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 you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • datasetName

      CreateDatasetRequest.Builder datasetName(String datasetName)

      Human-readable name for the dataset. Must be unique within the account. Immutable after creation.

      Parameters:
      datasetName - Human-readable name for the dataset. Must be unique within the account. Immutable after creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      CreateDatasetRequest.Builder description(String description)

      A description of the dataset.

      Parameters:
      description - A description of the dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      Source of initial examples. Provide either inline examples or an S3 URI pointing to a JSONL file.

      Parameters:
      source - Source of initial examples. Provide either inline examples or an S3 URI pointing to a JSONL file.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      Source of initial examples. Provide either inline examples or an S3 URI pointing to a JSONL file.

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

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

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

      CreateDatasetRequest.Builder schemaType(String schemaType)

      Versioned schema type governing the structure of examples. Immutable after creation.

      Parameters:
      schemaType - Versioned schema type governing the structure of examples. Immutable after creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • schemaType

      Versioned schema type governing the structure of examples. Immutable after creation.

      Parameters:
      schemaType - Versioned schema type governing the structure of examples. Immutable after creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • kmsKeyArn

      CreateDatasetRequest.Builder kmsKeyArn(String kmsKeyArn)

      Optional KMS key ARN for server-side encryption on service Amazon S3 writes.

      Parameters:
      kmsKeyArn - Optional KMS key ARN for server-side encryption on service Amazon S3 writes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A map of tag keys and values to assign to the dataset.

      Parameters:
      tags - A map of tag keys and values to assign to the dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

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