@Generated(value="software.amazon.awssdk:codegen") public final class GetBatchPredictionResponse extends MachineLearningResponse implements ToCopyableBuilder<GetBatchPredictionResponse.Builder,GetBatchPredictionResponse>
Represents the output of a GetBatchPrediction
operation and describes a BatchPrediction
.
Modifier and Type | Class and Description |
---|---|
static interface |
GetBatchPredictionResponse.Builder |
Modifier and Type | Method and Description |
---|---|
String |
batchPredictionDataSourceId()
The ID of the
DataSource that was used to create the BatchPrediction . |
String |
batchPredictionId()
An ID assigned to the
BatchPrediction at creation. |
static GetBatchPredictionResponse.Builder |
builder() |
Long |
computeTime()
The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the
BatchPrediction , normalized and scaled on computation resources. |
Instant |
createdAt()
The time when the
BatchPrediction was created. |
String |
createdByIamUser()
The AWS user account that invoked the
BatchPrediction . |
boolean |
equals(Object obj) |
Instant |
finishedAt()
The epoch time when Amazon Machine Learning marked the
BatchPrediction 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() |
String |
inputDataLocationS3()
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
|
Long |
invalidRecordCount()
The number of invalid records that Amazon Machine Learning saw while processing the
BatchPrediction . |
Instant |
lastUpdatedAt()
The time of the most recent edit to
BatchPrediction . |
String |
logUri()
A link to the file that contains logs of the
CreateBatchPrediction operation. |
String |
message()
A description of the most recent details about processing the batch prediction request.
|
String |
mlModelId()
The ID of the
MLModel that generated predictions for the BatchPrediction request. |
String |
name()
A user-supplied name or description of the
BatchPrediction . |
String |
outputUri()
The location of an Amazon S3 bucket or directory to receive the operation results.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetBatchPredictionResponse.Builder> |
serializableBuilderClass() |
Instant |
startedAt()
The epoch time when Amazon Machine Learning marked the
BatchPrediction as INPROGRESS . |
EntityStatus |
status()
The status of the
BatchPrediction , which can be one of the following values: |
String |
statusAsString()
The status of the
BatchPrediction , which can be one of the following values: |
GetBatchPredictionResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Long |
totalRecordCount()
The number of total records that Amazon Machine Learning saw while processing the
BatchPrediction . |
responseMetadata
sdkHttpResponse
copy
public String batchPredictionId()
An ID assigned to the BatchPrediction
at creation. This value should be identical to the value of
the BatchPredictionID
in the request.
BatchPrediction
at creation. This value should be identical to the
value of the BatchPredictionID
in the request.public String mlModelId()
The ID of the MLModel
that generated predictions for the BatchPrediction
request.
MLModel
that generated predictions for the BatchPrediction
request.public String batchPredictionDataSourceId()
The ID of the DataSource
that was used to create the BatchPrediction
.
DataSource
that was used to create the BatchPrediction
.public String inputDataLocationS3()
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
public String createdByIamUser()
The AWS user account that invoked the BatchPrediction
. The account type can be either an AWS root
account or an AWS Identity and Access Management (IAM) user account.
BatchPrediction
. 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 when the BatchPrediction
was created. The time is expressed in epoch time.
BatchPrediction
was created. The time is expressed in epoch time.public Instant lastUpdatedAt()
The time of the most recent edit to BatchPrediction
. The time is expressed in epoch time.
BatchPrediction
. The time is expressed in epoch time.public String name()
A user-supplied name or description of the BatchPrediction
.
BatchPrediction
.public EntityStatus status()
The status of the BatchPrediction
, which can be one of the following values:
PENDING
- Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions.
INPROGRESS
- The batch predictions are in progress.FAILED
- The request to perform a batch prediction did not run to completion. It is not usable.COMPLETED
- The batch prediction process completed successfully.DELETED
- The BatchPrediction
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()
.
BatchPrediction
, which can be one of the following values:
PENDING
- Amazon Machine Learning (Amazon ML) submitted a request to generate batch
predictions.INPROGRESS
- The batch predictions are in progress.FAILED
- The request to perform a batch prediction did not run to completion. It is not
usable.COMPLETED
- The batch prediction process completed successfully.DELETED
- The BatchPrediction
is marked as deleted. It is not usable.EntityStatus
public String statusAsString()
The status of the BatchPrediction
, which can be one of the following values:
PENDING
- Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions.
INPROGRESS
- The batch predictions are in progress.FAILED
- The request to perform a batch prediction did not run to completion. It is not usable.COMPLETED
- The batch prediction process completed successfully.DELETED
- The BatchPrediction
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()
.
BatchPrediction
, which can be one of the following values:
PENDING
- Amazon Machine Learning (Amazon ML) submitted a request to generate batch
predictions.INPROGRESS
- The batch predictions are in progress.FAILED
- The request to perform a batch prediction did not run to completion. It is not
usable.COMPLETED
- The batch prediction process completed successfully.DELETED
- The BatchPrediction
is marked as deleted. It is not usable.EntityStatus
public String outputUri()
The location of an Amazon S3 bucket or directory to receive the operation results.
public String logUri()
A link to the file that contains logs of the CreateBatchPrediction
operation.
CreateBatchPrediction
operation.public String message()
A description of the most recent details about processing the batch prediction request.
public Long computeTime()
The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the
BatchPrediction
, normalized and scaled on computation resources. ComputeTime
is only
available if the BatchPrediction
is in the COMPLETED
state.
BatchPrediction
, normalized and scaled on computation resources. ComputeTime
is
only available if the BatchPrediction
is in the COMPLETED
state.public Instant finishedAt()
The epoch time when Amazon Machine Learning marked the BatchPrediction
as COMPLETED
or
FAILED
. FinishedAt
is only available when the BatchPrediction
is in the
COMPLETED
or FAILED
state.
BatchPrediction
as
COMPLETED
or FAILED
. FinishedAt
is only available when the
BatchPrediction
is in the COMPLETED
or FAILED
state.public Instant startedAt()
The epoch time when Amazon Machine Learning marked the BatchPrediction
as INPROGRESS
.
StartedAt
isn't available if the BatchPrediction
is in the PENDING
state.
BatchPrediction
as
INPROGRESS
. StartedAt
isn't available if the BatchPrediction
is in
the PENDING
state.public Long totalRecordCount()
The number of total records that Amazon Machine Learning saw while processing the BatchPrediction
.
BatchPrediction
.public Long invalidRecordCount()
The number of invalid records that Amazon Machine Learning saw while processing the BatchPrediction
.
BatchPrediction
.public GetBatchPredictionResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetBatchPredictionResponse.Builder,GetBatchPredictionResponse>
toBuilder
in class AwsResponse
public static GetBatchPredictionResponse.Builder builder()
public static Class<? extends GetBatchPredictionResponse.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.