/* * 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 contains response data from a property definition request. /// public partial class PropertyDefinitionResponse { private Dictionary _configuration = new Dictionary(); private DataType _dataType; private DataValue _defaultValue; private string _displayName; private bool? _isExternalId; private bool? _isFinal; private bool? _isImported; private bool? _isInherited; private bool? _isRequiredInEntity; private bool? _isStoredExternally; private bool? _isTimeSeries; /// /// Gets and sets the property Configuration. /// /// A mapping that specifies configuration information about the property. /// /// public Dictionary Configuration { get { return this._configuration; } set { this._configuration = value; } } // Check to see if Configuration property is set internal bool IsSetConfiguration() { return this._configuration != null && this._configuration.Count > 0; } /// /// Gets and sets the property DataType. /// /// An object that contains information about the data type. /// /// [AWSProperty(Required=true)] public DataType 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 DefaultValue. /// /// An object that contains the default value. /// /// public DataValue DefaultValue { get { return this._defaultValue; } set { this._defaultValue = value; } } // Check to see if DefaultValue property is set internal bool IsSetDefaultValue() { return this._defaultValue != null; } /// /// Gets and sets the property DisplayName. /// /// A friendly name for the property. /// /// [AWSProperty(Min=0, Max=256)] public string DisplayName { get { return this._displayName; } set { this._displayName = value; } } // Check to see if DisplayName property is set internal bool IsSetDisplayName() { return this._displayName != null; } /// /// Gets and sets the property IsExternalId. /// /// A Boolean value that specifies whether the property ID comes from an external data /// store. /// /// [AWSProperty(Required=true)] public bool IsExternalId { get { return this._isExternalId.GetValueOrDefault(); } set { this._isExternalId = value; } } // Check to see if IsExternalId property is set internal bool IsSetIsExternalId() { return this._isExternalId.HasValue; } /// /// Gets and sets the property IsFinal. /// /// A Boolean value that specifies whether the property definition can be updated. /// /// [AWSProperty(Required=true)] public bool IsFinal { get { return this._isFinal.GetValueOrDefault(); } set { this._isFinal = value; } } // Check to see if IsFinal property is set internal bool IsSetIsFinal() { return this._isFinal.HasValue; } /// /// Gets and sets the property IsImported. /// /// A Boolean value that specifies whether the property definition is imported from an /// external data store. /// /// [AWSProperty(Required=true)] public bool IsImported { get { return this._isImported.GetValueOrDefault(); } set { this._isImported = value; } } // Check to see if IsImported property is set internal bool IsSetIsImported() { return this._isImported.HasValue; } /// /// Gets and sets the property IsInherited. /// /// A Boolean value that specifies whether the property definition is inherited from a /// parent entity. /// /// [AWSProperty(Required=true)] public bool IsInherited { get { return this._isInherited.GetValueOrDefault(); } set { this._isInherited = value; } } // Check to see if IsInherited property is set internal bool IsSetIsInherited() { return this._isInherited.HasValue; } /// /// Gets and sets the property IsRequiredInEntity. /// /// A Boolean value that specifies whether the property is required in an entity. /// /// [AWSProperty(Required=true)] public bool IsRequiredInEntity { get { return this._isRequiredInEntity.GetValueOrDefault(); } set { this._isRequiredInEntity = value; } } // Check to see if IsRequiredInEntity property is set internal bool IsSetIsRequiredInEntity() { return this._isRequiredInEntity.HasValue; } /// /// Gets and sets the property IsStoredExternally. /// /// A Boolean value that specifies whether the property is stored externally. /// /// [AWSProperty(Required=true)] public bool IsStoredExternally { get { return this._isStoredExternally.GetValueOrDefault(); } set { this._isStoredExternally = value; } } // Check to see if IsStoredExternally property is set internal bool IsSetIsStoredExternally() { return this._isStoredExternally.HasValue; } /// /// Gets and sets the property IsTimeSeries. /// /// A Boolean value that specifies whether the property consists of time series data. /// /// [AWSProperty(Required=true)] public bool IsTimeSeries { get { return this._isTimeSeries.GetValueOrDefault(); } set { this._isTimeSeries = value; } } // Check to see if IsTimeSeries property is set internal bool IsSetIsTimeSeries() { return this._isTimeSeries.HasValue; } } }