Interface GetDataSourceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDataSourceResponse.Builder,,GetDataSourceResponse> MachineLearningResponse.Builder,SdkBuilder<GetDataSourceResponse.Builder,,GetDataSourceResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetDataSourceResponse
-
Method Summary
Modifier and TypeMethodDescriptioncomputeStatistics(Boolean computeStatistics) The parameter istrueif statistics need to be generated from the observation data.computeTime(Long computeTime) The approximate CPU time in milliseconds that Amazon Machine Learning spent processing theDataSource, normalized and scaled on computation resources.The time that theDataSourcewas created.createdByIamUser(String createdByIamUser) The AWS user account from which theDataSourcewas created.dataLocationS3(String dataLocationS3) The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).dataRearrangement(String dataRearrangement) A JSON string that represents the splitting and rearrangement requirement used when thisDataSourcewas created.dataSizeInBytes(Long dataSizeInBytes) The total size of observations in the data files.dataSourceId(String dataSourceId) The ID assigned to theDataSourceat creation.dataSourceSchema(String dataSourceSchema) The schema used by all of the data files of thisDataSource.finishedAt(Instant finishedAt) The epoch time when Amazon Machine Learning marked theDataSourceasCOMPLETEDorFAILED.lastUpdatedAt(Instant lastUpdatedAt) The time of the most recent edit to theDataSource.A link to the file containing logs ofCreateDataSourceFrom*operations.The user-supplied description of the most recent details about creating theDataSource.A user-supplied name or description of theDataSource.numberOfFiles(Long numberOfFiles) The number of data files referenced by theDataSource.default GetDataSourceResponse.BuilderrdsMetadata(Consumer<RDSMetadata.Builder> rdsMetadata) Sets the value of the RDSMetadata property for this object.rdsMetadata(RDSMetadata rdsMetadata) Sets the value of the RDSMetadata property for this object.default GetDataSourceResponse.BuilderredshiftMetadata(Consumer<RedshiftMetadata.Builder> redshiftMetadata) Sets the value of the RedshiftMetadata property for this object.redshiftMetadata(RedshiftMetadata redshiftMetadata) Sets the value of the RedshiftMetadata property for this object.Sets the value of the RoleARN property for this object.The epoch time when Amazon Machine Learning marked theDataSourceasINPROGRESS.The current status of theDataSource.status(EntityStatus status) The current status of theDataSource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.machinelearning.model.MachineLearningResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
dataSourceId
The ID assigned to the
DataSourceat creation. This value should be identical to the value of theDataSourceIdin the request.- Parameters:
dataSourceId- The ID assigned to theDataSourceat creation. This value should be identical to the value of theDataSourceIdin the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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
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 theDataSource. The time is expressed in epoch time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
The current status of the
DataSource. This element can have one of the following values:-
PENDING- Amazon ML submitted a request to create aDataSource. -
INPROGRESS- The creation process is underway. -
FAILED- The request to create aDataSourcedid not run to completion. It is not usable. -
COMPLETED- The creation process completed successfully. -
DELETED- TheDataSourceis 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 ML submitted a request to create aDataSource. -
INPROGRESS- The creation process is underway. -
FAILED- The request to create aDataSourcedid not run to completion. It is not usable. -
COMPLETED- The creation process completed successfully. -
DELETED- TheDataSourceis 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 aDataSource. -
INPROGRESS- The creation process is underway. -
FAILED- The request to create aDataSourcedid not run to completion. It is not usable. -
COMPLETED- The creation process completed successfully. -
DELETED- TheDataSourceis 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 ML submitted a request to create aDataSource. -
INPROGRESS- The creation process is underway. -
FAILED- The request to create aDataSourcedid not run to completion. It is not usable. -
COMPLETED- The creation process completed successfully. -
DELETED- TheDataSourceis 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 ofCreateDataSourceFrom*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 theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 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:
-
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
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:
-
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
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
The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the
DataSource, normalized and scaled on computation resources.ComputeTimeis only available if theDataSourceis in theCOMPLETEDstate and theComputeStatisticsis set to true.- Parameters:
computeTime- The approximate CPU time in milliseconds that Amazon Machine Learning spent processing theDataSource, normalized and scaled on computation resources.ComputeTimeis only available if theDataSourceis in theCOMPLETEDstate and theComputeStatisticsis set to true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
finishedAt
The epoch time when Amazon Machine Learning marked the
DataSourceasCOMPLETEDorFAILED.FinishedAtis only available when theDataSourceis in theCOMPLETEDorFAILEDstate.- Parameters:
finishedAt- The epoch time when Amazon Machine Learning marked theDataSourceasCOMPLETEDorFAILED.FinishedAtis only available when theDataSourceis in theCOMPLETEDorFAILEDstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedAt
The epoch time when Amazon Machine Learning marked the
DataSourceasINPROGRESS.StartedAtisn't available if theDataSourceis in thePENDINGstate.- Parameters:
startedAt- The epoch time when Amazon Machine Learning marked theDataSourceasINPROGRESS.StartedAtisn't available if theDataSourceis in thePENDINGstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 thisDataSource.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.
-