/* * 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 segment job. *

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

* The name of the batch segment job. *

*/ private String jobName; /** *

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

*/ private String batchSegmentJobArn; /** *

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

*/ private String filterArn; /** *

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

*/ private String failureReason; /** *

* The Amazon Resource Name (ARN) of the solution version used by the batch segment job to generate batch segments. *

*/ private String solutionVersionArn; /** *

* The number of predicted users generated by the batch segment job for each line of input data. The maximum number * of users per segment is 5 million. *

*/ private Integer numResults; /** *

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

*/ private BatchSegmentJobInput jobInput; /** *

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

*/ private BatchSegmentJobOutput jobOutput; /** *

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

*/ private String roleArn; /** *

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

* */ private String status; /** *

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

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

* The time at which the batch segment job last updated. *

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

* The name of the batch segment job. *

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

* The name of the batch segment job. *

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

* The name of the batch segment job. *

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

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

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

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

* * @return The Amazon Resource Name (ARN) of the batch segment job. */ public String getBatchSegmentJobArn() { return this.batchSegmentJobArn; } /** *

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

* * @param batchSegmentJobArn * The Amazon Resource Name (ARN) of the batch segment job. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchSegmentJob withBatchSegmentJobArn(String batchSegmentJobArn) { setBatchSegmentJobArn(batchSegmentJobArn); return this; } /** *

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

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

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

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

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

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

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

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

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

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

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

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

* The Amazon Resource Name (ARN) of the solution version used by the batch segment job to generate batch segments. *

* * @param solutionVersionArn * The Amazon Resource Name (ARN) of the solution version used by the batch segment job to generate batch * segments. */ public void setSolutionVersionArn(String solutionVersionArn) { this.solutionVersionArn = solutionVersionArn; } /** *

* The Amazon Resource Name (ARN) of the solution version used by the batch segment job to generate batch segments. *

* * @return The Amazon Resource Name (ARN) of the solution version used by the batch segment job to generate batch * segments. */ public String getSolutionVersionArn() { return this.solutionVersionArn; } /** *

* The Amazon Resource Name (ARN) of the solution version used by the batch segment job to generate batch segments. *

* * @param solutionVersionArn * The Amazon Resource Name (ARN) of the solution version used by the batch segment job to generate batch * segments. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchSegmentJob withSolutionVersionArn(String solutionVersionArn) { setSolutionVersionArn(solutionVersionArn); return this; } /** *

* The number of predicted users generated by the batch segment job for each line of input data. The maximum number * of users per segment is 5 million. *

* * @param numResults * The number of predicted users generated by the batch segment job for each line of input data. The maximum * number of users per segment is 5 million. */ public void setNumResults(Integer numResults) { this.numResults = numResults; } /** *

* The number of predicted users generated by the batch segment job for each line of input data. The maximum number * of users per segment is 5 million. *

* * @return The number of predicted users generated by the batch segment job for each line of input data. The maximum * number of users per segment is 5 million. */ public Integer getNumResults() { return this.numResults; } /** *

* The number of predicted users generated by the batch segment job for each line of input data. The maximum number * of users per segment is 5 million. *

* * @param numResults * The number of predicted users generated by the batch segment job for each line of input data. The maximum * number of users per segment is 5 million. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchSegmentJob withNumResults(Integer numResults) { setNumResults(numResults); return this; } /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*