/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the comprehend-2017-11-27.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Comprehend.Model
{
///
/// Container for the parameters to the CreateDataset operation.
/// Creates a dataset to upload training or test data for a model associated with a flywheel.
/// For more information about datasets, see
/// Flywheel overview in the Amazon Comprehend Developer Guide.
///
public partial class CreateDatasetRequest : AmazonComprehendRequest
{
private string _clientRequestToken;
private string _datasetName;
private DatasetType _datasetType;
private string _description;
private string _flywheelArn;
private DatasetInputDataConfig _inputDataConfig;
private List _tags = new List();
///
/// Gets and sets the property ClientRequestToken.
///
/// A unique identifier for the request. If you don't set the client request token, Amazon
/// Comprehend generates one.
///
///
[AWSProperty(Min=1, Max=64)]
public string ClientRequestToken
{
get { return this._clientRequestToken; }
set { this._clientRequestToken = value; }
}
// Check to see if ClientRequestToken property is set
internal bool IsSetClientRequestToken()
{
return this._clientRequestToken != null;
}
///
/// Gets and sets the property DatasetName.
///
/// Name of the dataset.
///
///
[AWSProperty(Required=true, Max=63)]
public string DatasetName
{
get { return this._datasetName; }
set { this._datasetName = value; }
}
// Check to see if DatasetName property is set
internal bool IsSetDatasetName()
{
return this._datasetName != null;
}
///
/// Gets and sets the property DatasetType.
///
/// The dataset type. You can specify that the data in a dataset is for training the model
/// or for testing the model.
///
///
public DatasetType DatasetType
{
get { return this._datasetType; }
set { this._datasetType = value; }
}
// Check to see if DatasetType property is set
internal bool IsSetDatasetType()
{
return this._datasetType != null;
}
///
/// Gets and sets the property Description.
///
/// Description of the dataset.
///
///
[AWSProperty(Max=2048)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property FlywheelArn.
///
/// The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive the data.
///
///
[AWSProperty(Required=true, Max=256)]
public string FlywheelArn
{
get { return this._flywheelArn; }
set { this._flywheelArn = value; }
}
// Check to see if FlywheelArn property is set
internal bool IsSetFlywheelArn()
{
return this._flywheelArn != null;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Required=true)]
public DatasetInputDataConfig InputDataConfig
{
get { return this._inputDataConfig; }
set { this._inputDataConfig = value; }
}
// Check to see if InputDataConfig property is set
internal bool IsSetInputDataConfig()
{
return this._inputDataConfig != null;
}
///
/// Gets and sets the property Tags.
///
/// Tags for the dataset.
///
///
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}