/*
* 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
{
///
/// An object that provides information about a solution. A solution is a trained model
/// that can be deployed as a campaign.
///
public partial class Solution
{
private AutoMLResult _automlResult;
private DateTime? _creationDateTime;
private string _datasetGroupArn;
private string _eventType;
private DateTime? _lastUpdatedDateTime;
private SolutionVersionSummary _latestSolutionVersion;
private string _name;
private bool? _performAutoML;
private bool? _performhpo;
private string _recipeArn;
private string _solutionArn;
private SolutionConfig _solutionConfig;
private string _status;
///
/// Gets and sets the property AutoMLResult.
///
/// When performAutoML
is true, specifies the best recipe found.
///
///
public AutoMLResult AutoMLResult
{
get { return this._automlResult; }
set { this._automlResult = value; }
}
// Check to see if AutoMLResult property is set
internal bool IsSetAutoMLResult()
{
return this._automlResult != null;
}
///
/// Gets and sets the property CreationDateTime.
///
/// The creation date and time (in Unix time) of the solution.
///
///
public DateTime CreationDateTime
{
get { return this._creationDateTime.GetValueOrDefault(); }
set { this._creationDateTime = value; }
}
// Check to see if CreationDateTime property is set
internal bool IsSetCreationDateTime()
{
return this._creationDateTime.HasValue;
}
///
/// Gets and sets the property DatasetGroupArn.
///
/// The Amazon Resource Name (ARN) of the dataset group that provides the training data.
///
///
[AWSProperty(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 EventType.
///
/// The event type (for example, 'click' or 'like') that is used for training the model.
/// If no eventType
is provided, Amazon Personalize uses all interactions
/// for training with equal weight regardless of type.
///
///
[AWSProperty(Max=256)]
public string EventType
{
get { return this._eventType; }
set { this._eventType = value; }
}
// Check to see if EventType property is set
internal bool IsSetEventType()
{
return this._eventType != null;
}
///
/// Gets and sets the property LastUpdatedDateTime.
///
/// The date and time (in Unix time) that the solution was last updated.
///
///
public DateTime LastUpdatedDateTime
{
get { return this._lastUpdatedDateTime.GetValueOrDefault(); }
set { this._lastUpdatedDateTime = value; }
}
// Check to see if LastUpdatedDateTime property is set
internal bool IsSetLastUpdatedDateTime()
{
return this._lastUpdatedDateTime.HasValue;
}
///
/// Gets and sets the property LatestSolutionVersion.
///
/// Describes the latest version of the solution, including the status and the ARN.
///
///
public SolutionVersionSummary LatestSolutionVersion
{
get { return this._latestSolutionVersion; }
set { this._latestSolutionVersion = value; }
}
// Check to see if LatestSolutionVersion property is set
internal bool IsSetLatestSolutionVersion()
{
return this._latestSolutionVersion != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the solution.
///
///
[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 PerformAutoML.
///
/// We don't recommend enabling automated machine learning. Instead, match your use case
/// to the available Amazon Personalize recipes. For more information, see Determining
/// your use case.
///
///
///
/// When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION
/// recipe from the list specified in the solution configuration (recipeArn
/// must not be specified). When false (the default), Amazon Personalize uses recipeArn
/// for training.
///
///
public bool PerformAutoML
{
get { return this._performAutoML.GetValueOrDefault(); }
set { this._performAutoML = value; }
}
// Check to see if PerformAutoML property is set
internal bool IsSetPerformAutoML()
{
return this._performAutoML.HasValue;
}
///
/// Gets and sets the property PerformHPO.
///
/// Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default
/// is false
.
///
///
public bool PerformHPO
{
get { return this._performhpo.GetValueOrDefault(); }
set { this._performhpo = value; }
}
// Check to see if PerformHPO property is set
internal bool IsSetPerformHPO()
{
return this._performhpo.HasValue;
}
///
/// Gets and sets the property RecipeArn.
///
/// The ARN of the recipe used to create the solution. This is required when performAutoML
/// is false.
///
///
[AWSProperty(Max=256)]
public string RecipeArn
{
get { return this._recipeArn; }
set { this._recipeArn = value; }
}
// Check to see if RecipeArn property is set
internal bool IsSetRecipeArn()
{
return this._recipeArn != null;
}
///
/// Gets and sets the property SolutionArn.
///
/// The ARN of the solution.
///
///
[AWSProperty(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 SolutionConfig.
///
/// Describes the configuration properties for the solution.
///
///
public SolutionConfig SolutionConfig
{
get { return this._solutionConfig; }
set { this._solutionConfig = value; }
}
// Check to see if SolutionConfig property is set
internal bool IsSetSolutionConfig()
{
return this._solutionConfig != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the solution.
///
///
///
/// A solution can be in one of the following states:
///
/// -
///
/// CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
///
///
-
///
/// DELETE PENDING > DELETE IN_PROGRESS
///
///
///
[AWSProperty(Max=256)]
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}