Class DataSource
- All Implemented Interfaces:
Serializable,Cloneable
Represents the output of the GetDataSource operation.
The content consists of the detailed metadata and data file information and
the current status of the DataSource.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe parameter istrueif statistics need to be generated from the observation data.The time that theDataSourcewas created.The AWS user account from which theDataSourcewas created.The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by aDataSource.A JSON string that represents the splitting requirement of aDatasource.The total number of observations contained in the data files that theDataSourcereferences.The ID that is assigned to theDataSourceduring creation.The time of the most recent edit to theBatchPrediction.A description of the most recent details about creating theDataSource.getName()A user-supplied name or description of theDataSource.The number of data files referenced by theDataSource.The current status of theDataSource.inthashCode()The parameter istrueif statistics need to be generated from the observation data.voidsetComputeStatistics(Boolean computeStatistics) The parameter istrueif statistics need to be generated from the observation data.voidsetCreatedAt(Date createdAt) The time that theDataSourcewas created.voidsetCreatedByIamUser(String createdByIamUser) The AWS user account from which theDataSourcewas created.voidsetDataLocationS3(String dataLocationS3) The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by aDataSource.voidsetDataRearrangement(String dataRearrangement) A JSON string that represents the splitting requirement of aDatasource.voidsetDataSizeInBytes(Long dataSizeInBytes) The total number of observations contained in the data files that theDataSourcereferences.voidsetDataSourceId(String dataSourceId) The ID that is assigned to theDataSourceduring creation.voidsetLastUpdatedAt(Date lastUpdatedAt) The time of the most recent edit to theBatchPrediction.voidsetMessage(String message) A description of the most recent details about creating theDataSource.voidA user-supplied name or description of theDataSource.voidsetNumberOfFiles(Long numberOfFiles) The number of data files referenced by theDataSource.voidsetRDSMetadata(RDSMetadata rDSMetadata) voidsetRedshiftMetadata(RedshiftMetadata redshiftMetadata) voidsetRoleARN(String roleARN) voidsetStatus(EntityStatus status) The current status of theDataSource.voidThe current status of theDataSource.toString()Returns a string representation of this object; useful for testing and debugging.withComputeStatistics(Boolean computeStatistics) The parameter istrueif statistics need to be generated from the observation data.withCreatedAt(Date createdAt) The time that theDataSourcewas created.withCreatedByIamUser(String createdByIamUser) The AWS user account from which theDataSourcewas created.withDataLocationS3(String dataLocationS3) The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by aDataSource.withDataRearrangement(String dataRearrangement) A JSON string that represents the splitting requirement of aDatasource.withDataSizeInBytes(Long dataSizeInBytes) The total number of observations contained in the data files that theDataSourcereferences.withDataSourceId(String dataSourceId) The ID that is assigned to theDataSourceduring creation.withLastUpdatedAt(Date lastUpdatedAt) The time of the most recent edit to theBatchPrediction.withMessage(String message) A description of the most recent details about creating theDataSource.A user-supplied name or description of theDataSource.withNumberOfFiles(Long numberOfFiles) The number of data files referenced by theDataSource.withRDSMetadata(RDSMetadata rDSMetadata) withRedshiftMetadata(RedshiftMetadata redshiftMetadata) withRoleARN(String roleARN) withStatus(EntityStatus status) The current status of theDataSource.withStatus(String status) The current status of theDataSource.
-
Constructor Details
-
DataSource
public DataSource()
-
-
Method Details
-
setDataSourceId
The ID that is assigned to the
DataSourceduring creation.- Parameters:
dataSourceId- The ID that is assigned to theDataSourceduring creation.
-
getDataSourceId
The ID that is assigned to the
DataSourceduring creation.- Returns:
- The ID that is assigned to the
DataSourceduring creation.
-
withDataSourceId
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.
-
setDataLocationS3
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.
-
getDataLocationS3
The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a
DataSource.- Returns:
- The location and name of the data in Amazon Simple Storage
Service (Amazon S3) that is used by a
DataSource.
-
withDataLocationS3
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.
-
setDataRearrangement
A JSON string that represents the splitting requirement of a
Datasource.- Parameters:
dataRearrangement- A JSON string that represents the splitting requirement of aDatasource.
-
getDataRearrangement
A JSON string that represents the splitting requirement of a
Datasource.- Returns:
- A JSON string that represents the splitting requirement of a
Datasource.
-
withDataRearrangement
A JSON string that represents the splitting requirement of a
Datasource.- Parameters:
dataRearrangement- A JSON string that represents the splitting requirement of aDatasource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedByIamUser
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.
-
getCreatedByIamUser
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.- Returns:
- 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.
-
withCreatedByIamUser
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.
-
setCreatedAt
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.
-
getCreatedAt
The time that the
DataSourcewas created. The time is expressed in epoch time.- Returns:
- The time that the
DataSourcewas created. The time is expressed in epoch time.
-
withCreatedAt
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.
-
setLastUpdatedAt
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.
-
getLastUpdatedAt
The time of the most recent edit to the
BatchPrediction. The time is expressed in epoch time.- Returns:
- The time of the most recent edit to the
BatchPrediction. The time is expressed in epoch time.
-
withLastUpdatedAt
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.
-
setDataSizeInBytes
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.
-
getDataSizeInBytes
The total number of observations contained in the data files that the
DataSourcereferences.- Returns:
- The total number of observations contained in the data files that
the
DataSourcereferences.
-
withDataSizeInBytes
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.
-
setNumberOfFiles
The number of data files referenced by the
DataSource.- Parameters:
numberOfFiles- The number of data files referenced by theDataSource.
-
getNumberOfFiles
The number of data files referenced by the
DataSource.- Returns:
- The number of data files referenced by the
DataSource.
-
withNumberOfFiles
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.
-
setName
A user-supplied name or description of the
DataSource.- Parameters:
name- A user-supplied name or description of theDataSource.
-
getName
A user-supplied name or description of the
DataSource.- Returns:
- A user-supplied name or description of the
DataSource.
-
withName
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.
-
setStatus
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.
- PENDING - Amazon Machine Learning (Amazon ML) submitted a
request to create a
- See Also:
- PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
create a
-
getStatus
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.
- Returns:
- 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.
- PENDING - Amazon Machine Learning (Amazon ML) submitted a
request to create a
- See Also:
- PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
create a
-
withStatus
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.
- PENDING - Amazon Machine Learning (Amazon ML) submitted a
request to create a
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
- PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
create a
-
setStatus
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.
- PENDING - Amazon Machine Learning (Amazon ML) submitted a
request to create a
- See Also:
- PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
create a
-
withStatus
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.
- PENDING - Amazon Machine Learning (Amazon ML) submitted a
request to create a
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
- PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
create a
-
setMessage
A description of the most recent details about creating the
DataSource.- Parameters:
message- A description of the most recent details about creating theDataSource.
-
getMessage
A description of the most recent details about creating the
DataSource.- Returns:
- A description of the most recent details about creating the
DataSource.
-
withMessage
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.
-
setRedshiftMetadata
- Parameters:
redshiftMetadata-
-
getRedshiftMetadata
- Returns:
-
withRedshiftMetadata
- Parameters:
redshiftMetadata-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRDSMetadata
- Parameters:
rDSMetadata-
-
getRDSMetadata
- Returns:
-
withRDSMetadata
- Parameters:
rDSMetadata-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleARN
- Parameters:
roleARN-
-
getRoleARN
- Returns:
-
withRoleARN
- Parameters:
roleARN-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setComputeStatistics
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.
-
getComputeStatistics
The parameter is
trueif statistics need to be generated from the observation data.- Returns:
- The parameter is
trueif statistics need to be generated from the observation data.
-
withComputeStatistics
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.
-
isComputeStatistics
The parameter is
trueif statistics need to be generated from the observation data.- Returns:
- The parameter is
trueif statistics need to be generated from the observation data.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-