/*
* 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 forecast-2018-06-26.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.ForecastService.Model
{
///
/// This is the response object from the DescribePredictor operation.
///
public partial class DescribePredictorResponse : AmazonWebServiceResponse
{
private string _algorithmArn;
private List _autoMLAlgorithmArns = new List();
private AutoMLOverrideStrategy _autoMLOverrideStrategy;
private DateTime? _creationTime;
private List _datasetImportJobArns = new List();
private EncryptionConfig _encryptionConfig;
private long? _estimatedTimeRemainingInMinutes;
private EvaluationParameters _evaluationParameters;
private FeaturizationConfig _featurizationConfig;
private int? _forecastHorizon;
private List _forecastTypes = new List();
private HyperParameterTuningJobConfig _hpoConfig;
private InputDataConfig _inputDataConfig;
private bool? _isAutoPredictor;
private DateTime? _lastModificationTime;
private string _message;
private OptimizationMetric _optimizationMetric;
private bool? _performAutoML;
private bool? _performHPO;
private string _predictorArn;
private PredictorExecutionDetails _predictorExecutionDetails;
private string _predictorName;
private string _status;
private Dictionary _trainingParameters = new Dictionary();
///
/// Gets and sets the property AlgorithmArn.
///
/// The Amazon Resource Name (ARN) of the algorithm used for model training.
///
///
[AWSProperty(Max=256)]
public string AlgorithmArn
{
get { return this._algorithmArn; }
set { this._algorithmArn = value; }
}
// Check to see if AlgorithmArn property is set
internal bool IsSetAlgorithmArn()
{
return this._algorithmArn != null;
}
///
/// Gets and sets the property AutoMLAlgorithmArns.
///
/// When PerformAutoML
is specified, the ARN of the chosen algorithm.
///
///
public List AutoMLAlgorithmArns
{
get { return this._autoMLAlgorithmArns; }
set { this._autoMLAlgorithmArns = value; }
}
// Check to see if AutoMLAlgorithmArns property is set
internal bool IsSetAutoMLAlgorithmArns()
{
return this._autoMLAlgorithmArns != null && this._autoMLAlgorithmArns.Count > 0;
}
///
/// Gets and sets the property AutoMLOverrideStrategy.
///
/// The LatencyOptimized
AutoML override strategy is only available in private
/// beta. Contact Amazon Web Services Support or your account manager to learn more about
/// access privileges.
///
///
///
/// The AutoML strategy used to train the predictor. Unless LatencyOptimized
/// is specified, the AutoML strategy optimizes predictor accuracy.
///
///
///
/// This parameter is only valid for predictors trained using AutoML.
///
///
public AutoMLOverrideStrategy AutoMLOverrideStrategy
{
get { return this._autoMLOverrideStrategy; }
set { this._autoMLOverrideStrategy = value; }
}
// Check to see if AutoMLOverrideStrategy property is set
internal bool IsSetAutoMLOverrideStrategy()
{
return this._autoMLOverrideStrategy != null;
}
///
/// Gets and sets the property CreationTime.
///
/// When the model training task was created.
///
///
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property DatasetImportJobArns.
///
/// An array of the ARNs of the dataset import jobs used to import training data for the
/// predictor.
///
///
public List DatasetImportJobArns
{
get { return this._datasetImportJobArns; }
set { this._datasetImportJobArns = value; }
}
// Check to see if DatasetImportJobArns property is set
internal bool IsSetDatasetImportJobArns()
{
return this._datasetImportJobArns != null && this._datasetImportJobArns.Count > 0;
}
///
/// Gets and sets the property EncryptionConfig.
///
/// An Key Management Service (KMS) key and the Identity and Access Management (IAM) role
/// that Amazon Forecast can assume to access the key.
///
///
public EncryptionConfig EncryptionConfig
{
get { return this._encryptionConfig; }
set { this._encryptionConfig = value; }
}
// Check to see if EncryptionConfig property is set
internal bool IsSetEncryptionConfig()
{
return this._encryptionConfig != null;
}
///
/// Gets and sets the property EstimatedTimeRemainingInMinutes.
///
/// The estimated time remaining in minutes for the predictor training job to complete.
///
///
public long EstimatedTimeRemainingInMinutes
{
get { return this._estimatedTimeRemainingInMinutes.GetValueOrDefault(); }
set { this._estimatedTimeRemainingInMinutes = value; }
}
// Check to see if EstimatedTimeRemainingInMinutes property is set
internal bool IsSetEstimatedTimeRemainingInMinutes()
{
return this._estimatedTimeRemainingInMinutes.HasValue;
}
///
/// Gets and sets the property EvaluationParameters.
///
/// Used to override the default evaluation parameters of the specified algorithm. Amazon
/// Forecast evaluates a predictor by splitting a dataset into training data and testing
/// data. The evaluation parameters define how to perform the split and the number of
/// iterations.
///
///
public EvaluationParameters EvaluationParameters
{
get { return this._evaluationParameters; }
set { this._evaluationParameters = value; }
}
// Check to see if EvaluationParameters property is set
internal bool IsSetEvaluationParameters()
{
return this._evaluationParameters != null;
}
///
/// Gets and sets the property FeaturizationConfig.
///
/// The featurization configuration.
///
///
public FeaturizationConfig FeaturizationConfig
{
get { return this._featurizationConfig; }
set { this._featurizationConfig = value; }
}
// Check to see if FeaturizationConfig property is set
internal bool IsSetFeaturizationConfig()
{
return this._featurizationConfig != null;
}
///
/// Gets and sets the property ForecastHorizon.
///
/// The number of time-steps of the forecast. The forecast horizon is also called the
/// prediction length.
///
///
public int ForecastHorizon
{
get { return this._forecastHorizon.GetValueOrDefault(); }
set { this._forecastHorizon = value; }
}
// Check to see if ForecastHorizon property is set
internal bool IsSetForecastHorizon()
{
return this._forecastHorizon.HasValue;
}
///
/// Gets and sets the property ForecastTypes.
///
/// The forecast types used during predictor training. Default value is ["0.1","0.5","0.9"]
///
///
///
[AWSProperty(Min=1, Max=20)]
public List ForecastTypes
{
get { return this._forecastTypes; }
set { this._forecastTypes = value; }
}
// Check to see if ForecastTypes property is set
internal bool IsSetForecastTypes()
{
return this._forecastTypes != null && this._forecastTypes.Count > 0;
}
///
/// Gets and sets the property HPOConfig.
///
/// The hyperparameter override values for the algorithm.
///
///
public HyperParameterTuningJobConfig HPOConfig
{
get { return this._hpoConfig; }
set { this._hpoConfig = value; }
}
// Check to see if HPOConfig property is set
internal bool IsSetHPOConfig()
{
return this._hpoConfig != null;
}
///
/// Gets and sets the property InputDataConfig.
///
/// Describes the dataset group that contains the data to use to train the predictor.
///
///
public InputDataConfig 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 IsAutoPredictor.
///
/// Whether the predictor was created with CreateAutoPredictor.
///
///
public bool IsAutoPredictor
{
get { return this._isAutoPredictor.GetValueOrDefault(); }
set { this._isAutoPredictor = value; }
}
// Check to see if IsAutoPredictor property is set
internal bool IsSetIsAutoPredictor()
{
return this._isAutoPredictor.HasValue;
}
///
/// Gets and sets the property LastModificationTime.
///
/// The last time the resource was modified. The timestamp depends on the status of the
/// job:
///
/// -
///
///
CREATE_PENDING
- The CreationTime
.
///
/// -
///
///
CREATE_IN_PROGRESS
- The current timestamp.
///
/// -
///
///
CREATE_STOPPING
- The current timestamp.
///
/// -
///
///
CREATE_STOPPED
- When the job stopped.
///
/// -
///
///
ACTIVE
or CREATE_FAILED
- When the job finished or failed.
///
///
///
public DateTime LastModificationTime
{
get { return this._lastModificationTime.GetValueOrDefault(); }
set { this._lastModificationTime = value; }
}
// Check to see if LastModificationTime property is set
internal bool IsSetLastModificationTime()
{
return this._lastModificationTime.HasValue;
}
///
/// Gets and sets the property Message.
///
/// If an error occurred, an informational message about the error.
///
///
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
///
/// Gets and sets the property OptimizationMetric.
///
/// The accuracy metric used to optimize the predictor.
///
///
public OptimizationMetric OptimizationMetric
{
get { return this._optimizationMetric; }
set { this._optimizationMetric = value; }
}
// Check to see if OptimizationMetric property is set
internal bool IsSetOptimizationMetric()
{
return this._optimizationMetric != null;
}
///
/// Gets and sets the property PerformAutoML.
///
/// Whether the predictor is set to perform AutoML.
///
///
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 the predictor is set to perform hyperparameter optimization (HPO).
///
///
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 PredictorArn.
///
/// The ARN of the predictor.
///
///
[AWSProperty(Min=1, Max=63)]
public string PredictorArn
{
get { return this._predictorArn; }
set { this._predictorArn = value; }
}
// Check to see if PredictorArn property is set
internal bool IsSetPredictorArn()
{
return this._predictorArn != null;
}
///
/// Gets and sets the property PredictorExecutionDetails.
///
/// Details on the the status and results of the backtests performed to evaluate the accuracy
/// of the predictor. You specify the number of backtests to perform when you call the
/// operation.
///
///
public PredictorExecutionDetails PredictorExecutionDetails
{
get { return this._predictorExecutionDetails; }
set { this._predictorExecutionDetails = value; }
}
// Check to see if PredictorExecutionDetails property is set
internal bool IsSetPredictorExecutionDetails()
{
return this._predictorExecutionDetails != null;
}
///
/// Gets and sets the property PredictorName.
///
/// The name of the predictor.
///
///
[AWSProperty(Min=1, Max=63)]
public string PredictorName
{
get { return this._predictorName; }
set { this._predictorName = value; }
}
// Check to see if PredictorName property is set
internal bool IsSetPredictorName()
{
return this._predictorName != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the predictor. States include:
///
/// -
///
///
ACTIVE
///
/// -
///
///
CREATE_PENDING
, CREATE_IN_PROGRESS
, CREATE_FAILED
///
///
/// -
///
///
DELETE_PENDING
, DELETE_IN_PROGRESS
, DELETE_FAILED
///
///
/// -
///
///
CREATE_STOPPING
, CREATE_STOPPED
///
///
///
/// The Status
of the predictor must be ACTIVE
before you can
/// use the predictor to create a forecast.
///
///
///
[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;
}
///
/// Gets and sets the property TrainingParameters.
///
/// The default training parameters or overrides selected during model training. When
/// running AutoML or choosing HPO with CNN-QR or DeepAR+, the optimized values for the
/// chosen hyperparameters are returned. For more information, see aws-forecast-choosing-recipes.
///
///
[AWSProperty(Min=0, Max=100)]
public Dictionary TrainingParameters
{
get { return this._trainingParameters; }
set { this._trainingParameters = value; }
}
// Check to see if TrainingParameters property is set
internal bool IsSetTrainingParameters()
{
return this._trainingParameters != null && this._trainingParameters.Count > 0;
}
}
}