/* * 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 snow-device-management-2021-08-04.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.SnowDeviceManagement.Model { /// /// The description of an instance. Currently, Amazon EC2 instances are the only supported /// instance type. /// public partial class Instance { private int? _amiLaunchIndex; private List _blockDeviceMappings = new List(); private CpuOptions _cpuOptions; private DateTime? _createdAt; private string _imageId; private string _instanceId; private string _instanceType; private string _privateIpAddress; private string _publicIpAddress; private string _rootDeviceName; private List _securityGroups = new List(); private InstanceState _state; private DateTime? _updatedAt; /// /// Gets and sets the property AmiLaunchIndex. /// /// The Amazon Machine Image (AMI) launch index, which you can use to find this instance /// in the launch group. /// /// public int AmiLaunchIndex { get { return this._amiLaunchIndex.GetValueOrDefault(); } set { this._amiLaunchIndex = value; } } // Check to see if AmiLaunchIndex property is set internal bool IsSetAmiLaunchIndex() { return this._amiLaunchIndex.HasValue; } /// /// Gets and sets the property BlockDeviceMappings. /// /// Any block device mapping entries for the instance. /// /// public List BlockDeviceMappings { get { return this._blockDeviceMappings; } set { this._blockDeviceMappings = value; } } // Check to see if BlockDeviceMappings property is set internal bool IsSetBlockDeviceMappings() { return this._blockDeviceMappings != null && this._blockDeviceMappings.Count > 0; } /// /// Gets and sets the property CpuOptions. /// /// The CPU options for the instance. /// /// public CpuOptions CpuOptions { get { return this._cpuOptions; } set { this._cpuOptions = value; } } // Check to see if CpuOptions property is set internal bool IsSetCpuOptions() { return this._cpuOptions != null; } /// /// Gets and sets the property CreatedAt. /// /// When the instance was created. /// /// public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property ImageId. /// /// The ID of the AMI used to launch the instance. /// /// public string ImageId { get { return this._imageId; } set { this._imageId = value; } } // Check to see if ImageId property is set internal bool IsSetImageId() { return this._imageId != null; } /// /// Gets and sets the property InstanceId. /// /// The ID of the instance. /// /// 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. /// /// 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 PrivateIpAddress. /// /// The private IPv4 address assigned to the instance. /// /// public string PrivateIpAddress { get { return this._privateIpAddress; } set { this._privateIpAddress = value; } } // Check to see if PrivateIpAddress property is set internal bool IsSetPrivateIpAddress() { return this._privateIpAddress != null; } /// /// Gets and sets the property PublicIpAddress. /// /// The public IPv4 address assigned to the instance. /// /// public string PublicIpAddress { get { return this._publicIpAddress; } set { this._publicIpAddress = value; } } // Check to see if PublicIpAddress property is set internal bool IsSetPublicIpAddress() { return this._publicIpAddress != null; } /// /// Gets and sets the property RootDeviceName. /// /// The device name of the root device volume (for example, /dev/sda1). /// /// public string RootDeviceName { get { return this._rootDeviceName; } set { this._rootDeviceName = value; } } // Check to see if RootDeviceName property is set internal bool IsSetRootDeviceName() { return this._rootDeviceName != null; } /// /// Gets and sets the property SecurityGroups. /// /// The security groups for the instance. /// /// public List SecurityGroups { get { return this._securityGroups; } set { this._securityGroups = value; } } // Check to see if SecurityGroups property is set internal bool IsSetSecurityGroups() { return this._securityGroups != null && this._securityGroups.Count > 0; } /// /// Gets and sets the property State. /// public InstanceState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property UpdatedAt. /// /// When the instance was last updated. /// /// public DateTime UpdatedAt { get { return this._updatedAt.GetValueOrDefault(); } set { this._updatedAt = value; } } // Check to see if UpdatedAt property is set internal bool IsSetUpdatedAt() { return this._updatedAt.HasValue; } } }