/* * 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 personalize-2018-05-22.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.Personalize.Model { /// /// Container for the parameters to the CreateDataset operation. /// Creates an empty dataset and adds it to the specified dataset group. Use CreateDatasetImportJob /// to import your training data to a dataset. /// /// /// /// There are three types of datasets: /// /// /// /// Each dataset type has an associated schema with required field types. Only the Interactions /// dataset is required in order to train a model (also referred to as creating a solution). /// /// /// /// A dataset can be in one of the following states: /// /// /// /// To get the status of the dataset, call DescribeDataset. /// ///

Related APIs /// ///

///
public partial class CreateDatasetRequest : AmazonPersonalizeRequest { private string _datasetGroupArn; private string _datasetType; private string _name; private string _schemaArn; private List _tags = new List(); /// /// Gets and sets the property DatasetGroupArn. /// /// The Amazon Resource Name (ARN) of the dataset group to add the dataset to. /// /// [AWSProperty(Required=true, Max=256)] public string DatasetGroupArn { get { return this._datasetGroupArn; } set { this._datasetGroupArn = value; } } // Check to see if DatasetGroupArn property is set internal bool IsSetDatasetGroupArn() { return this._datasetGroupArn != null; } /// /// Gets and sets the property DatasetType. /// /// The type of dataset. /// /// /// /// One of the following (case insensitive) values: /// ///
  • /// /// Interactions /// ///
  • /// /// Items /// ///
  • /// /// Users /// ///
///
[AWSProperty(Required=true, Max=256)] public string 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 Name. /// /// The name for the dataset. /// /// [AWSProperty(Required=true, Min=1, Max=63)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property SchemaArn. /// /// The ARN of the schema to associate with the dataset. The schema defines the dataset /// fields. /// /// [AWSProperty(Required=true, Max=256)] public string SchemaArn { get { return this._schemaArn; } set { this._schemaArn = value; } } // Check to see if SchemaArn property is set internal bool IsSetSchemaArn() { return this._schemaArn != null; } /// /// Gets and sets the property Tags. /// /// A list of tags /// to apply to the dataset. /// /// [AWSProperty(Min=0, Max=200)] 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; } } }