/* * 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 model property definition. This property definition is applied to /// all assets created from the asset model. /// public partial class AssetModelPropertyDefinition { private PropertyDataType _dataType; private string _dataTypeSpec; private string _name; private PropertyType _type; private string _unit; /// /// Gets and sets the property DataType. /// /// The data type of the property definition. /// /// /// /// If you specify STRUCT, you must also specify dataTypeSpec /// to identify the type of the structure for this property. /// /// [AWSProperty(Required=true)] public PropertyDataType DataType { get { return this._dataType; } set { this._dataType = value; } } // Check to see if DataType property is set internal bool IsSetDataType() { return this._dataType != null; } /// /// Gets and sets the property DataTypeSpec. /// /// The data type of the structure for this property. This parameter is required on properties /// that have the STRUCT data type. /// /// /// /// The options for this parameter depend on the type of the composite model in which /// you define this property. Use AWS/ALARM_STATE for alarm state in alarm /// composite models. /// /// [AWSProperty(Min=1, Max=256)] public string DataTypeSpec { get { return this._dataTypeSpec; } set { this._dataTypeSpec = value; } } // Check to see if DataTypeSpec property is set internal bool IsSetDataTypeSpec() { return this._dataTypeSpec != null; } /// /// Gets and sets the property Name. /// /// The name of the property definition. /// /// [AWSProperty(Required=true, Min=1, Max=256)] 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 Type. /// /// The property definition type (see PropertyType). You can only specify /// one type in a property definition. /// /// [AWSProperty(Required=true)] public PropertyType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property Unit. /// /// The unit of the property definition, such as Newtons or RPM. /// /// [AWSProperty(Min=1, Max=256)] public string Unit { get { return this._unit; } set { this._unit = value; } } // Check to see if Unit property is set internal bool IsSetUnit() { return this._unit != null; } } }