@Generated(value="software.amazon.awssdk:codegen") public final class GetDataSourceResponse extends MachineLearningResponse implements ToCopyableBuilder<GetDataSourceResponse.Builder,GetDataSourceResponse>
Represents the output of a GetDataSource
operation and describes a DataSource
.
Modifier and Type | Class and Description |
---|---|
static interface |
GetDataSourceResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static GetDataSourceResponse.Builder |
builder() |
Boolean |
computeStatistics()
The parameter is
true if statistics need to be generated from the observation data. |
Long |
computeTime()
The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the
DataSource , normalized and scaled on computation resources. |
Instant |
createdAt()
The time that the
DataSource was created. |
String |
createdByIamUser()
The AWS user account from which the
DataSource was created. |
String |
dataLocationS3()
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
|
String |
dataRearrangement()
A JSON string that represents the splitting and rearrangement requirement used when this
DataSource
was created. |
Long |
dataSizeInBytes()
The total size of observations in the data files.
|
String |
dataSourceId()
The ID assigned to the
DataSource at creation. |
String |
dataSourceSchema()
The schema used by all of the data files of this
DataSource . |
boolean |
equals(Object obj) |
Instant |
finishedAt()
The epoch time when Amazon Machine Learning marked the
DataSource as COMPLETED or
FAILED . |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
Instant |
lastUpdatedAt()
The time of the most recent edit to the
DataSource . |
String |
logUri()
A link to the file containing logs of
CreateDataSourceFrom* operations. |
String |
message()
The user-supplied description of the most recent details about creating the
DataSource . |
String |
name()
A user-supplied name or description of the
DataSource . |
Long |
numberOfFiles()
The number of data files referenced by the
DataSource . |
RDSMetadata |
rdsMetadata()
Returns the value of the RDSMetadata property for this object.
|
RedshiftMetadata |
redshiftMetadata()
Returns the value of the RedshiftMetadata property for this object.
|
String |
roleARN()
Returns the value of the RoleARN property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetDataSourceResponse.Builder> |
serializableBuilderClass() |
Instant |
startedAt()
The epoch time when Amazon Machine Learning marked the
DataSource as INPROGRESS . |
EntityStatus |
status()
The current status of the
DataSource . |
String |
statusAsString()
The current status of the
DataSource . |
GetDataSourceResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
responseMetadata
sdkHttpResponse
copy
public String dataSourceId()
The ID assigned to the DataSource
at creation. This value should be identical to the value of the
DataSourceId
in the request.
DataSource
at creation. This value should be identical to the value
of the DataSourceId
in the request.public String dataLocationS3()
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
public String dataRearrangement()
A JSON string that represents the splitting and rearrangement requirement used when this DataSource
was created.
DataSource
was created.public 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.
DataSource
was created. The account type can be either
an AWS root account or an AWS Identity and Access Management (IAM) user account.public Instant createdAt()
The time that the DataSource
was created. The time is expressed in epoch time.
DataSource
was created. The time is expressed in epoch time.public Instant lastUpdatedAt()
The time of the most recent edit to the DataSource
. The time is expressed in epoch time.
DataSource
. The time is expressed in epoch time.public Long dataSizeInBytes()
The total size of observations in the data files.
public Long numberOfFiles()
The number of data files referenced by the DataSource
.
DataSource
.public String name()
A user-supplied name or description of the DataSource
.
DataSource
.public EntityStatus status()
The current status of the DataSource
. This element can have one of the following values:
PENDING
- 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.
If the service returns an enum value that is not available in the current SDK version, status
will
return EntityStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
DataSource
. This element can have one of the following values:
PENDING
- 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.EntityStatus
public String statusAsString()
The current status of the DataSource
. This element can have one of the following values:
PENDING
- 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.
If the service returns an enum value that is not available in the current SDK version, status
will
return EntityStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
DataSource
. This element can have one of the following values:
PENDING
- 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.EntityStatus
public String logUri()
A link to the file containing logs of CreateDataSourceFrom*
operations.
CreateDataSourceFrom*
operations.public String message()
The user-supplied description of the most recent details about creating the DataSource
.
DataSource
.public RedshiftMetadata redshiftMetadata()
public RDSMetadata rdsMetadata()
public String roleARN()
public Boolean computeStatistics()
The parameter is true
if statistics need to be generated from the observation data.
true
if statistics need to be generated from the observation data.public Long computeTime()
The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the
DataSource
, normalized and scaled on computation resources. ComputeTime
is only
available if the DataSource
is in the COMPLETED
state and the
ComputeStatistics
is set to true.
DataSource
, normalized and scaled on computation resources. ComputeTime
is only
available if the DataSource
is in the COMPLETED
state and the
ComputeStatistics
is set to true.public Instant finishedAt()
The epoch time when Amazon Machine Learning marked the DataSource
as COMPLETED
or
FAILED
. FinishedAt
is only available when the DataSource
is in the
COMPLETED
or FAILED
state.
DataSource
as COMPLETED
or FAILED
. FinishedAt
is only available when the DataSource
is in
the COMPLETED
or FAILED
state.public Instant startedAt()
The epoch time when Amazon Machine Learning marked the DataSource
as INPROGRESS
.
StartedAt
isn't available if the DataSource
is in the PENDING
state.
DataSource
as INPROGRESS
. StartedAt
isn't available if the DataSource
is in the PENDING
state.public String dataSourceSchema()
The schema used by all of the data files of this DataSource
.
This parameter is provided as part of the verbose format.
DataSource
. This parameter is provided as part of the verbose format.
public GetDataSourceResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetDataSourceResponse.Builder,GetDataSourceResponse>
toBuilder
in class AwsResponse
public static GetDataSourceResponse.Builder builder()
public static Class<? extends GetDataSourceResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.