/* * 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 CreateSolutionVersion operation. /// Trains or retrains an active solution in a Custom dataset group. A solution is created /// using the CreateSolution /// operation and must be in the ACTIVE state before calling CreateSolutionVersion. /// A new version of the solution is created every time you call this operation. /// /// /// /// Status /// /// /// /// A solution version can be in one of the following states: /// /// /// /// To get the status of the version, call DescribeSolutionVersion. /// Wait until the status shows as ACTIVE before calling CreateCampaign. /// /// /// /// If the status shows as CREATE FAILED, the response includes a failureReason /// key, which describes why the job failed. /// ///

Related APIs /// ///

///
public partial class CreateSolutionVersionRequest : AmazonPersonalizeRequest { private string _name; private string _solutionArn; private List _tags = new List(); private TrainingMode _trainingMode; /// /// Gets and sets the property Name. /// /// The name of the solution version. /// /// [AWSProperty(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 SolutionArn. /// /// The Amazon Resource Name (ARN) of the solution containing the training configuration /// information. /// /// [AWSProperty(Required=true, Max=256)] public string SolutionArn { get { return this._solutionArn; } set { this._solutionArn = value; } } // Check to see if SolutionArn property is set internal bool IsSetSolutionArn() { return this._solutionArn != null; } /// /// Gets and sets the property Tags. /// /// A list of tags /// to apply to the solution version. /// /// [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; } /// /// Gets and sets the property TrainingMode. /// /// The scope of training to be performed when creating the solution version. The FULL /// option trains the solution version based on the entirety of the input solution's training /// data, while the UPDATE option processes only the data that has changed /// in comparison to the input solution. Choose UPDATE when you want to incrementally /// update your solution version instead of creating an entirely new one. /// /// /// /// The UPDATE option can only be used when you already have an active solution /// version created from the input solution using the FULL option and the /// input solution was trained with the User-Personalization /// recipe or the HRNN-Coldstart /// recipe. /// /// /// public TrainingMode TrainingMode { get { return this._trainingMode; } set { this._trainingMode = value; } } // Check to see if TrainingMode property is set internal bool IsSetTrainingMode() { return this._trainingMode != null; } } }