/* * 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 { /// /// This is the response object from the DescribeAssetModel operation. /// public partial class DescribeAssetModelResponse : AmazonWebServiceResponse { private string _assetModelArn; private List _assetModelCompositeModels = new List(); private DateTime? _assetModelCreationDate; private string _assetModelDescription; private List _assetModelHierarchies = new List(); private string _assetModelId; private DateTime? _assetModelLastUpdateDate; private string _assetModelName; private List _assetModelProperties = new List(); private AssetModelStatus _assetModelStatus; /// /// Gets and sets the property AssetModelArn. /// /// The ARN /// of the asset model, which has the following format. /// /// /// /// arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId} /// /// /// [AWSProperty(Required=true, Min=1, Max=1600)] public string AssetModelArn { get { return this._assetModelArn; } set { this._assetModelArn = value; } } // Check to see if AssetModelArn property is set internal bool IsSetAssetModelArn() { return this._assetModelArn != null; } /// /// Gets and sets the property AssetModelCompositeModels. /// /// The list of composite asset models for the asset model. /// /// public List AssetModelCompositeModels { get { return this._assetModelCompositeModels; } set { this._assetModelCompositeModels = value; } } // Check to see if AssetModelCompositeModels property is set internal bool IsSetAssetModelCompositeModels() { return this._assetModelCompositeModels != null && this._assetModelCompositeModels.Count > 0; } /// /// Gets and sets the property AssetModelCreationDate. /// /// The date the asset model was created, in Unix epoch time. /// /// [AWSProperty(Required=true)] public DateTime AssetModelCreationDate { get { return this._assetModelCreationDate.GetValueOrDefault(); } set { this._assetModelCreationDate = value; } } // Check to see if AssetModelCreationDate property is set internal bool IsSetAssetModelCreationDate() { return this._assetModelCreationDate.HasValue; } /// /// Gets and sets the property AssetModelDescription. /// /// The asset model's description. /// /// [AWSProperty(Required=true, Min=1, Max=2048)] public string AssetModelDescription { get { return this._assetModelDescription; } set { this._assetModelDescription = value; } } // Check to see if AssetModelDescription property is set internal bool IsSetAssetModelDescription() { return this._assetModelDescription != null; } /// /// Gets and sets the property AssetModelHierarchies. /// /// A list of asset model hierarchies that each contain a childAssetModelId /// and a hierarchyId (named id). A hierarchy specifies allowed /// parent/child asset relationships for an asset model. /// /// [AWSProperty(Required=true)] public List AssetModelHierarchies { get { return this._assetModelHierarchies; } set { this._assetModelHierarchies = value; } } // Check to see if AssetModelHierarchies property is set internal bool IsSetAssetModelHierarchies() { return this._assetModelHierarchies != null && this._assetModelHierarchies.Count > 0; } /// /// Gets and sets the property AssetModelId. /// /// The ID of the asset model. /// /// [AWSProperty(Required=true, Min=36, Max=36)] public string AssetModelId { get { return this._assetModelId; } set { this._assetModelId = value; } } // Check to see if AssetModelId property is set internal bool IsSetAssetModelId() { return this._assetModelId != null; } /// /// Gets and sets the property AssetModelLastUpdateDate. /// /// The date the asset model was last updated, in Unix epoch time. /// /// [AWSProperty(Required=true)] public DateTime AssetModelLastUpdateDate { get { return this._assetModelLastUpdateDate.GetValueOrDefault(); } set { this._assetModelLastUpdateDate = value; } } // Check to see if AssetModelLastUpdateDate property is set internal bool IsSetAssetModelLastUpdateDate() { return this._assetModelLastUpdateDate.HasValue; } /// /// Gets and sets the property AssetModelName. /// /// The name of the asset model. /// /// [AWSProperty(Required=true, Min=1, Max=256)] public string AssetModelName { get { return this._assetModelName; } set { this._assetModelName = value; } } // Check to see if AssetModelName property is set internal bool IsSetAssetModelName() { return this._assetModelName != null; } /// /// Gets and sets the property AssetModelProperties. /// /// The list of asset properties for the asset model. /// /// /// /// This object doesn't include properties that you define in composite models. You can /// find composite model properties in the assetModelCompositeModels object. /// /// [AWSProperty(Required=true)] public List AssetModelProperties { get { return this._assetModelProperties; } set { this._assetModelProperties = value; } } // Check to see if AssetModelProperties property is set internal bool IsSetAssetModelProperties() { return this._assetModelProperties != null && this._assetModelProperties.Count > 0; } /// /// Gets and sets the property AssetModelStatus. /// /// The current status of the asset model, which contains a state and any error message. /// /// [AWSProperty(Required=true)] public AssetModelStatus AssetModelStatus { get { return this._assetModelStatus; } set { this._assetModelStatus = value; } } // Check to see if AssetModelStatus property is set internal bool IsSetAssetModelStatus() { return this._assetModelStatus != null; } } }