Class GetBatchPredictionResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.machinelearning.model.MachineLearningResponse
-
- software.amazon.awssdk.services.machinelearning.model.GetBatchPredictionResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetBatchPredictionResponse.Builder,GetBatchPredictionResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetBatchPredictionResponse extends MachineLearningResponse implements ToCopyableBuilder<GetBatchPredictionResponse.Builder,GetBatchPredictionResponse>
Represents the output of a
GetBatchPredictionoperation and describes aBatchPrediction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetBatchPredictionResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbatchPredictionDataSourceId()The ID of theDataSourcethat was used to create theBatchPrediction.StringbatchPredictionId()An ID assigned to theBatchPredictionat creation.static GetBatchPredictionResponse.Builderbuilder()LongcomputeTime()The approximate CPU time in milliseconds that Amazon Machine Learning spent processing theBatchPrediction, normalized and scaled on computation resources.InstantcreatedAt()The time when theBatchPredictionwas created.StringcreatedByIamUser()The AWS user account that invoked theBatchPrediction.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstantfinishedAt()The epoch time when Amazon Machine Learning marked theBatchPredictionasCOMPLETEDorFAILED.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinputDataLocationS3()The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).LonginvalidRecordCount()The number of invalid records that Amazon Machine Learning saw while processing theBatchPrediction.InstantlastUpdatedAt()The time of the most recent edit toBatchPrediction.StringlogUri()A link to the file that contains logs of theCreateBatchPredictionoperation.Stringmessage()A description of the most recent details about processing the batch prediction request.StringmlModelId()The ID of theMLModelthat generated predictions for theBatchPredictionrequest.Stringname()A user-supplied name or description of theBatchPrediction.StringoutputUri()The location of an Amazon S3 bucket or directory to receive the operation results.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends GetBatchPredictionResponse.Builder>serializableBuilderClass()InstantstartedAt()The epoch time when Amazon Machine Learning marked theBatchPredictionasINPROGRESS.EntityStatusstatus()The status of theBatchPrediction, which can be one of the following values:StringstatusAsString()The status of theBatchPrediction, which can be one of the following values:GetBatchPredictionResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.LongtotalRecordCount()The number of total records that Amazon Machine Learning saw while processing theBatchPrediction.-
Methods inherited from class software.amazon.awssdk.services.machinelearning.model.MachineLearningResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
batchPredictionId
public final String batchPredictionId()
An ID assigned to the
BatchPredictionat creation. This value should be identical to the value of theBatchPredictionIDin the request.- Returns:
- An ID assigned to the
BatchPredictionat creation. This value should be identical to the value of theBatchPredictionIDin the request.
-
mlModelId
public final String mlModelId()
The ID of the
MLModelthat generated predictions for theBatchPredictionrequest.- Returns:
- The ID of the
MLModelthat generated predictions for theBatchPredictionrequest.
-
batchPredictionDataSourceId
public final String batchPredictionDataSourceId()
The ID of the
DataSourcethat was used to create theBatchPrediction.- Returns:
- The ID of the
DataSourcethat was used to create theBatchPrediction.
-
inputDataLocationS3
public final String inputDataLocationS3()
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
- Returns:
- The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
-
createdByIamUser
public final 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.- Returns:
- 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.
-
createdAt
public final Instant createdAt()
The time when the
BatchPredictionwas created. The time is expressed in epoch time.- Returns:
- The time when the
BatchPredictionwas created. The time is expressed in epoch time.
-
lastUpdatedAt
public final Instant lastUpdatedAt()
The time of the most recent edit to
BatchPrediction. The time is expressed in epoch time.- Returns:
- The time of the most recent edit to
BatchPrediction. The time is expressed in epoch time.
-
name
public final String name()
A user-supplied name or description of the
BatchPrediction.- Returns:
- A user-supplied name or description of the
BatchPrediction.
-
status
public final 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- TheBatchPredictionis marked as deleted. It is not usable.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnEntityStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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- TheBatchPredictionis marked as deleted. It is not usable.
-
- See Also:
EntityStatus
-
-
statusAsString
public final 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- TheBatchPredictionis marked as deleted. It is not usable.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnEntityStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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- TheBatchPredictionis marked as deleted. It is not usable.
-
- See Also:
EntityStatus
-
-
outputUri
public final String outputUri()
The location of an Amazon S3 bucket or directory to receive the operation results.
- Returns:
- The location of an Amazon S3 bucket or directory to receive the operation results.
-
logUri
public final String logUri()
A link to the file that contains logs of the
CreateBatchPredictionoperation.- Returns:
- A link to the file that contains logs of the
CreateBatchPredictionoperation.
-
message
public final String message()
A description of the most recent details about processing the batch prediction request.
- Returns:
- A description of the most recent details about processing the batch prediction request.
-
computeTime
public final Long computeTime()
The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the
BatchPrediction, normalized and scaled on computation resources.ComputeTimeis only available if theBatchPredictionis in theCOMPLETEDstate.- Returns:
- The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the
BatchPrediction, normalized and scaled on computation resources.ComputeTimeis only available if theBatchPredictionis in theCOMPLETEDstate.
-
finishedAt
public final Instant finishedAt()
The epoch time when Amazon Machine Learning marked the
BatchPredictionasCOMPLETEDorFAILED.FinishedAtis only available when theBatchPredictionis in theCOMPLETEDorFAILEDstate.- Returns:
- The epoch time when Amazon Machine Learning marked the
BatchPredictionasCOMPLETEDorFAILED.FinishedAtis only available when theBatchPredictionis in theCOMPLETEDorFAILEDstate.
-
startedAt
public final Instant startedAt()
The epoch time when Amazon Machine Learning marked the
BatchPredictionasINPROGRESS.StartedAtisn't available if theBatchPredictionis in thePENDINGstate.- Returns:
- The epoch time when Amazon Machine Learning marked the
BatchPredictionasINPROGRESS.StartedAtisn't available if theBatchPredictionis in thePENDINGstate.
-
totalRecordCount
public final Long totalRecordCount()
The number of total records that Amazon Machine Learning saw while processing the
BatchPrediction.- Returns:
- The number of total records that Amazon Machine Learning saw while processing the
BatchPrediction.
-
invalidRecordCount
public final Long invalidRecordCount()
The number of invalid records that Amazon Machine Learning saw while processing the
BatchPrediction.- Returns:
- The number of invalid records that Amazon Machine Learning saw while processing the
BatchPrediction.
-
toBuilder
public GetBatchPredictionResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetBatchPredictionResponse.Builder,GetBatchPredictionResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetBatchPredictionResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetBatchPredictionResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-