Interface DataSource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DataSource.Builder,DataSource>,SdkBuilder<DataSource.Builder,DataSource>,SdkPojo
- Enclosing class:
- DataSource
public static interface DataSource.Builder extends SdkPojo, CopyableBuilder<DataSource.Builder,DataSource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DataSource.BuildercomputeStatistics(Boolean computeStatistics)The parameter istrueif statistics need to be generated from the observation data.DataSource.BuildercomputeTime(Long computeTime)Sets the value of the ComputeTime property for this object.DataSource.BuildercreatedAt(Instant createdAt)The time that theDataSourcewas created.DataSource.BuildercreatedByIamUser(String createdByIamUser)The AWS user account from which theDataSourcewas created.DataSource.BuilderdataLocationS3(String dataLocationS3)The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by aDataSource.DataSource.BuilderdataRearrangement(String dataRearrangement)A JSON string that represents the splitting and rearrangement requirement used when thisDataSourcewas created.DataSource.BuilderdataSizeInBytes(Long dataSizeInBytes)The total number of observations contained in the data files that theDataSourcereferences.DataSource.BuilderdataSourceId(String dataSourceId)The ID that is assigned to theDataSourceduring creation.DataSource.BuilderfinishedAt(Instant finishedAt)Sets the value of the FinishedAt property for this object.DataSource.BuilderlastUpdatedAt(Instant lastUpdatedAt)The time of the most recent edit to theBatchPrediction.DataSource.Buildermessage(String message)A description of the most recent details about creating theDataSource.DataSource.Buildername(String name)A user-supplied name or description of theDataSource.DataSource.BuildernumberOfFiles(Long numberOfFiles)The number of data files referenced by theDataSource.default DataSource.BuilderrdsMetadata(Consumer<RDSMetadata.Builder> rdsMetadata)Sets the value of the RDSMetadata property for this object.DataSource.BuilderrdsMetadata(RDSMetadata rdsMetadata)Sets the value of the RDSMetadata property for this object.default DataSource.BuilderredshiftMetadata(Consumer<RedshiftMetadata.Builder> redshiftMetadata)Sets the value of the RedshiftMetadata property for this object.DataSource.BuilderredshiftMetadata(RedshiftMetadata redshiftMetadata)Sets the value of the RedshiftMetadata property for this object.DataSource.BuilderroleARN(String roleARN)Sets the value of the RoleARN property for this object.DataSource.BuilderstartedAt(Instant startedAt)Sets the value of the StartedAt property for this object.DataSource.Builderstatus(String status)The current status of theDataSource.DataSource.Builderstatus(EntityStatus status)The current status of theDataSource.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
dataSourceId
DataSource.Builder dataSourceId(String dataSourceId)
The ID that is assigned to the
DataSourceduring creation.- Parameters:
dataSourceId- The ID that is assigned to theDataSourceduring creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataLocationS3
DataSource.Builder dataLocationS3(String dataLocationS3)
The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a
DataSource.- Parameters:
dataLocationS3- The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by aDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataRearrangement
DataSource.Builder dataRearrangement(String dataRearrangement)
A JSON string that represents the splitting and rearrangement requirement used when this
DataSourcewas created.- Parameters:
dataRearrangement- A JSON string that represents the splitting and rearrangement requirement used when thisDataSourcewas created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdByIamUser
DataSource.Builder createdByIamUser(String createdByIamUser)
The AWS user account from which the
DataSourcewas 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 theDataSourcewas 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
DataSource.Builder createdAt(Instant createdAt)
The time that the
DataSourcewas created. The time is expressed in epoch time.- Parameters:
createdAt- The time that theDataSourcewas created. The time is expressed in epoch time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedAt
DataSource.Builder lastUpdatedAt(Instant lastUpdatedAt)
The time of the most recent edit to the
BatchPrediction. The time is expressed in epoch time.- Parameters:
lastUpdatedAt- The time of the most recent edit to theBatchPrediction. The time is expressed in epoch time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSizeInBytes
DataSource.Builder dataSizeInBytes(Long dataSizeInBytes)
The total number of observations contained in the data files that the
DataSourcereferences.- Parameters:
dataSizeInBytes- The total number of observations contained in the data files that theDataSourcereferences.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberOfFiles
DataSource.Builder numberOfFiles(Long numberOfFiles)
The number of data files referenced by the
DataSource.- Parameters:
numberOfFiles- The number of data files referenced by theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
DataSource.Builder name(String name)
A user-supplied name or description of the
DataSource.- Parameters:
name- A user-supplied name or description of theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
DataSource.Builder status(String status)
The current status of the
DataSource. This element can have one of the following values:-
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create a
DataSource. -
INPROGRESS - The creation process is underway.
-
FAILED - The request to create a
DataSourcedid not run to completion. It is not usable. -
COMPLETED - The creation process completed successfully.
-
DELETED - The
DataSourceis marked as deleted. It is not usable.
- Parameters:
status- The current status of theDataSource. This element can have one of the following values:-
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create a
DataSource. -
INPROGRESS - The creation process is underway.
-
FAILED - The request to create a
DataSourcedid not run to completion. It is not usable. -
COMPLETED - The creation process completed successfully.
-
DELETED - The
DataSourceis marked as deleted. It is not usable.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EntityStatus,EntityStatus
-
-
status
DataSource.Builder status(EntityStatus status)
The current status of the
DataSource. This element can have one of the following values:-
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create a
DataSource. -
INPROGRESS - The creation process is underway.
-
FAILED - The request to create a
DataSourcedid not run to completion. It is not usable. -
COMPLETED - The creation process completed successfully.
-
DELETED - The
DataSourceis marked as deleted. It is not usable.
- Parameters:
status- The current status of theDataSource. This element can have one of the following values:-
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create a
DataSource. -
INPROGRESS - The creation process is underway.
-
FAILED - The request to create a
DataSourcedid not run to completion. It is not usable. -
COMPLETED - The creation process completed successfully.
-
DELETED - The
DataSourceis marked as deleted. It is not usable.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EntityStatus,EntityStatus
-
-
message
DataSource.Builder message(String message)
A description of the most recent details about creating the
DataSource.- Parameters:
message- A description of the most recent details about creating theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redshiftMetadata
DataSource.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 DataSource.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 theRedshiftMetadata.Builderavoiding the need to create one manually viaRedshiftMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toredshiftMetadata(RedshiftMetadata).- Parameters:
redshiftMetadata- a consumer that will call methods onRedshiftMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
redshiftMetadata(RedshiftMetadata)
-
rdsMetadata
DataSource.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 DataSource.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 theRDSMetadata.Builderavoiding the need to create one manually viaRDSMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tordsMetadata(RDSMetadata).- Parameters:
rdsMetadata- a consumer that will call methods onRDSMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
rdsMetadata(RDSMetadata)
-
roleARN
DataSource.Builder roleARN(String 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
DataSource.Builder computeStatistics(Boolean computeStatistics)
The parameter is
trueif statistics need to be generated from the observation data.- Parameters:
computeStatistics- The parameter istrueif 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
DataSource.Builder computeTime(Long computeTime)
Sets the value of the ComputeTime property for this object.- Parameters:
computeTime- The new value for the ComputeTime property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
finishedAt
DataSource.Builder finishedAt(Instant finishedAt)
Sets the value of the FinishedAt property for this object.- Parameters:
finishedAt- The new value for the FinishedAt property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedAt
DataSource.Builder startedAt(Instant startedAt)
Sets the value of the StartedAt property for this object.- Parameters:
startedAt- The new value for the StartedAt property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-