/* * 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; /** *

* Describes a job that imports training data from a data source (Amazon S3 bucket) to an Amazon Personalize dataset. * For more information, see CreateDatasetImportJob. *

*

* A dataset ACTIVE -or- CREATE FAILED *

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

* The name of the import job. *

*/ private String jobName; /** *

* The ARN of the dataset import job. *

*/ private String datasetImportJobArn; /** *

* The Amazon Resource Name (ARN) of the dataset that receives the imported data. *

*/ private String datasetArn; /** *

* The Amazon S3 bucket that contains the training data to import. *

*/ private DataSource dataSource; /** *

* The ARN of the IAM role that has permissions to read from the Amazon S3 data source. *

*/ private String roleArn; /** *

* The status of the dataset ACTIVE -or- CREATE FAILED *

* */ private String status; /** *

* The creation date and time (in Unix time) of the dataset import job. *

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

* The date and time (in Unix time) the dataset was last updated. *

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

* If a dataset import job fails, provides the reason why. *

*/ private String failureReason; /** *

* The import mode used by the dataset import job to import new records. *

*/ private String importMode; /** *

* Whether the job publishes metrics to Amazon S3 for a metric attribution. *

*/ private Boolean publishAttributionMetricsToS3; /** *

* The name of the import job. *

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

* The name of the import job. *

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

* The name of the import job. *

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

* The ARN of the dataset import job. *

* * @param datasetImportJobArn * The ARN of the dataset import job. */ public void setDatasetImportJobArn(String datasetImportJobArn) { this.datasetImportJobArn = datasetImportJobArn; } /** *

* The ARN of the dataset import job. *

* * @return The ARN of the dataset import job. */ public String getDatasetImportJobArn() { return this.datasetImportJobArn; } /** *

* The ARN of the dataset import job. *

* * @param datasetImportJobArn * The ARN of the dataset import job. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetImportJob withDatasetImportJobArn(String datasetImportJobArn) { setDatasetImportJobArn(datasetImportJobArn); return this; } /** *

* The Amazon Resource Name (ARN) of the dataset that receives the imported data. *

* * @param datasetArn * The Amazon Resource Name (ARN) of the dataset that receives the imported data. */ public void setDatasetArn(String datasetArn) { this.datasetArn = datasetArn; } /** *

* The Amazon Resource Name (ARN) of the dataset that receives the imported data. *

* * @return The Amazon Resource Name (ARN) of the dataset that receives the imported data. */ public String getDatasetArn() { return this.datasetArn; } /** *

* The Amazon Resource Name (ARN) of the dataset that receives the imported data. *

* * @param datasetArn * The Amazon Resource Name (ARN) of the dataset that receives the imported data. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetImportJob withDatasetArn(String datasetArn) { setDatasetArn(datasetArn); return this; } /** *

* The Amazon S3 bucket that contains the training data to import. *

* * @param dataSource * The Amazon S3 bucket that contains the training data to import. */ public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; } /** *

* The Amazon S3 bucket that contains the training data to import. *

* * @return The Amazon S3 bucket that contains the training data to import. */ public DataSource getDataSource() { return this.dataSource; } /** *

* The Amazon S3 bucket that contains the training data to import. *

* * @param dataSource * The Amazon S3 bucket that contains the training data to import. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetImportJob withDataSource(DataSource dataSource) { setDataSource(dataSource); return this; } /** *

* The ARN of the IAM role that has permissions to read from the Amazon S3 data source. *

* * @param roleArn * The ARN of the IAM role that has permissions to read from the Amazon S3 data source. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The ARN of the IAM role that has permissions to read from the Amazon S3 data source. *

* * @return The ARN of the IAM role that has permissions to read from the Amazon S3 data source. */ public String getRoleArn() { return this.roleArn; } /** *

* The ARN of the IAM role that has permissions to read from the Amazon S3 data source. *

* * @param roleArn * The ARN of the IAM role that has permissions to read from the Amazon S3 data source. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetImportJob withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* The status of the dataset import job. *

*

* A dataset import job can be in one of the following states: *

* * * @param status * The status of the dataset import job.

*

* A dataset import job can be in one of the following states: *

*