/* * 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.comprehend.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateDatasetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data. *
*/ private String flywheelArn; /** ** Name of the dataset. *
*/ private String datasetName; /** ** The dataset type. You can specify that the data in a dataset is for training the model or for testing the model. *
*/ private String datasetType; /** ** Description of the dataset. *
*/ private String description; /** ** Information about the input data configuration. The type of input data varies based on the format of the input * and whether the data is for a classifier model or an entity recognition model. *
*/ private DatasetInputDataConfig inputDataConfig; /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one. *
*/ private String clientRequestToken; /** ** Tags for the dataset. *
*/ private java.util.List* The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data. *
* * @param flywheelArn * The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data. */ public void setFlywheelArn(String flywheelArn) { this.flywheelArn = flywheelArn; } /** ** The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data. *
* * @return The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data. */ public String getFlywheelArn() { return this.flywheelArn; } /** ** The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data. *
* * @param flywheelArn * The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withFlywheelArn(String flywheelArn) { setFlywheelArn(flywheelArn); return this; } /** ** Name of the dataset. *
* * @param datasetName * Name of the dataset. */ public void setDatasetName(String datasetName) { this.datasetName = datasetName; } /** ** Name of the dataset. *
* * @return Name of the dataset. */ public String getDatasetName() { return this.datasetName; } /** ** Name of the dataset. *
* * @param datasetName * Name of the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withDatasetName(String datasetName) { setDatasetName(datasetName); return this; } /** ** The dataset type. You can specify that the data in a dataset is for training the model or for testing the model. *
* * @param datasetType * The dataset type. You can specify that the data in a dataset is for training the model or for testing the * model. * @see DatasetType */ public void setDatasetType(String datasetType) { this.datasetType = datasetType; } /** ** The dataset type. You can specify that the data in a dataset is for training the model or for testing the model. *
* * @return The dataset type. You can specify that the data in a dataset is for training the model or for testing the * model. * @see DatasetType */ public String getDatasetType() { return this.datasetType; } /** ** The dataset type. You can specify that the data in a dataset is for training the model or for testing the model. *
* * @param datasetType * The dataset type. You can specify that the data in a dataset is for training the model or for testing the * model. * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetType */ public CreateDatasetRequest withDatasetType(String datasetType) { setDatasetType(datasetType); return this; } /** ** The dataset type. You can specify that the data in a dataset is for training the model or for testing the model. *
* * @param datasetType * The dataset type. You can specify that the data in a dataset is for training the model or for testing the * model. * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetType */ public CreateDatasetRequest withDatasetType(DatasetType datasetType) { this.datasetType = datasetType.toString(); return this; } /** ** Description of the dataset. *
* * @param description * Description of the dataset. */ public void setDescription(String description) { this.description = description; } /** ** Description of the dataset. *
* * @return Description of the dataset. */ public String getDescription() { return this.description; } /** ** Description of the dataset. *
* * @param description * Description of the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withDescription(String description) { setDescription(description); return this; } /** ** Information about the input data configuration. The type of input data varies based on the format of the input * and whether the data is for a classifier model or an entity recognition model. *
* * @param inputDataConfig * Information about the input data configuration. The type of input data varies based on the format of the * input and whether the data is for a classifier model or an entity recognition model. */ public void setInputDataConfig(DatasetInputDataConfig inputDataConfig) { this.inputDataConfig = inputDataConfig; } /** ** Information about the input data configuration. The type of input data varies based on the format of the input * and whether the data is for a classifier model or an entity recognition model. *
* * @return Information about the input data configuration. The type of input data varies based on the format of the * input and whether the data is for a classifier model or an entity recognition model. */ public DatasetInputDataConfig getInputDataConfig() { return this.inputDataConfig; } /** ** Information about the input data configuration. The type of input data varies based on the format of the input * and whether the data is for a classifier model or an entity recognition model. *
* * @param inputDataConfig * Information about the input data configuration. The type of input data varies based on the format of the * input and whether the data is for a classifier model or an entity recognition model. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withInputDataConfig(DatasetInputDataConfig inputDataConfig) { setInputDataConfig(inputDataConfig); return this; } /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one. *
* * @param clientRequestToken * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend * generates one. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one. *
* * @return A unique identifier for the request. If you don't set the client request token, Amazon Comprehend * generates one. */ public String getClientRequestToken() { return this.clientRequestToken; } /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one. *
* * @param clientRequestToken * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend * generates one. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** ** Tags for the dataset. *
* * @return Tags for the dataset. */ public java.util.List* Tags for the dataset. *
* * @param tags * Tags for the dataset. */ public void setTags(java.util.Collection* Tags for the dataset. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Tags for the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Tags for the dataset. *
* * @param tags * Tags for the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withTags(java.util.Collection