Interface GetDatasetResponse.Builder

  • Method Details

    • datasetArn

      GetDatasetResponse.Builder datasetArn(String datasetArn)

      The Amazon Resource Name (ARN) of the dataset.

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

      GetDatasetResponse.Builder datasetId(String datasetId)

      The unique identifier of the dataset.

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

      GetDatasetResponse.Builder datasetVersion(String datasetVersion)

      The resolved version: "DRAFT" (default) or the requested version number.

      Parameters:
      datasetVersion - The resolved version: "DRAFT" (default) or the requested version number.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • datasetName

      GetDatasetResponse.Builder datasetName(String datasetName)

      The name of the dataset.

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

      GetDatasetResponse.Builder description(String description)

      The description of the dataset.

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

      The current status of the dataset.

      Parameters:
      status - The current status of the dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the dataset.

      Parameters:
      status - The current status of the dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • draftStatus

      GetDatasetResponse.Builder draftStatus(String draftStatus)

      Publish synchronization state. Only authoritative when status is ACTIVE. MODIFIED indicates DRAFT has unpublished changes. UNMODIFIED indicates DRAFT matches the latest published version.

      Parameters:
      draftStatus - Publish synchronization state. Only authoritative when status is ACTIVE. MODIFIED indicates DRAFT has unpublished changes. UNMODIFIED indicates DRAFT matches the latest published version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • draftStatus

      GetDatasetResponse.Builder draftStatus(DraftStatus draftStatus)

      Publish synchronization state. Only authoritative when status is ACTIVE. MODIFIED indicates DRAFT has unpublished changes. UNMODIFIED indicates DRAFT matches the latest published version.

      Parameters:
      draftStatus - Publish synchronization state. Only authoritative when status is ACTIVE. MODIFIED indicates DRAFT has unpublished changes. UNMODIFIED indicates DRAFT matches the latest published version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • failureReason

      GetDatasetResponse.Builder failureReason(String failureReason)

      Populated when status is CREATE_FAILED, UPDATE_FAILED, or DELETE_FAILED. Describes the reason for the failure.

      Parameters:
      failureReason - Populated when status is CREATE_FAILED, UPDATE_FAILED, or DELETE_FAILED. Describes the reason for the failure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • schemaType

      GetDatasetResponse.Builder schemaType(String schemaType)

      The schema type declared at create time. Immutable after creation.

      Parameters:
      schemaType - The schema type declared at create time. Immutable after creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • schemaType

      The schema type declared at create time. Immutable after creation.

      Parameters:
      schemaType - The schema type declared at create time. Immutable after creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • kmsKeyArn

      GetDatasetResponse.Builder kmsKeyArn(String kmsKeyArn)

      KMS key ARN used for server-side encryption on service Amazon S3 writes, if configured.

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

      GetDatasetResponse.Builder exampleCount(Long exampleCount)

      The number of examples in the DRAFT.

      Parameters:
      exampleCount - The number of examples in the DRAFT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exampleCountByField

      GetDatasetResponse.Builder exampleCountByField(ExampleCountByField exampleCountByField)

      The number of examples that have each field, for the resolved version. Absent when the counts are unknown.

      Parameters:
      exampleCountByField - The number of examples that have each field, for the resolved version. Absent when the counts are unknown.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exampleCountByField

      default GetDatasetResponse.Builder exampleCountByField(Consumer<ExampleCountByField.Builder> exampleCountByField)

      The number of examples that have each field, for the resolved version. Absent when the counts are unknown.

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

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

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

      GetDatasetResponse.Builder downloadUrl(String downloadUrl)

      Presigned Amazon S3 URL to download the consolidated dataset file for the resolved version. Expires after 5 minutes. Omitted if the file does not yet exist.

      Parameters:
      downloadUrl - Presigned Amazon S3 URL to download the consolidated dataset file for the resolved version. Expires after 5 minutes. Omitted if the file does not yet exist.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • downloadUrlExpiresAt

      GetDatasetResponse.Builder downloadUrlExpiresAt(Instant downloadUrlExpiresAt)

      Expiry timestamp for the download URL.

      Parameters:
      downloadUrlExpiresAt - Expiry timestamp for the download URL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      GetDatasetResponse.Builder createdAt(Instant createdAt)

      The timestamp when the dataset was created.

      Parameters:
      createdAt - The timestamp when the dataset was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      GetDatasetResponse.Builder updatedAt(Instant updatedAt)

      The timestamp when the dataset was last updated.

      Parameters:
      updatedAt - The timestamp when the dataset was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags associated with the dataset.

      Parameters:
      tags - The tags associated with the dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.