/* * 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 iottwinmaker-2021-11-29.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.IoTTwinMaker.Model { /// /// An object that specifies a value for a property. /// public partial class DataValue { private bool? _booleanValue; private double? _doubleValue; private string _expression; private int? _integerValue; private List _listValue = new List(); private long? _longValue; private Dictionary _mapValue = new Dictionary(); private RelationshipValue _relationshipValue; private string _stringValue; /// /// Gets and sets the property BooleanValue. /// /// A Boolean value. /// /// public bool BooleanValue { get { return this._booleanValue.GetValueOrDefault(); } set { this._booleanValue = value; } } // Check to see if BooleanValue property is set internal bool IsSetBooleanValue() { return this._booleanValue.HasValue; } /// /// Gets and sets the property DoubleValue. /// /// A double value. /// /// public double DoubleValue { get { return this._doubleValue.GetValueOrDefault(); } set { this._doubleValue = value; } } // Check to see if DoubleValue property is set internal bool IsSetDoubleValue() { return this._doubleValue.HasValue; } /// /// Gets and sets the property Expression. /// /// An expression that produces the value. /// /// [AWSProperty(Min=1, Max=316)] 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 IntegerValue. /// /// An integer value. /// /// public int IntegerValue { get { return this._integerValue.GetValueOrDefault(); } set { this._integerValue = value; } } // Check to see if IntegerValue property is set internal bool IsSetIntegerValue() { return this._integerValue.HasValue; } /// /// Gets and sets the property ListValue. /// /// A list of multiple values. /// /// [AWSProperty(Min=0, Max=50)] public List ListValue { get { return this._listValue; } set { this._listValue = value; } } // Check to see if ListValue property is set internal bool IsSetListValue() { return this._listValue != null && this._listValue.Count > 0; } /// /// Gets and sets the property LongValue. /// /// A long value. /// /// public long LongValue { get { return this._longValue.GetValueOrDefault(); } set { this._longValue = value; } } // Check to see if LongValue property is set internal bool IsSetLongValue() { return this._longValue.HasValue; } /// /// Gets and sets the property MapValue. /// /// An object that maps strings to multiple DataValue objects. /// /// [AWSProperty(Min=0, Max=50)] public Dictionary MapValue { get { return this._mapValue; } set { this._mapValue = value; } } // Check to see if MapValue property is set internal bool IsSetMapValue() { return this._mapValue != null && this._mapValue.Count > 0; } /// /// Gets and sets the property RelationshipValue. /// /// A value that relates a component to another component. /// /// public RelationshipValue RelationshipValue { get { return this._relationshipValue; } set { this._relationshipValue = value; } } // Check to see if RelationshipValue property is set internal bool IsSetRelationshipValue() { return this._relationshipValue != null; } /// /// Gets and sets the property StringValue. /// /// A string value. /// /// [AWSProperty(Min=1, Max=256)] public string StringValue { get { return this._stringValue; } set { this._stringValue = value; } } // Check to see if StringValue property is set internal bool IsSetStringValue() { return this._stringValue != null; } } }