/* * Copyright 2018-2023 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.personalize.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Contains information on a batch inference job. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BatchInferenceJob implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the batch inference job. *

*/ private String jobName; /** *

* The Amazon Resource Name (ARN) of the batch inference job. *

*/ private String batchInferenceJobArn; /** *

* The ARN of the filter used on the batch inference job. *

*/ private String filterArn; /** *

* If the batch inference job failed, the reason for the failure. *

*/ private String failureReason; /** *

* The Amazon Resource Name (ARN) of the solution version from which the batch inference job was created. *

*/ private String solutionVersionArn; /** *

* The number of recommendations generated by the batch inference job. This number includes the error messages * generated for failed input records. *

*/ private Integer numResults; /** *

* The Amazon S3 path that leads to the input data used to generate the batch inference job. *

*/ private BatchInferenceJobInput jobInput; /** *

* The Amazon S3 bucket that contains the output data generated by the batch inference job. *

*/ private BatchInferenceJobOutput jobOutput; /** *

* A string to string map of the configuration details of a batch inference job. *

*/ private BatchInferenceJobConfig batchInferenceJobConfig; /** *

* The ARN of the Amazon Identity and Access Management (IAM) role that requested the batch inference job. *

*/ private String roleArn; /** *

* The status of the batch inference job. The status is one of the following values: *

* */ private String status; /** *

* The time at which the batch inference job was created. *

*/ private java.util.Date creationDateTime; /** *

* The time at which the batch inference job was last updated. *

*/ private java.util.Date lastUpdatedDateTime; /** *

* The name of the batch inference job. *

* * @param jobName * The name of the batch inference job. */ public void setJobName(String jobName) { this.jobName = jobName; } /** *

* The name of the batch inference job. *

* * @return The name of the batch inference job. */ public String getJobName() { return this.jobName; } /** *

* The name of the batch inference job. *

* * @param jobName * The name of the batch inference job. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchInferenceJob withJobName(String jobName) { setJobName(jobName); return this; } /** *

* The Amazon Resource Name (ARN) of the batch inference job. *

* * @param batchInferenceJobArn * The Amazon Resource Name (ARN) of the batch inference job. */ public void setBatchInferenceJobArn(String batchInferenceJobArn) { this.batchInferenceJobArn = batchInferenceJobArn; } /** *

* The Amazon Resource Name (ARN) of the batch inference job. *

* * @return The Amazon Resource Name (ARN) of the batch inference job. */ public String getBatchInferenceJobArn() { return this.batchInferenceJobArn; } /** *

* The Amazon Resource Name (ARN) of the batch inference job. *

* * @param batchInferenceJobArn * The Amazon Resource Name (ARN) of the batch inference job. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchInferenceJob withBatchInferenceJobArn(String batchInferenceJobArn) { setBatchInferenceJobArn(batchInferenceJobArn); return this; } /** *

* The ARN of the filter used on the batch inference job. *

* * @param filterArn * The ARN of the filter used on the batch inference job. */ public void setFilterArn(String filterArn) { this.filterArn = filterArn; } /** *

* The ARN of the filter used on the batch inference job. *

* * @return The ARN of the filter used on the batch inference job. */ public String getFilterArn() { return this.filterArn; } /** *

* The ARN of the filter used on the batch inference job. *

* * @param filterArn * The ARN of the filter used on the batch inference job. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchInferenceJob withFilterArn(String filterArn) { setFilterArn(filterArn); return this; } /** *

* If the batch inference job failed, the reason for the failure. *

* * @param failureReason * If the batch inference job failed, the reason for the failure. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** *

* If the batch inference job failed, the reason for the failure. *

* * @return If the batch inference job failed, the reason for the failure. */ public String getFailureReason() { return this.failureReason; } /** *

* If the batch inference job failed, the reason for the failure. *

* * @param failureReason * If the batch inference job failed, the reason for the failure. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchInferenceJob withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** *

* The Amazon Resource Name (ARN) of the solution version from which the batch inference job was created. *

* * @param solutionVersionArn * The Amazon Resource Name (ARN) of the solution version from which the batch inference job was created. */ public void setSolutionVersionArn(String solutionVersionArn) { this.solutionVersionArn = solutionVersionArn; } /** *

* The Amazon Resource Name (ARN) of the solution version from which the batch inference job was created. *

* * @return The Amazon Resource Name (ARN) of the solution version from which the batch inference job was created. */ public String getSolutionVersionArn() { return this.solutionVersionArn; } /** *

* The Amazon Resource Name (ARN) of the solution version from which the batch inference job was created. *

* * @param solutionVersionArn * The Amazon Resource Name (ARN) of the solution version from which the batch inference job was created. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchInferenceJob withSolutionVersionArn(String solutionVersionArn) { setSolutionVersionArn(solutionVersionArn); return this; } /** *

* The number of recommendations generated by the batch inference job. This number includes the error messages * generated for failed input records. *

* * @param numResults * The number of recommendations generated by the batch inference job. This number includes the error * messages generated for failed input records. */ public void setNumResults(Integer numResults) { this.numResults = numResults; } /** *

* The number of recommendations generated by the batch inference job. This number includes the error messages * generated for failed input records. *

* * @return The number of recommendations generated by the batch inference job. This number includes the error * messages generated for failed input records. */ public Integer getNumResults() { return this.numResults; } /** *

* The number of recommendations generated by the batch inference job. This number includes the error messages * generated for failed input records. *

* * @param numResults * The number of recommendations generated by the batch inference job. This number includes the error * messages generated for failed input records. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchInferenceJob withNumResults(Integer numResults) { setNumResults(numResults); return this; } /** *

* The Amazon S3 path that leads to the input data used to generate the batch inference job. *

* * @param jobInput * The Amazon S3 path that leads to the input data used to generate the batch inference job. */ public void setJobInput(BatchInferenceJobInput jobInput) { this.jobInput = jobInput; } /** *

* The Amazon S3 path that leads to the input data used to generate the batch inference job. *

* * @return The Amazon S3 path that leads to the input data used to generate the batch inference job. */ public BatchInferenceJobInput getJobInput() { return this.jobInput; } /** *

* The Amazon S3 path that leads to the input data used to generate the batch inference job. *

* * @param jobInput * The Amazon S3 path that leads to the input data used to generate the batch inference job. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchInferenceJob withJobInput(BatchInferenceJobInput jobInput) { setJobInput(jobInput); return this; } /** *

* The Amazon S3 bucket that contains the output data generated by the batch inference job. *

* * @param jobOutput * The Amazon S3 bucket that contains the output data generated by the batch inference job. */ public void setJobOutput(BatchInferenceJobOutput jobOutput) { this.jobOutput = jobOutput; } /** *

* The Amazon S3 bucket that contains the output data generated by the batch inference job. *

* * @return The Amazon S3 bucket that contains the output data generated by the batch inference job. */ public BatchInferenceJobOutput getJobOutput() { return this.jobOutput; } /** *

* The Amazon S3 bucket that contains the output data generated by the batch inference job. *

* * @param jobOutput * The Amazon S3 bucket that contains the output data generated by the batch inference job. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchInferenceJob withJobOutput(BatchInferenceJobOutput jobOutput) { setJobOutput(jobOutput); return this; } /** *

* A string to string map of the configuration details of a batch inference job. *

* * @param batchInferenceJobConfig * A string to string map of the configuration details of a batch inference job. */ public void setBatchInferenceJobConfig(BatchInferenceJobConfig batchInferenceJobConfig) { this.batchInferenceJobConfig = batchInferenceJobConfig; } /** *

* A string to string map of the configuration details of a batch inference job. *

* * @return A string to string map of the configuration details of a batch inference job. */ public BatchInferenceJobConfig getBatchInferenceJobConfig() { return this.batchInferenceJobConfig; } /** *

* A string to string map of the configuration details of a batch inference job. *

* * @param batchInferenceJobConfig * A string to string map of the configuration details of a batch inference job. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchInferenceJob withBatchInferenceJobConfig(BatchInferenceJobConfig batchInferenceJobConfig) { setBatchInferenceJobConfig(batchInferenceJobConfig); return this; } /** *

* The ARN of the Amazon Identity and Access Management (IAM) role that requested the batch inference job. *

* * @param roleArn * The ARN of the Amazon Identity and Access Management (IAM) role that requested the batch inference job. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The ARN of the Amazon Identity and Access Management (IAM) role that requested the batch inference job. *

* * @return The ARN of the Amazon Identity and Access Management (IAM) role that requested the batch inference job. */ public String getRoleArn() { return this.roleArn; } /** *

* The ARN of the Amazon Identity and Access Management (IAM) role that requested the batch inference job. *

* * @param roleArn * The ARN of the Amazon Identity and Access Management (IAM) role that requested the batch inference job. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchInferenceJob withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* The status of the batch inference job. The status is one of the following values: *

* * * @param status * The status of the batch inference job. The status is one of the following values:

*