Class DataSource
- java.lang.Object
-
- com.amazonaws.services.machinelearning.model.DataSource
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DataSource extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSource
clone()
boolean
equals(Object obj)
Boolean
getComputeStatistics()
The parameter istrue
if statistics need to be generated from the observation data.Date
getCreatedAt()
The time that theDataSource
was created.String
getCreatedByIamUser()
The AWS user account from which theDataSource
was created.String
getDataLocationS3()
The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by aDataSource
.String
getDataRearrangement()
A JSON string that represents the splitting requirement of aDatasource
.Long
getDataSizeInBytes()
The total number of observations contained in the data files that theDataSource
references.String
getDataSourceId()
The ID that is assigned to theDataSource
during creation.Date
getLastUpdatedAt()
The time of the most recent edit to theBatchPrediction
.String
getMessage()
A description of the most recent details about creating theDataSource
.String
getName()
A user-supplied name or description of theDataSource
.Long
getNumberOfFiles()
The number of data files referenced by theDataSource
.RDSMetadata
getRDSMetadata()
RedshiftMetadata
getRedshiftMetadata()
String
getRoleARN()
String
getStatus()
The current status of theDataSource
.int
hashCode()
Boolean
isComputeStatistics()
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
setName(String name)
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
setStatus(String status)
The current status of theDataSource
.String
toString()
Returns a string representation of this object; useful for testing and debugging.DataSource
withComputeStatistics(Boolean computeStatistics)
The parameter istrue
if statistics need to be generated from the observation data.DataSource
withCreatedAt(Date createdAt)
The time that theDataSource
was created.DataSource
withCreatedByIamUser(String createdByIamUser)
The AWS user account from which theDataSource
was created.DataSource
withDataLocationS3(String dataLocationS3)
The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by aDataSource
.DataSource
withDataRearrangement(String dataRearrangement)
A JSON string that represents the splitting requirement of aDatasource
.DataSource
withDataSizeInBytes(Long dataSizeInBytes)
The total number of observations contained in the data files that theDataSource
references.DataSource
withDataSourceId(String dataSourceId)
The ID that is assigned to theDataSource
during creation.DataSource
withLastUpdatedAt(Date lastUpdatedAt)
The time of the most recent edit to theBatchPrediction
.DataSource
withMessage(String message)
A description of the most recent details about creating theDataSource
.DataSource
withName(String name)
A user-supplied name or description of theDataSource
.DataSource
withNumberOfFiles(Long numberOfFiles)
The number of data files referenced by theDataSource
.DataSource
withRDSMetadata(RDSMetadata rDSMetadata)
DataSource
withRedshiftMetadata(RedshiftMetadata redshiftMetadata)
DataSource
withRoleARN(String roleARN)
DataSource
withStatus(EntityStatus status)
The current status of theDataSource
.DataSource
withStatus(String status)
The current status of theDataSource
.
-
-
-
Method Detail
-
setDataSourceId
public void setDataSourceId(String dataSourceId)
The ID that is assigned to the
DataSource
during creation.- Parameters:
dataSourceId
- The ID that is assigned to theDataSource
during creation.
-
getDataSourceId
public String getDataSourceId()
The ID that is assigned to the
DataSource
during creation.- Returns:
- The ID that is assigned to the
DataSource
during creation.
-
withDataSourceId
public DataSource withDataSourceId(String dataSourceId)
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
public void setDataLocationS3(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
.
-
getDataLocationS3
public String 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
public DataSource withDataLocationS3(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.
-
setDataRearrangement
public void setDataRearrangement(String dataRearrangement)
A JSON string that represents the splitting requirement of a
Datasource
.- Parameters:
dataRearrangement
- A JSON string that represents the splitting requirement of aDatasource
.
-
getDataRearrangement
public String 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
public DataSource withDataRearrangement(String dataRearrangement)
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
public void setCreatedByIamUser(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 theDataSource
was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.
-
getCreatedByIamUser
public String 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
public DataSource withCreatedByIamUser(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 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
public void setCreatedAt(Date createdAt)
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
public Date 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
public DataSource withCreatedAt(Date createdAt)
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
public void setLastUpdatedAt(Date 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.
-
getLastUpdatedAt
public Date 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
public DataSource withLastUpdatedAt(Date 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.
-
setDataSizeInBytes
public void setDataSizeInBytes(Long dataSizeInBytes)
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
public Long 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
public DataSource withDataSizeInBytes(Long dataSizeInBytes)
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
public void setNumberOfFiles(Long numberOfFiles)
The number of data files referenced by the
DataSource
.- Parameters:
numberOfFiles
- The number of data files referenced by theDataSource
.
-
getNumberOfFiles
public Long getNumberOfFiles()
The number of data files referenced by the
DataSource
.- Returns:
- The number of data files referenced by the
DataSource
.
-
withNumberOfFiles
public DataSource withNumberOfFiles(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.
-
setName
public void setName(String name)
A user-supplied name or description of the
DataSource
.- Parameters:
name
- A user-supplied name or description of theDataSource
.
-
getName
public String getName()
A user-supplied name or description of the
DataSource
.- Returns:
- A user-supplied name or description of the
DataSource
.
-
withName
public DataSource withName(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.
-
setStatus
public void setStatus(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
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:
EntityStatus
- PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
create a
-
getStatus
public String 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:
EntityStatus
- PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
create a
-
withStatus
public DataSource withStatus(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
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:
EntityStatus
- PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
create a
-
setStatus
public void setStatus(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
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:
EntityStatus
- PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
create a
-
withStatus
public DataSource withStatus(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
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:
EntityStatus
- PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
create a
-
setMessage
public void setMessage(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
.
-
getMessage
public String 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
public DataSource withMessage(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.
-
setRedshiftMetadata
public void setRedshiftMetadata(RedshiftMetadata redshiftMetadata)
- Parameters:
redshiftMetadata
-
-
getRedshiftMetadata
public RedshiftMetadata getRedshiftMetadata()
- Returns:
-
withRedshiftMetadata
public DataSource withRedshiftMetadata(RedshiftMetadata redshiftMetadata)
- Parameters:
redshiftMetadata
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRDSMetadata
public void setRDSMetadata(RDSMetadata rDSMetadata)
- Parameters:
rDSMetadata
-
-
getRDSMetadata
public RDSMetadata getRDSMetadata()
- Returns:
-
withRDSMetadata
public DataSource withRDSMetadata(RDSMetadata rDSMetadata)
- Parameters:
rDSMetadata
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleARN
public void setRoleARN(String roleARN)
- Parameters:
roleARN
-
-
getRoleARN
public String getRoleARN()
- Returns:
-
withRoleARN
public DataSource withRoleARN(String roleARN)
- Parameters:
roleARN
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setComputeStatistics
public void setComputeStatistics(Boolean computeStatistics)
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
public Boolean 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
public DataSource withComputeStatistics(Boolean computeStatistics)
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
public Boolean 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DataSource clone()
-
-