/*
* 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 iotsitewise-2019-12-02.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.IoTSiteWise.Model
{
///
/// Contains an asset transform property. A transform is a one-to-one mapping of a property's
/// data points from one form to another. For example, you can use a transform to convert
/// a Celsius data stream to Fahrenheit by applying the transformation expression to each
/// data point of the Celsius stream. A transform can only have a data type of DOUBLE
/// and consume properties with data types of INTEGER
or DOUBLE
.
///
///
///
/// For more information, see Transforms
/// in the IoT SiteWise User Guide.
///
///
public partial class Transform
{
private string _expression;
private TransformProcessingConfig _processingConfig;
private List _variables = new List();
///
/// Gets and sets the property Expression.
///
/// The mathematical expression that defines the transformation function. You can specify
/// up to 10 variables per expression. You can specify up to 10 functions per expression.
///
///
///
///
/// For more information, see Quotas
/// in the IoT SiteWise User Guide.
///
///
[AWSProperty(Required=true, Min=1, Max=1024)]
public string Expression
{
get { return this._expression; }
set { this._expression = value; }
}
// Check to see if Expression property is set
internal bool IsSetExpression()
{
return this._expression != null;
}
///
/// Gets and sets the property ProcessingConfig.
///
/// The processing configuration for the given transform property. You can configure transforms
/// to be kept at the edge or forwarded to the Amazon Web Services Cloud. You can also
/// configure transforms to be computed at the edge or in the cloud.
///
///
public TransformProcessingConfig ProcessingConfig
{
get { return this._processingConfig; }
set { this._processingConfig = value; }
}
// Check to see if ProcessingConfig property is set
internal bool IsSetProcessingConfig()
{
return this._processingConfig != null;
}
///
/// Gets and sets the property Variables.
///
/// The list of variables used in the expression.
///
///
[AWSProperty(Required=true)]
public List Variables
{
get { return this._variables; }
set { this._variables = value; }
}
// Check to see if Variables property is set
internal bool IsSetVariables()
{
return this._variables != null && this._variables.Count > 0;
}
}
}