/* * 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 exports a dataset to an Amazon S3 bucket. For more information, see CreateDatasetExportJob. *

*

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

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

* The name of the export job. *

*/ private String jobName; /** *

* The Amazon Resource Name (ARN) of the dataset export job. *

*/ private String datasetExportJobArn; /** *

* The Amazon Resource Name (ARN) of the dataset to export. *

*/ private String datasetArn; /** *

* The data to export, based on how you imported the data. You can choose to export BULK data that you * imported using a dataset import job, PUT data that you imported incrementally (using the console, * PutEvents, PutUsers and PutItems operations), or ALL for both types. The default value is * PUT. *

*/ private String ingestionMode; /** *

* The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your output Amazon S3 * bucket. *

*/ private String roleArn; /** *

* The status of the dataset export job. *

*

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

* */ private String status; /** *

* The path to the Amazon S3 bucket where the job's output is stored. For example: *

*

* s3://bucket-name/folder-name/ *

*/ private DatasetExportJobOutput jobOutput; /** *

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

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

* The date and time (in Unix time) the status of the dataset export job was last updated. *

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

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

*/ private String failureReason; /** *

* The name of the export job. *

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

* The name of the export job. *

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

* The name of the export job. *

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

* The Amazon Resource Name (ARN) of the dataset export job. *

* * @param datasetExportJobArn * The Amazon Resource Name (ARN) of the dataset export job. */ public void setDatasetExportJobArn(String datasetExportJobArn) { this.datasetExportJobArn = datasetExportJobArn; } /** *

* The Amazon Resource Name (ARN) of the dataset export job. *

* * @return The Amazon Resource Name (ARN) of the dataset export job. */ public String getDatasetExportJobArn() { return this.datasetExportJobArn; } /** *

* The Amazon Resource Name (ARN) of the dataset export job. *

* * @param datasetExportJobArn * The Amazon Resource Name (ARN) of the dataset export job. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetExportJob withDatasetExportJobArn(String datasetExportJobArn) { setDatasetExportJobArn(datasetExportJobArn); return this; } /** *

* The Amazon Resource Name (ARN) of the dataset to export. *

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

* The Amazon Resource Name (ARN) of the dataset to export. *

* * @return The Amazon Resource Name (ARN) of the dataset to export. */ public String getDatasetArn() { return this.datasetArn; } /** *

* The Amazon Resource Name (ARN) of the dataset to export. *

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

* The data to export, based on how you imported the data. You can choose to export BULK data that you * imported using a dataset import job, PUT data that you imported incrementally (using the console, * PutEvents, PutUsers and PutItems operations), or ALL for both types. The default value is * PUT. *

* * @param ingestionMode * The data to export, based on how you imported the data. You can choose to export BULK data * that you imported using a dataset import job, PUT data that you imported incrementally (using * the console, PutEvents, PutUsers and PutItems operations), or ALL for both types. The default * value is PUT. * @see IngestionMode */ public void setIngestionMode(String ingestionMode) { this.ingestionMode = ingestionMode; } /** *

* The data to export, based on how you imported the data. You can choose to export BULK data that you * imported using a dataset import job, PUT data that you imported incrementally (using the console, * PutEvents, PutUsers and PutItems operations), or ALL for both types. The default value is * PUT. *

* * @return The data to export, based on how you imported the data. You can choose to export BULK data * that you imported using a dataset import job, PUT data that you imported incrementally * (using the console, PutEvents, PutUsers and PutItems operations), or ALL for both types. The * default value is PUT. * @see IngestionMode */ public String getIngestionMode() { return this.ingestionMode; } /** *

* The data to export, based on how you imported the data. You can choose to export BULK data that you * imported using a dataset import job, PUT data that you imported incrementally (using the console, * PutEvents, PutUsers and PutItems operations), or ALL for both types. The default value is * PUT. *

* * @param ingestionMode * The data to export, based on how you imported the data. You can choose to export BULK data * that you imported using a dataset import job, PUT data that you imported incrementally (using * the console, PutEvents, PutUsers and PutItems operations), or ALL for both types. The default * value is PUT. * @return Returns a reference to this object so that method calls can be chained together. * @see IngestionMode */ public DatasetExportJob withIngestionMode(String ingestionMode) { setIngestionMode(ingestionMode); return this; } /** *

* The data to export, based on how you imported the data. You can choose to export BULK data that you * imported using a dataset import job, PUT data that you imported incrementally (using the console, * PutEvents, PutUsers and PutItems operations), or ALL for both types. The default value is * PUT. *

* * @param ingestionMode * The data to export, based on how you imported the data. You can choose to export BULK data * that you imported using a dataset import job, PUT data that you imported incrementally (using * the console, PutEvents, PutUsers and PutItems operations), or ALL for both types. The default * value is PUT. * @return Returns a reference to this object so that method calls can be chained together. * @see IngestionMode */ public DatasetExportJob withIngestionMode(IngestionMode ingestionMode) { this.ingestionMode = ingestionMode.toString(); return this; } /** *

* The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your output Amazon S3 * bucket. *

* * @param roleArn * The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your output * Amazon S3 bucket. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your output Amazon S3 * bucket. *

* * @return The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your output * Amazon S3 bucket. */ public String getRoleArn() { return this.roleArn; } /** *

* The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your output Amazon S3 * bucket. *

* * @param roleArn * The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your output * Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetExportJob withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* The status of the dataset export job. *

*

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

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

*

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

*