/* * 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 { /// /// Provides information about the method used to transform attributes. /// /// /// /// The following is an example using the RETAIL domain: /// /// /// /// { /// /// /// /// "AttributeName": "demand", /// /// /// /// "Transformations": {"aggregation": "sum", "middlefill": "zero", "backfill": /// "zero"} /// /// /// /// } /// /// public partial class AttributeConfig { private string _attributeName; private Dictionary _transformations = new Dictionary(); /// /// Gets and sets the property AttributeName. /// /// The name of the attribute as specified in the schema. Amazon Forecast supports the /// target field of the target time series and the related time series datasets. For example, /// for the RETAIL domain, the target is demand. /// /// [AWSProperty(Required=true, Min=1, Max=63)] public string AttributeName { get { return this._attributeName; } set { this._attributeName = value; } } // Check to see if AttributeName property is set internal bool IsSetAttributeName() { return this._attributeName != null; } /// /// Gets and sets the property Transformations. /// /// The method parameters (key-value pairs), which are a map of override parameters. Specify /// these parameters to override the default values. Related Time Series attributes do /// not accept aggregation parameters. /// /// /// /// The following list shows the parameters and their valid values for the "filling" featurization /// method for a Target Time Series dataset. Default values are bolded. /// ///
  • /// /// aggregation: sum, avg, first, min, /// max /// ///
  • /// /// frontfill: none /// ///
  • /// /// middlefill: zero, nan (not a number), value, /// median, mean, min, max /// ///
  • /// /// backfill: zero, nan, value, median, /// mean, min, max /// ///
/// /// The following list shows the parameters and their valid values for a Related Time /// Series featurization method (there are no defaults): /// ///
  • /// /// middlefill: zero, value, median, /// mean, min, max /// ///
  • /// /// backfill: zero, value, median, /// mean, min, max /// ///
  • /// /// futurefill: zero, value, median, /// mean, min, max /// ///
/// /// To set a filling method to a specific value, set the fill parameter to value /// and define the value in a corresponding _value parameter. For example, /// to set backfilling to a value of 2, include the following: "backfill": "value" /// and "backfill_value":"2". /// ///
[AWSProperty(Required=true, Min=1, Max=20)] public Dictionary Transformations { get { return this._transformations; } set { this._transformations = value; } } // Check to see if Transformations property is set internal bool IsSetTransformations() { return this._transformations != null && this._transformations.Count > 0; } } }