/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.machinelearning.model; import java.io.Serializable; import javax.annotation.Generated; /** * <p> * Represents the output of a <code>GetBatchPrediction</code> operation and describes a <code>BatchPrediction</code>. * </p> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetBatchPredictionResult extends com.amazonaws.AmazonWebServiceResult<com.amazonaws.ResponseMetadata> implements Serializable, Cloneable { /** * <p> * An ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the value of * the <code>BatchPredictionID</code> in the request. * </p> */ private String batchPredictionId; /** * <p> * The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> request. * </p> */ private String mLModelId; /** * <p> * The ID of the <code>DataSource</code> that was used to create the <code>BatchPrediction</code>. * </p> */ private String batchPredictionDataSourceId; /** * <p> * The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). * </p> */ private String inputDataLocationS3; /** * <p> * The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS root * account or an AWS Identity and Access Management (IAM) user account. * </p> */ private String createdByIamUser; /** * <p> * The time when the <code>BatchPrediction</code> was created. The time is expressed in epoch time. * </p> */ private java.util.Date createdAt; /** * <p> * The time of the most recent edit to <code>BatchPrediction</code>. The time is expressed in epoch time. * </p> */ private java.util.Date lastUpdatedAt; /** * <p> * A user-supplied name or description of the <code>BatchPrediction</code>. * </p> */ private String name; /** * <p> * The status of the <code>BatchPrediction</code>, which can be one of the following values: * </p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions. * </li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * </ul> */ private String status; /** * <p> * The location of an Amazon S3 bucket or directory to receive the operation results. * </p> */ private String outputUri; /** * <p> * A link to the file that contains logs of the <code>CreateBatchPrediction</code> operation. * </p> */ private String logUri; /** * <p> * A description of the most recent details about processing the batch prediction request. * </p> */ private String message; /** * <p> * The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the * <code>BatchPrediction</code>, normalized and scaled on computation resources. <code>ComputeTime</code> is only * available if the <code>BatchPrediction</code> is in the <code>COMPLETED</code> state. * </p> */ private Long computeTime; /** * <p> * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as <code>COMPLETED</code> or * <code>FAILED</code>. <code>FinishedAt</code> is only available when the <code>BatchPrediction</code> is in the * <code>COMPLETED</code> or <code>FAILED</code> state. * </p> */ private java.util.Date finishedAt; /** * <p> * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as <code>INPROGRESS</code>. * <code>StartedAt</code> isn't available if the <code>BatchPrediction</code> is in the <code>PENDING</code> state. * </p> */ private java.util.Date startedAt; /** * <p> * The number of total records that Amazon Machine Learning saw while processing the <code>BatchPrediction</code>. * </p> */ private Long totalRecordCount; /** * <p> * The number of invalid records that Amazon Machine Learning saw while processing the <code>BatchPrediction</code>. * </p> */ private Long invalidRecordCount; /** * <p> * An ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the value of * the <code>BatchPredictionID</code> in the request. * </p> * * @param batchPredictionId * An ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the * value of the <code>BatchPredictionID</code> in the request. */ public void setBatchPredictionId(String batchPredictionId) { this.batchPredictionId = batchPredictionId; } /** * <p> * An ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the value of * the <code>BatchPredictionID</code> in the request. * </p> * * @return An ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the * value of the <code>BatchPredictionID</code> in the request. */ public String getBatchPredictionId() { return this.batchPredictionId; } /** * <p> * An ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the value of * the <code>BatchPredictionID</code> in the request. * </p> * * @param batchPredictionId * An ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the * value of the <code>BatchPredictionID</code> in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withBatchPredictionId(String batchPredictionId) { setBatchPredictionId(batchPredictionId); return this; } /** * <p> * The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> request. * </p> * * @param mLModelId * The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> * request. */ public void setMLModelId(String mLModelId) { this.mLModelId = mLModelId; } /** * <p> * The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> request. * </p> * * @return The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> * request. */ public String getMLModelId() { return this.mLModelId; } /** * <p> * The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> request. * </p> * * @param mLModelId * The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> * request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withMLModelId(String mLModelId) { setMLModelId(mLModelId); return this; } /** * <p> * The ID of the <code>DataSource</code> that was used to create the <code>BatchPrediction</code>. * </p> * * @param batchPredictionDataSourceId * The ID of the <code>DataSource</code> that was used to create the <code>BatchPrediction</code>. */ public void setBatchPredictionDataSourceId(String batchPredictionDataSourceId) { this.batchPredictionDataSourceId = batchPredictionDataSourceId; } /** * <p> * The ID of the <code>DataSource</code> that was used to create the <code>BatchPrediction</code>. * </p> * * @return The ID of the <code>DataSource</code> that was used to create the <code>BatchPrediction</code>. */ public String getBatchPredictionDataSourceId() { return this.batchPredictionDataSourceId; } /** * <p> * The ID of the <code>DataSource</code> that was used to create the <code>BatchPrediction</code>. * </p> * * @param batchPredictionDataSourceId * The ID of the <code>DataSource</code> that was used to create the <code>BatchPrediction</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withBatchPredictionDataSourceId(String batchPredictionDataSourceId) { setBatchPredictionDataSourceId(batchPredictionDataSourceId); return this; } /** * <p> * The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). * </p> * * @param inputDataLocationS3 * The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). */ public void setInputDataLocationS3(String inputDataLocationS3) { this.inputDataLocationS3 = inputDataLocationS3; } /** * <p> * The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). * </p> * * @return The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). */ public String getInputDataLocationS3() { return this.inputDataLocationS3; } /** * <p> * The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). * </p> * * @param inputDataLocationS3 * The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withInputDataLocationS3(String inputDataLocationS3) { setInputDataLocationS3(inputDataLocationS3); return this; } /** * <p> * The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS root * account or an AWS Identity and Access Management (IAM) user account. * </p> * * @param createdByIamUser * The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS * root account or an AWS Identity and Access Management (IAM) user account. */ public void setCreatedByIamUser(String createdByIamUser) { this.createdByIamUser = createdByIamUser; } /** * <p> * The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS root * account or an AWS Identity and Access Management (IAM) user account. * </p> * * @return The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS * root account or an AWS Identity and Access Management (IAM) user account. */ public String getCreatedByIamUser() { return this.createdByIamUser; } /** * <p> * The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS root * account or an AWS Identity and Access Management (IAM) user account. * </p> * * @param createdByIamUser * The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS * root account or an AWS Identity and Access Management (IAM) user account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withCreatedByIamUser(String createdByIamUser) { setCreatedByIamUser(createdByIamUser); return this; } /** * <p> * The time when the <code>BatchPrediction</code> was created. The time is expressed in epoch time. * </p> * * @param createdAt * The time when the <code>BatchPrediction</code> was created. The time is expressed in epoch time. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** * <p> * The time when the <code>BatchPrediction</code> was created. The time is expressed in epoch time. * </p> * * @return The time when the <code>BatchPrediction</code> was created. The time is expressed in epoch time. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** * <p> * The time when the <code>BatchPrediction</code> was created. The time is expressed in epoch time. * </p> * * @param createdAt * The time when the <code>BatchPrediction</code> was created. The time is expressed in epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** * <p> * The time of the most recent edit to <code>BatchPrediction</code>. The time is expressed in epoch time. * </p> * * @param lastUpdatedAt * The time of the most recent edit to <code>BatchPrediction</code>. The time is expressed in epoch time. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** * <p> * The time of the most recent edit to <code>BatchPrediction</code>. The time is expressed in epoch time. * </p> * * @return The time of the most recent edit to <code>BatchPrediction</code>. The time is expressed in epoch time. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** * <p> * The time of the most recent edit to <code>BatchPrediction</code>. The time is expressed in epoch time. * </p> * * @param lastUpdatedAt * The time of the most recent edit to <code>BatchPrediction</code>. The time is expressed in epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** * <p> * A user-supplied name or description of the <code>BatchPrediction</code>. * </p> * * @param name * A user-supplied name or description of the <code>BatchPrediction</code>. */ public void setName(String name) { this.name = name; } /** * <p> * A user-supplied name or description of the <code>BatchPrediction</code>. * </p> * * @return A user-supplied name or description of the <code>BatchPrediction</code>. */ public String getName() { return this.name; } /** * <p> * A user-supplied name or description of the <code>BatchPrediction</code>. * </p> * * @param name * A user-supplied name or description of the <code>BatchPrediction</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withName(String name) { setName(name); return this; } /** * <p> * The status of the <code>BatchPrediction</code>, which can be one of the following values: * </p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions. * </li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * </ul> * * @param status * The status of the <code>BatchPrediction</code>, which can be one of the following values:</p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch * predictions.</li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not * usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * @see EntityStatus */ public void setStatus(String status) { this.status = status; } /** * <p> * The status of the <code>BatchPrediction</code>, which can be one of the following values: * </p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions. * </li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * </ul> * * @return The status of the <code>BatchPrediction</code>, which can be one of the following values:</p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch * predictions.</li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not * usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * @see EntityStatus */ public String getStatus() { return this.status; } /** * <p> * The status of the <code>BatchPrediction</code>, which can be one of the following values: * </p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions. * </li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * </ul> * * @param status * The status of the <code>BatchPrediction</code>, which can be one of the following values:</p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch * predictions.</li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not * usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * @return Returns a reference to this object so that method calls can be chained together. * @see EntityStatus */ public GetBatchPredictionResult withStatus(String status) { setStatus(status); return this; } /** * <p> * The status of the <code>BatchPrediction</code>, which can be one of the following values: * </p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions. * </li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * </ul> * * @param status * The status of the <code>BatchPrediction</code>, which can be one of the following values:</p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch * predictions.</li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not * usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * @see EntityStatus */ public void setStatus(EntityStatus status) { this.status = status.toString(); } /** * <p> * The status of the <code>BatchPrediction</code>, which can be one of the following values: * </p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions. * </li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * </ul> * * @param status * The status of the <code>BatchPrediction</code>, which can be one of the following values:</p> * <ul> * <li> <code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate batch * predictions.</li> * <li> <code>INPROGRESS</code> - The batch predictions are in progress.</li> * <li> <code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not * usable.</li> * <li> <code>COMPLETED</code> - The batch prediction process completed successfully.</li> * <li> <code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</li> * @return Returns a reference to this object so that method calls can be chained together. * @see EntityStatus */ public GetBatchPredictionResult withStatus(EntityStatus status) { setStatus(status); return this; } /** * <p> * The location of an Amazon S3 bucket or directory to receive the operation results. * </p> * * @param outputUri * The location of an Amazon S3 bucket or directory to receive the operation results. */ public void setOutputUri(String outputUri) { this.outputUri = outputUri; } /** * <p> * The location of an Amazon S3 bucket or directory to receive the operation results. * </p> * * @return The location of an Amazon S3 bucket or directory to receive the operation results. */ public String getOutputUri() { return this.outputUri; } /** * <p> * The location of an Amazon S3 bucket or directory to receive the operation results. * </p> * * @param outputUri * The location of an Amazon S3 bucket or directory to receive the operation results. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withOutputUri(String outputUri) { setOutputUri(outputUri); return this; } /** * <p> * A link to the file that contains logs of the <code>CreateBatchPrediction</code> operation. * </p> * * @param logUri * A link to the file that contains logs of the <code>CreateBatchPrediction</code> operation. */ public void setLogUri(String logUri) { this.logUri = logUri; } /** * <p> * A link to the file that contains logs of the <code>CreateBatchPrediction</code> operation. * </p> * * @return A link to the file that contains logs of the <code>CreateBatchPrediction</code> operation. */ public String getLogUri() { return this.logUri; } /** * <p> * A link to the file that contains logs of the <code>CreateBatchPrediction</code> operation. * </p> * * @param logUri * A link to the file that contains logs of the <code>CreateBatchPrediction</code> operation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withLogUri(String logUri) { setLogUri(logUri); return this; } /** * <p> * A description of the most recent details about processing the batch prediction request. * </p> * * @param message * A description of the most recent details about processing the batch prediction request. */ public void setMessage(String message) { this.message = message; } /** * <p> * A description of the most recent details about processing the batch prediction request. * </p> * * @return A description of the most recent details about processing the batch prediction request. */ public String getMessage() { return this.message; } /** * <p> * A description of the most recent details about processing the batch prediction request. * </p> * * @param message * A description of the most recent details about processing the batch prediction request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withMessage(String message) { setMessage(message); return this; } /** * <p> * The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the * <code>BatchPrediction</code>, normalized and scaled on computation resources. <code>ComputeTime</code> is only * available if the <code>BatchPrediction</code> is in the <code>COMPLETED</code> state. * </p> * * @param computeTime * The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the * <code>BatchPrediction</code>, normalized and scaled on computation resources. <code>ComputeTime</code> is * only available if the <code>BatchPrediction</code> is in the <code>COMPLETED</code> state. */ public void setComputeTime(Long computeTime) { this.computeTime = computeTime; } /** * <p> * The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the * <code>BatchPrediction</code>, normalized and scaled on computation resources. <code>ComputeTime</code> is only * available if the <code>BatchPrediction</code> is in the <code>COMPLETED</code> state. * </p> * * @return The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the * <code>BatchPrediction</code>, normalized and scaled on computation resources. <code>ComputeTime</code> is * only available if the <code>BatchPrediction</code> is in the <code>COMPLETED</code> state. */ public Long getComputeTime() { return this.computeTime; } /** * <p> * The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the * <code>BatchPrediction</code>, normalized and scaled on computation resources. <code>ComputeTime</code> is only * available if the <code>BatchPrediction</code> is in the <code>COMPLETED</code> state. * </p> * * @param computeTime * The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the * <code>BatchPrediction</code>, normalized and scaled on computation resources. <code>ComputeTime</code> is * only available if the <code>BatchPrediction</code> is in the <code>COMPLETED</code> state. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withComputeTime(Long computeTime) { setComputeTime(computeTime); return this; } /** * <p> * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as <code>COMPLETED</code> or * <code>FAILED</code>. <code>FinishedAt</code> is only available when the <code>BatchPrediction</code> is in the * <code>COMPLETED</code> or <code>FAILED</code> state. * </p> * * @param finishedAt * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as * <code>COMPLETED</code> or <code>FAILED</code>. <code>FinishedAt</code> is only available when the * <code>BatchPrediction</code> is in the <code>COMPLETED</code> or <code>FAILED</code> state. */ public void setFinishedAt(java.util.Date finishedAt) { this.finishedAt = finishedAt; } /** * <p> * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as <code>COMPLETED</code> or * <code>FAILED</code>. <code>FinishedAt</code> is only available when the <code>BatchPrediction</code> is in the * <code>COMPLETED</code> or <code>FAILED</code> state. * </p> * * @return The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as * <code>COMPLETED</code> or <code>FAILED</code>. <code>FinishedAt</code> is only available when the * <code>BatchPrediction</code> is in the <code>COMPLETED</code> or <code>FAILED</code> state. */ public java.util.Date getFinishedAt() { return this.finishedAt; } /** * <p> * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as <code>COMPLETED</code> or * <code>FAILED</code>. <code>FinishedAt</code> is only available when the <code>BatchPrediction</code> is in the * <code>COMPLETED</code> or <code>FAILED</code> state. * </p> * * @param finishedAt * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as * <code>COMPLETED</code> or <code>FAILED</code>. <code>FinishedAt</code> is only available when the * <code>BatchPrediction</code> is in the <code>COMPLETED</code> or <code>FAILED</code> state. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withFinishedAt(java.util.Date finishedAt) { setFinishedAt(finishedAt); return this; } /** * <p> * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as <code>INPROGRESS</code>. * <code>StartedAt</code> isn't available if the <code>BatchPrediction</code> is in the <code>PENDING</code> state. * </p> * * @param startedAt * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as * <code>INPROGRESS</code>. <code>StartedAt</code> isn't available if the <code>BatchPrediction</code> is in * the <code>PENDING</code> state. */ public void setStartedAt(java.util.Date startedAt) { this.startedAt = startedAt; } /** * <p> * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as <code>INPROGRESS</code>. * <code>StartedAt</code> isn't available if the <code>BatchPrediction</code> is in the <code>PENDING</code> state. * </p> * * @return The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as * <code>INPROGRESS</code>. <code>StartedAt</code> isn't available if the <code>BatchPrediction</code> is in * the <code>PENDING</code> state. */ public java.util.Date getStartedAt() { return this.startedAt; } /** * <p> * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as <code>INPROGRESS</code>. * <code>StartedAt</code> isn't available if the <code>BatchPrediction</code> is in the <code>PENDING</code> state. * </p> * * @param startedAt * The epoch time when Amazon Machine Learning marked the <code>BatchPrediction</code> as * <code>INPROGRESS</code>. <code>StartedAt</code> isn't available if the <code>BatchPrediction</code> is in * the <code>PENDING</code> state. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withStartedAt(java.util.Date startedAt) { setStartedAt(startedAt); return this; } /** * <p> * The number of total records that Amazon Machine Learning saw while processing the <code>BatchPrediction</code>. * </p> * * @param totalRecordCount * The number of total records that Amazon Machine Learning saw while processing the * <code>BatchPrediction</code>. */ public void setTotalRecordCount(Long totalRecordCount) { this.totalRecordCount = totalRecordCount; } /** * <p> * The number of total records that Amazon Machine Learning saw while processing the <code>BatchPrediction</code>. * </p> * * @return The number of total records that Amazon Machine Learning saw while processing the * <code>BatchPrediction</code>. */ public Long getTotalRecordCount() { return this.totalRecordCount; } /** * <p> * The number of total records that Amazon Machine Learning saw while processing the <code>BatchPrediction</code>. * </p> * * @param totalRecordCount * The number of total records that Amazon Machine Learning saw while processing the * <code>BatchPrediction</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withTotalRecordCount(Long totalRecordCount) { setTotalRecordCount(totalRecordCount); return this; } /** * <p> * The number of invalid records that Amazon Machine Learning saw while processing the <code>BatchPrediction</code>. * </p> * * @param invalidRecordCount * The number of invalid records that Amazon Machine Learning saw while processing the * <code>BatchPrediction</code>. */ public void setInvalidRecordCount(Long invalidRecordCount) { this.invalidRecordCount = invalidRecordCount; } /** * <p> * The number of invalid records that Amazon Machine Learning saw while processing the <code>BatchPrediction</code>. * </p> * * @return The number of invalid records that Amazon Machine Learning saw while processing the * <code>BatchPrediction</code>. */ public Long getInvalidRecordCount() { return this.invalidRecordCount; } /** * <p> * The number of invalid records that Amazon Machine Learning saw while processing the <code>BatchPrediction</code>. * </p> * * @param invalidRecordCount * The number of invalid records that Amazon Machine Learning saw while processing the * <code>BatchPrediction</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public GetBatchPredictionResult withInvalidRecordCount(Long invalidRecordCount) { setInvalidRecordCount(invalidRecordCount); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getBatchPredictionId() != null) sb.append("BatchPredictionId: ").append(getBatchPredictionId()).append(","); if (getMLModelId() != null) sb.append("MLModelId: ").append(getMLModelId()).append(","); if (getBatchPredictionDataSourceId() != null) sb.append("BatchPredictionDataSourceId: ").append(getBatchPredictionDataSourceId()).append(","); if (getInputDataLocationS3() != null) sb.append("InputDataLocationS3: ").append(getInputDataLocationS3()).append(","); if (getCreatedByIamUser() != null) sb.append("CreatedByIamUser: ").append(getCreatedByIamUser()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getOutputUri() != null) sb.append("OutputUri: ").append(getOutputUri()).append(","); if (getLogUri() != null) sb.append("LogUri: ").append(getLogUri()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getComputeTime() != null) sb.append("ComputeTime: ").append(getComputeTime()).append(","); if (getFinishedAt() != null) sb.append("FinishedAt: ").append(getFinishedAt()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(","); if (getTotalRecordCount() != null) sb.append("TotalRecordCount: ").append(getTotalRecordCount()).append(","); if (getInvalidRecordCount() != null) sb.append("InvalidRecordCount: ").append(getInvalidRecordCount()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetBatchPredictionResult == false) return false; GetBatchPredictionResult other = (GetBatchPredictionResult) obj; if (other.getBatchPredictionId() == null ^ this.getBatchPredictionId() == null) return false; if (other.getBatchPredictionId() != null && other.getBatchPredictionId().equals(this.getBatchPredictionId()) == false) return false; if (other.getMLModelId() == null ^ this.getMLModelId() == null) return false; if (other.getMLModelId() != null && other.getMLModelId().equals(this.getMLModelId()) == false) return false; if (other.getBatchPredictionDataSourceId() == null ^ this.getBatchPredictionDataSourceId() == null) return false; if (other.getBatchPredictionDataSourceId() != null && other.getBatchPredictionDataSourceId().equals(this.getBatchPredictionDataSourceId()) == false) return false; if (other.getInputDataLocationS3() == null ^ this.getInputDataLocationS3() == null) return false; if (other.getInputDataLocationS3() != null && other.getInputDataLocationS3().equals(this.getInputDataLocationS3()) == false) return false; if (other.getCreatedByIamUser() == null ^ this.getCreatedByIamUser() == null) return false; if (other.getCreatedByIamUser() != null && other.getCreatedByIamUser().equals(this.getCreatedByIamUser()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getOutputUri() == null ^ this.getOutputUri() == null) return false; if (other.getOutputUri() != null && other.getOutputUri().equals(this.getOutputUri()) == false) return false; if (other.getLogUri() == null ^ this.getLogUri() == null) return false; if (other.getLogUri() != null && other.getLogUri().equals(this.getLogUri()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getComputeTime() == null ^ this.getComputeTime() == null) return false; if (other.getComputeTime() != null && other.getComputeTime().equals(this.getComputeTime()) == false) return false; if (other.getFinishedAt() == null ^ this.getFinishedAt() == null) return false; if (other.getFinishedAt() != null && other.getFinishedAt().equals(this.getFinishedAt()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null) return false; if (other.getStartedAt() != null && other.getStartedAt().equals(this.getStartedAt()) == false) return false; if (other.getTotalRecordCount() == null ^ this.getTotalRecordCount() == null) return false; if (other.getTotalRecordCount() != null && other.getTotalRecordCount().equals(this.getTotalRecordCount()) == false) return false; if (other.getInvalidRecordCount() == null ^ this.getInvalidRecordCount() == null) return false; if (other.getInvalidRecordCount() != null && other.getInvalidRecordCount().equals(this.getInvalidRecordCount()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBatchPredictionId() == null) ? 0 : getBatchPredictionId().hashCode()); hashCode = prime * hashCode + ((getMLModelId() == null) ? 0 : getMLModelId().hashCode()); hashCode = prime * hashCode + ((getBatchPredictionDataSourceId() == null) ? 0 : getBatchPredictionDataSourceId().hashCode()); hashCode = prime * hashCode + ((getInputDataLocationS3() == null) ? 0 : getInputDataLocationS3().hashCode()); hashCode = prime * hashCode + ((getCreatedByIamUser() == null) ? 0 : getCreatedByIamUser().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getOutputUri() == null) ? 0 : getOutputUri().hashCode()); hashCode = prime * hashCode + ((getLogUri() == null) ? 0 : getLogUri().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getComputeTime() == null) ? 0 : getComputeTime().hashCode()); hashCode = prime * hashCode + ((getFinishedAt() == null) ? 0 : getFinishedAt().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getTotalRecordCount() == null) ? 0 : getTotalRecordCount().hashCode()); hashCode = prime * hashCode + ((getInvalidRecordCount() == null) ? 0 : getInvalidRecordCount().hashCode()); return hashCode; } @Override public GetBatchPredictionResult clone() { try { return (GetBatchPredictionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }