/*
* 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 ec2-2016-11-15.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.EC2.Model
{
///
/// Describes the properties of the Dedicated Host.
///
public partial class Host
{
private DateTime? _allocationTime;
private AllowsMultipleInstanceTypes _allowsMultipleInstanceTypes;
private string _assetId;
private AutoPlacement _autoPlacement;
private string _availabilityZone;
private string _availabilityZoneId;
private AvailableCapacity _availableCapacity;
private string _clientToken;
private string _hostId;
private HostMaintenance _hostMaintenance;
private HostProperties _hostProperties;
private HostRecovery _hostRecovery;
private string _hostReservationId;
private List _instances = new List();
private bool? _memberOfServiceLinkedResourceGroup;
private string _outpostArn;
private string _ownerId;
private DateTime? _releaseTime;
private AllocationState _state;
private List _tags = new List();
///
/// Gets and sets the property AllocationTime.
///
/// The time that the Dedicated Host was allocated.
///
///
public DateTime AllocationTime
{
get { return this._allocationTime.GetValueOrDefault(); }
set { this._allocationTime = value; }
}
// Check to see if AllocationTime property is set
internal bool IsSetAllocationTime()
{
return this._allocationTime.HasValue;
}
///
/// Gets and sets the property AllowsMultipleInstanceTypes.
///
/// Indicates whether the Dedicated Host supports multiple instance types of the same
/// instance family. If the value is on
, the Dedicated Host supports multiple
/// instance types in the instance family. If the value is off
, the Dedicated
/// Host supports a single instance type only.
///
///
public AllowsMultipleInstanceTypes AllowsMultipleInstanceTypes
{
get { return this._allowsMultipleInstanceTypes; }
set { this._allowsMultipleInstanceTypes = value; }
}
// Check to see if AllowsMultipleInstanceTypes property is set
internal bool IsSetAllowsMultipleInstanceTypes()
{
return this._allowsMultipleInstanceTypes != null;
}
///
/// Gets and sets the property AssetId.
///
/// The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
///
///
public string AssetId
{
get { return this._assetId; }
set { this._assetId = value; }
}
// Check to see if AssetId property is set
internal bool IsSetAssetId()
{
return this._assetId != null;
}
///
/// Gets and sets the property AutoPlacement.
///
/// Whether auto-placement is on or off.
///
///
public AutoPlacement AutoPlacement
{
get { return this._autoPlacement; }
set { this._autoPlacement = value; }
}
// Check to see if AutoPlacement property is set
internal bool IsSetAutoPlacement()
{
return this._autoPlacement != null;
}
///
/// Gets and sets the property AvailabilityZone.
///
/// The Availability Zone of the Dedicated Host.
///
///
public string AvailabilityZone
{
get { return this._availabilityZone; }
set { this._availabilityZone = value; }
}
// Check to see if AvailabilityZone property is set
internal bool IsSetAvailabilityZone()
{
return this._availabilityZone != null;
}
///
/// Gets and sets the property AvailabilityZoneId.
///
/// The ID of the Availability Zone in which the Dedicated Host is allocated.
///
///
public string AvailabilityZoneId
{
get { return this._availabilityZoneId; }
set { this._availabilityZoneId = value; }
}
// Check to see if AvailabilityZoneId property is set
internal bool IsSetAvailabilityZoneId()
{
return this._availabilityZoneId != null;
}
///
/// Gets and sets the property AvailableCapacity.
///
/// Information about the instances running on the Dedicated Host.
///
///
public AvailableCapacity AvailableCapacity
{
get { return this._availableCapacity; }
set { this._availableCapacity = value; }
}
// Check to see if AvailableCapacity property is set
internal bool IsSetAvailableCapacity()
{
return this._availableCapacity != null;
}
///
/// Gets and sets the property ClientToken.
///
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
/// request. For more information, see Ensuring
/// Idempotency.
///
///
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property HostId.
///
/// The ID of the Dedicated Host.
///
///
public string HostId
{
get { return this._hostId; }
set { this._hostId = value; }
}
// Check to see if HostId property is set
internal bool IsSetHostId()
{
return this._hostId != null;
}
///
/// Gets and sets the property HostMaintenance.
///
/// Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
///
///
public HostMaintenance HostMaintenance
{
get { return this._hostMaintenance; }
set { this._hostMaintenance = value; }
}
// Check to see if HostMaintenance property is set
internal bool IsSetHostMaintenance()
{
return this._hostMaintenance != null;
}
///
/// Gets and sets the property HostProperties.
///
/// The hardware specifications of the Dedicated Host.
///
///
public HostProperties HostProperties
{
get { return this._hostProperties; }
set { this._hostProperties = value; }
}
// Check to see if HostProperties property is set
internal bool IsSetHostProperties()
{
return this._hostProperties != null;
}
///
/// Gets and sets the property HostRecovery.
///
/// Indicates whether host recovery is enabled or disabled for the Dedicated Host.
///
///
public HostRecovery HostRecovery
{
get { return this._hostRecovery; }
set { this._hostRecovery = value; }
}
// Check to see if HostRecovery property is set
internal bool IsSetHostRecovery()
{
return this._hostRecovery != null;
}
///
/// Gets and sets the property HostReservationId.
///
/// The reservation ID of the Dedicated Host. This returns a null
response
/// if the Dedicated Host doesn't have an associated reservation.
///
///
public string HostReservationId
{
get { return this._hostReservationId; }
set { this._hostReservationId = value; }
}
// Check to see if HostReservationId property is set
internal bool IsSetHostReservationId()
{
return this._hostReservationId != null;
}
///
/// Gets and sets the property Instances.
///
/// The IDs and instance type that are currently running on the Dedicated Host.
///
///
public List Instances
{
get { return this._instances; }
set { this._instances = value; }
}
// Check to see if Instances property is set
internal bool IsSetInstances()
{
return this._instances != null && this._instances.Count > 0;
}
///
/// Gets and sets the property MemberOfServiceLinkedResourceGroup.
///
/// Indicates whether the Dedicated Host is in a host resource group. If memberOfServiceLinkedResourceGroup
/// is true
, the host is in a host resource group; otherwise, it is not.
///
///
public bool MemberOfServiceLinkedResourceGroup
{
get { return this._memberOfServiceLinkedResourceGroup.GetValueOrDefault(); }
set { this._memberOfServiceLinkedResourceGroup = value; }
}
// Check to see if MemberOfServiceLinkedResourceGroup property is set
internal bool IsSetMemberOfServiceLinkedResourceGroup()
{
return this._memberOfServiceLinkedResourceGroup.HasValue;
}
///
/// Gets and sets the property OutpostArn.
///
/// The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated
/// Host is allocated.
///
///
public string OutpostArn
{
get { return this._outpostArn; }
set { this._outpostArn = value; }
}
// Check to see if OutpostArn property is set
internal bool IsSetOutpostArn()
{
return this._outpostArn != null;
}
///
/// Gets and sets the property OwnerId.
///
/// The ID of the Amazon Web Services account that owns the Dedicated Host.
///
///
public string OwnerId
{
get { return this._ownerId; }
set { this._ownerId = value; }
}
// Check to see if OwnerId property is set
internal bool IsSetOwnerId()
{
return this._ownerId != null;
}
///
/// Gets and sets the property ReleaseTime.
///
/// The time that the Dedicated Host was released.
///
///
public DateTime ReleaseTime
{
get { return this._releaseTime.GetValueOrDefault(); }
set { this._releaseTime = value; }
}
// Check to see if ReleaseTime property is set
internal bool IsSetReleaseTime()
{
return this._releaseTime.HasValue;
}
///
/// Gets and sets the property State.
///
/// The Dedicated Host's state.
///
///
public AllocationState 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 Tags.
///
/// Any tags assigned to the Dedicated Host.
///
///
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}