Interface GetDataSourceResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<GetDataSourceResponse.Builder,GetDataSourceResponse>, MachineLearningResponse.Builder, SdkBuilder<GetDataSourceResponse.Builder,GetDataSourceResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
GetDataSourceResponse

public static interface GetDataSourceResponse.Builder extends MachineLearningResponse.Builder, SdkPojo, CopyableBuilder<GetDataSourceResponse.Builder,GetDataSourceResponse>
  • Method Details

    • dataSourceId

      GetDataSourceResponse.Builder dataSourceId(String dataSourceId)

      The ID assigned to the DataSource at creation. This value should be identical to the value of the DataSourceId in the request.

      Parameters:
      dataSourceId - The ID assigned to the DataSource at creation. This value should be identical to the value of the DataSourceId in the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataLocationS3

      GetDataSourceResponse.Builder dataLocationS3(String dataLocationS3)

      The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).

      Parameters:
      dataLocationS3 - The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataRearrangement

      GetDataSourceResponse.Builder dataRearrangement(String dataRearrangement)

      A JSON string that represents the splitting and rearrangement requirement used when this DataSource was created.

      Parameters:
      dataRearrangement - A JSON string that represents the splitting and rearrangement requirement used when this DataSource was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdByIamUser

      GetDataSourceResponse.Builder createdByIamUser(String createdByIamUser)

      The AWS user account from which the DataSource was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.

      Parameters:
      createdByIamUser - The AWS user account from which the DataSource was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      GetDataSourceResponse.Builder createdAt(Instant createdAt)

      The time that the DataSource was created. The time is expressed in epoch time.

      Parameters:
      createdAt - The time that the DataSource was created. The time is expressed in epoch time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedAt

      GetDataSourceResponse.Builder lastUpdatedAt(Instant lastUpdatedAt)

      The time of the most recent edit to the DataSource. The time is expressed in epoch time.

      Parameters:
      lastUpdatedAt - The time of the most recent edit to the DataSource. The time is expressed in epoch time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataSizeInBytes

      GetDataSourceResponse.Builder dataSizeInBytes(Long dataSizeInBytes)

      The total size of observations in the data files.

      Parameters:
      dataSizeInBytes - The total size of observations in the data files.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • numberOfFiles

      GetDataSourceResponse.Builder numberOfFiles(Long numberOfFiles)

      The number of data files referenced by the DataSource.

      Parameters:
      numberOfFiles - The number of data files referenced by the DataSource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      A user-supplied name or description of the DataSource.

      Parameters:
      name - A user-supplied name or description of the DataSource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the DataSource. This element can have one of the following values:

      • PENDING - Amazon ML submitted a request to create a DataSource.

      • INPROGRESS - The creation process is underway.

      • FAILED - The request to create a DataSource did not run to completion. It is not usable.

      • COMPLETED - The creation process completed successfully.

      • DELETED - The DataSource is marked as deleted. It is not usable.

      Parameters:
      status - The current status of the DataSource. This element can have one of the following values:

      • PENDING - Amazon ML submitted a request to create a DataSource.

      • INPROGRESS - The creation process is underway.

      • FAILED - The request to create a DataSource did not run to completion. It is not usable.

      • COMPLETED - The creation process completed successfully.

      • DELETED - The DataSource is marked as deleted. It is not usable.

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

      The current status of the DataSource. This element can have one of the following values:

      • PENDING - Amazon ML submitted a request to create a DataSource.

      • INPROGRESS - The creation process is underway.

      • FAILED - The request to create a DataSource did not run to completion. It is not usable.

      • COMPLETED - The creation process completed successfully.

      • DELETED - The DataSource is marked as deleted. It is not usable.

      Parameters:
      status - The current status of the DataSource. This element can have one of the following values:

      • PENDING - Amazon ML submitted a request to create a DataSource.

      • INPROGRESS - The creation process is underway.

      • FAILED - The request to create a DataSource did not run to completion. It is not usable.

      • COMPLETED - The creation process completed successfully.

      • DELETED - The DataSource is marked as deleted. It is not usable.

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

      A link to the file containing logs of CreateDataSourceFrom* operations.

      Parameters:
      logUri - A link to the file containing logs of CreateDataSourceFrom* operations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • message

      The user-supplied description of the most recent details about creating the DataSource.

      Parameters:
      message - The user-supplied description of the most recent details about creating the DataSource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • redshiftMetadata

      GetDataSourceResponse.Builder redshiftMetadata(RedshiftMetadata redshiftMetadata)
      Sets the value of the RedshiftMetadata property for this object.
      Parameters:
      redshiftMetadata - The new value for the RedshiftMetadata property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • redshiftMetadata

      default GetDataSourceResponse.Builder redshiftMetadata(Consumer<RedshiftMetadata.Builder> redshiftMetadata)
      Sets the value of the RedshiftMetadata property for this object. This is a convenience method that creates an instance of the RedshiftMetadata.Builder avoiding the need to create one manually via RedshiftMetadata.builder().

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

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

      GetDataSourceResponse.Builder rdsMetadata(RDSMetadata rdsMetadata)
      Sets the value of the RDSMetadata property for this object.
      Parameters:
      rdsMetadata - The new value for the RDSMetadata property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rdsMetadata

      default GetDataSourceResponse.Builder rdsMetadata(Consumer<RDSMetadata.Builder> rdsMetadata)
      Sets the value of the RDSMetadata property for this object. This is a convenience method that creates an instance of the RDSMetadata.Builder avoiding the need to create one manually via RDSMetadata.builder().

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

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

      Sets the value of the RoleARN property for this object.
      Parameters:
      roleARN - The new value for the RoleARN property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • computeStatistics

      GetDataSourceResponse.Builder computeStatistics(Boolean computeStatistics)

      The parameter is true if statistics need to be generated from the observation data.

      Parameters:
      computeStatistics - The parameter is true if statistics need to be generated from the observation data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • computeTime

      GetDataSourceResponse.Builder computeTime(Long computeTime)

      The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the DataSource, normalized and scaled on computation resources. ComputeTime is only available if the DataSource is in the COMPLETED state and the ComputeStatistics is set to true.

      Parameters:
      computeTime - The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the DataSource, normalized and scaled on computation resources. ComputeTime is only available if the DataSource is in the COMPLETED state and the ComputeStatistics is set to true.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • finishedAt

      GetDataSourceResponse.Builder finishedAt(Instant finishedAt)

      The epoch time when Amazon Machine Learning marked the DataSource as COMPLETED or FAILED. FinishedAt is only available when the DataSource is in the COMPLETED or FAILED state.

      Parameters:
      finishedAt - The epoch time when Amazon Machine Learning marked the DataSource as COMPLETED or FAILED. FinishedAt is only available when the DataSource is in the COMPLETED or FAILED state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedAt

      GetDataSourceResponse.Builder startedAt(Instant startedAt)

      The epoch time when Amazon Machine Learning marked the DataSource as INPROGRESS. StartedAt isn't available if the DataSource is in the PENDING state.

      Parameters:
      startedAt - The epoch time when Amazon Machine Learning marked the DataSource as INPROGRESS. StartedAt isn't available if the DataSource is in the PENDING state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataSourceSchema

      GetDataSourceResponse.Builder dataSourceSchema(String dataSourceSchema)

      The schema used by all of the data files of this DataSource.

      Note: This parameter is provided as part of the verbose format.

      Parameters:
      dataSourceSchema - The schema used by all of the data files of this DataSource.

      Note: This parameter is provided as part of the verbose format.

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