/* * 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 license-manager-linux-subscriptions-2018-05-10.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.LicenseManagerLinuxSubscriptions.Model { /// /// Details discovered information about a running instance using Linux subscriptions. /// public partial class Instance { private string _accountID; private string _amiId; private string _instanceID; private string _instanceType; private string _lastUpdatedTime; private List _productCode = new List(); private string _region; private string _status; private string _subscriptionName; private string _usageOperation; /// /// Gets and sets the property AccountID. /// /// The account ID which owns the instance. /// /// public string AccountID { get { return this._accountID; } set { this._accountID = value; } } // Check to see if AccountID property is set internal bool IsSetAccountID() { return this._accountID != null; } /// /// Gets and sets the property AmiId. /// /// The AMI ID used to launch the instance. /// /// public string AmiId { get { return this._amiId; } set { this._amiId = value; } } // Check to see if AmiId property is set internal bool IsSetAmiId() { return this._amiId != null; } /// /// Gets and sets the property InstanceID. /// /// The instance ID of the resource. /// /// public string InstanceID { get { return this._instanceID; } set { this._instanceID = value; } } // Check to see if InstanceID property is set internal bool IsSetInstanceID() { return this._instanceID != null; } /// /// Gets and sets the property InstanceType. /// /// The instance type of the resource. /// /// public string InstanceType { get { return this._instanceType; } set { this._instanceType = value; } } // Check to see if InstanceType property is set internal bool IsSetInstanceType() { return this._instanceType != null; } /// /// Gets and sets the property LastUpdatedTime. /// /// The time in which the last discovery updated the instance details. /// /// public string LastUpdatedTime { get { return this._lastUpdatedTime; } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime != null; } /// /// Gets and sets the property ProductCode. /// /// The product code for the instance. For more information, see Usage /// operation values in the License Manager User Guide . /// /// public List ProductCode { get { return this._productCode; } set { this._productCode = value; } } // Check to see if ProductCode property is set internal bool IsSetProductCode() { return this._productCode != null && this._productCode.Count > 0; } /// /// Gets and sets the property Region. /// /// The Region the instance is running in. /// /// public string Region { get { return this._region; } set { this._region = value; } } // Check to see if Region property is set internal bool IsSetRegion() { return this._region != null; } /// /// Gets and sets the property Status. /// /// The status of the instance. /// /// public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property SubscriptionName. /// /// The name of the subscription being used by the instance. /// /// public string SubscriptionName { get { return this._subscriptionName; } set { this._subscriptionName = value; } } // Check to see if SubscriptionName property is set internal bool IsSetSubscriptionName() { return this._subscriptionName != null; } /// /// Gets and sets the property UsageOperation. /// /// The usage operation of the instance. For more information, see For more information, /// see Usage /// operation values in the License Manager User Guide. /// /// public string UsageOperation { get { return this._usageOperation; } set { this._usageOperation = value; } } // Check to see if UsageOperation property is set internal bool IsSetUsageOperation() { return this._usageOperation != null; } } }