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()
boolean
The parameter istrue
if statistics need to be generated from the observation data.The time that theDataSource
was created.The AWS user account from which theDataSource
was 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 theDataSource
references.The ID that is assigned to theDataSource
during 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
.int
hashCode()
The parameter istrue
if statistics need to be generated from the observation data.void
setComputeStatistics
(Boolean computeStatistics) The parameter istrue
if statistics need to be generated from the observation data.void
setCreatedAt
(Date createdAt) The time that theDataSource
was created.void
setCreatedByIamUser
(String createdByIamUser) The AWS user account from which theDataSource
was created.void
setDataLocationS3
(String dataLocationS3) The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by aDataSource
.void
setDataRearrangement
(String dataRearrangement) A JSON string that represents the splitting requirement of aDatasource
.void
setDataSizeInBytes
(Long dataSizeInBytes) The total number of observations contained in the data files that theDataSource
references.void
setDataSourceId
(String dataSourceId) The ID that is assigned to theDataSource
during creation.void
setLastUpdatedAt
(Date lastUpdatedAt) The time of the most recent edit to theBatchPrediction
.void
setMessage
(String message) A description of the most recent details about creating theDataSource
.void
A user-supplied name or description of theDataSource
.void
setNumberOfFiles
(Long numberOfFiles) The number of data files referenced by theDataSource
.void
setRDSMetadata
(RDSMetadata rDSMetadata) void
setRedshiftMetadata
(RedshiftMetadata redshiftMetadata) void
setRoleARN
(String roleARN) void
setStatus
(EntityStatus status) The current status of theDataSource
.void
The current status of theDataSource
.toString()
Returns a string representation of this object; useful for testing and debugging.withComputeStatistics
(Boolean computeStatistics) The parameter istrue
if statistics need to be generated from the observation data.withCreatedAt
(Date createdAt) The time that theDataSource
was created.withCreatedByIamUser
(String createdByIamUser) The AWS user account from which theDataSource
was 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 theDataSource
references.withDataSourceId
(String dataSourceId) The ID that is assigned to theDataSource
during 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
DataSource
during creation.- Parameters:
dataSourceId
- The ID that is assigned to theDataSource
during creation.
-
getDataSourceId
The ID that is assigned to the
DataSource
during creation.- Returns:
- The ID that is assigned to the
DataSource
during creation.
-
withDataSourceId
The ID that is assigned to the
DataSource
during creation.- Parameters:
dataSourceId
- The ID that is assigned to theDataSource
during 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
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 theDataSource
was 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
DataSource
was 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
DataSource
was 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
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 theDataSource
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.
-
setCreatedAt
The time that the
DataSource
was created. The time is expressed in epoch time.- Parameters:
createdAt
- The time that theDataSource
was created. The time is expressed in epoch time.
-
getCreatedAt
The time that the
DataSource
was created. The time is expressed in epoch time.- Returns:
- The time that the
DataSource
was created. The time is expressed in epoch time.
-
withCreatedAt
The time that the
DataSource
was created. The time is expressed in epoch time.- Parameters:
createdAt
- The time that theDataSource
was 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
DataSource
references.- Parameters:
dataSizeInBytes
- The total number of observations contained in the data files that theDataSource
references.
-
getDataSizeInBytes
The total number of observations contained in the data files that the
DataSource
references.- Returns:
- The total number of observations contained in the data files that
the
DataSource
references.
-
withDataSizeInBytes
The total number of observations contained in the data files that the
DataSource
references.- Parameters:
dataSizeInBytes
- The total number of observations contained in the data files that theDataSource
references.- 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
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 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
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.
- 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
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:
- 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
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.
- 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
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 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
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.
- 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
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 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
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.
- 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
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 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
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.
- 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
true
if statistics need to be generated from the observation data.- Parameters:
computeStatistics
- The parameter istrue
if statistics need to be generated from the observation data.
-
getComputeStatistics
The parameter is
true
if statistics need to be generated from the observation data.- Returns:
- The parameter is
true
if statistics need to be generated from the observation data.
-
withComputeStatistics
The parameter is
true
if statistics need to be generated from the observation data.- Parameters:
computeStatistics
- The parameter istrue
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.
-
isComputeStatistics
The parameter is
true
if statistics need to be generated from the observation data.- Returns:
- The parameter is
true
if 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
-