/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the properties of the Dedicated Host.See Also:
AWS API
* Reference
Whether auto-placement is on or off.
*/ inline const AutoPlacement& GetAutoPlacement() const{ return m_autoPlacement; } /** *Whether auto-placement is on or off.
*/ inline bool AutoPlacementHasBeenSet() const { return m_autoPlacementHasBeenSet; } /** *Whether auto-placement is on or off.
*/ inline void SetAutoPlacement(const AutoPlacement& value) { m_autoPlacementHasBeenSet = true; m_autoPlacement = value; } /** *Whether auto-placement is on or off.
*/ inline void SetAutoPlacement(AutoPlacement&& value) { m_autoPlacementHasBeenSet = true; m_autoPlacement = std::move(value); } /** *Whether auto-placement is on or off.
*/ inline Host& WithAutoPlacement(const AutoPlacement& value) { SetAutoPlacement(value); return *this;} /** *Whether auto-placement is on or off.
*/ inline Host& WithAutoPlacement(AutoPlacement&& value) { SetAutoPlacement(std::move(value)); return *this;} /** *The Availability Zone of the Dedicated Host.
*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *The Availability Zone of the Dedicated Host.
*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *The Availability Zone of the Dedicated Host.
*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *The Availability Zone of the Dedicated Host.
*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *The Availability Zone of the Dedicated Host.
*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *The Availability Zone of the Dedicated Host.
*/ inline Host& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The Availability Zone of the Dedicated Host.
*/ inline Host& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The Availability Zone of the Dedicated Host.
*/ inline Host& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *Information about the instances running on the Dedicated Host.
*/ inline const AvailableCapacity& GetAvailableCapacity() const{ return m_availableCapacity; } /** *Information about the instances running on the Dedicated Host.
*/ inline bool AvailableCapacityHasBeenSet() const { return m_availableCapacityHasBeenSet; } /** *Information about the instances running on the Dedicated Host.
*/ inline void SetAvailableCapacity(const AvailableCapacity& value) { m_availableCapacityHasBeenSet = true; m_availableCapacity = value; } /** *Information about the instances running on the Dedicated Host.
*/ inline void SetAvailableCapacity(AvailableCapacity&& value) { m_availableCapacityHasBeenSet = true; m_availableCapacity = std::move(value); } /** *Information about the instances running on the Dedicated Host.
*/ inline Host& WithAvailableCapacity(const AvailableCapacity& value) { SetAvailableCapacity(value); return *this;} /** *Information about the instances running on the Dedicated Host.
*/ inline Host& WithAvailableCapacity(AvailableCapacity&& value) { SetAvailableCapacity(std::move(value)); return *this;} /** *Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.
*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.
*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.
*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.
*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.
*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.
*/ inline Host& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.
*/ inline Host& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.
*/ inline Host& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *The ID of the Dedicated Host.
*/ inline const Aws::String& GetHostId() const{ return m_hostId; } /** *The ID of the Dedicated Host.
*/ inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; } /** *The ID of the Dedicated Host.
*/ inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; } /** *The ID of the Dedicated Host.
*/ inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); } /** *The ID of the Dedicated Host.
*/ inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); } /** *The ID of the Dedicated Host.
*/ inline Host& WithHostId(const Aws::String& value) { SetHostId(value); return *this;} /** *The ID of the Dedicated Host.
*/ inline Host& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;} /** *The ID of the Dedicated Host.
*/ inline Host& WithHostId(const char* value) { SetHostId(value); return *this;} /** *The hardware specifications of the Dedicated Host.
*/ inline const HostProperties& GetHostProperties() const{ return m_hostProperties; } /** *The hardware specifications of the Dedicated Host.
*/ inline bool HostPropertiesHasBeenSet() const { return m_hostPropertiesHasBeenSet; } /** *The hardware specifications of the Dedicated Host.
*/ inline void SetHostProperties(const HostProperties& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = value; } /** *The hardware specifications of the Dedicated Host.
*/ inline void SetHostProperties(HostProperties&& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = std::move(value); } /** *The hardware specifications of the Dedicated Host.
*/ inline Host& WithHostProperties(const HostProperties& value) { SetHostProperties(value); return *this;} /** *The hardware specifications of the Dedicated Host.
*/ inline Host& WithHostProperties(HostProperties&& value) { SetHostProperties(std::move(value)); return *this;} /** *The reservation ID of the Dedicated Host. This returns a null
* response if the Dedicated Host doesn't have an associated reservation.
The reservation ID of the Dedicated Host. This returns a null
* response if the Dedicated Host doesn't have an associated reservation.
The reservation ID of the Dedicated Host. This returns a null
* response if the Dedicated Host doesn't have an associated reservation.
The reservation ID of the Dedicated Host. This returns a null
* response if the Dedicated Host doesn't have an associated reservation.
The reservation ID of the Dedicated Host. This returns a null
* response if the Dedicated Host doesn't have an associated reservation.
The reservation ID of the Dedicated Host. This returns a null
* response if the Dedicated Host doesn't have an associated reservation.
The reservation ID of the Dedicated Host. This returns a null
* response if the Dedicated Host doesn't have an associated reservation.
The reservation ID of the Dedicated Host. This returns a null
* response if the Dedicated Host doesn't have an associated reservation.
The IDs and instance type that are currently running on the Dedicated * Host.
*/ inline const Aws::VectorThe IDs and instance type that are currently running on the Dedicated * Host.
*/ inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; } /** *The IDs and instance type that are currently running on the Dedicated * Host.
*/ inline void SetInstances(const Aws::VectorThe IDs and instance type that are currently running on the Dedicated * Host.
*/ inline void SetInstances(Aws::VectorThe IDs and instance type that are currently running on the Dedicated * Host.
*/ inline Host& WithInstances(const Aws::VectorThe IDs and instance type that are currently running on the Dedicated * Host.
*/ inline Host& WithInstances(Aws::VectorThe IDs and instance type that are currently running on the Dedicated * Host.
*/ inline Host& AddInstances(const HostInstance& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; } /** *The IDs and instance type that are currently running on the Dedicated * Host.
*/ inline Host& AddInstances(HostInstance&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; } /** *The Dedicated Host's state.
*/ inline const AllocationState& GetState() const{ return m_state; } /** *The Dedicated Host's state.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The Dedicated Host's state.
*/ inline void SetState(const AllocationState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The Dedicated Host's state.
*/ inline void SetState(AllocationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The Dedicated Host's state.
*/ inline Host& WithState(const AllocationState& value) { SetState(value); return *this;} /** *The Dedicated Host's state.
*/ inline Host& WithState(AllocationState&& value) { SetState(std::move(value)); return *this;} /** *The time that the Dedicated Host was allocated.
*/ inline const Aws::Utils::DateTime& GetAllocationTime() const{ return m_allocationTime; } /** *The time that the Dedicated Host was allocated.
*/ inline bool AllocationTimeHasBeenSet() const { return m_allocationTimeHasBeenSet; } /** *The time that the Dedicated Host was allocated.
*/ inline void SetAllocationTime(const Aws::Utils::DateTime& value) { m_allocationTimeHasBeenSet = true; m_allocationTime = value; } /** *The time that the Dedicated Host was allocated.
*/ inline void SetAllocationTime(Aws::Utils::DateTime&& value) { m_allocationTimeHasBeenSet = true; m_allocationTime = std::move(value); } /** *The time that the Dedicated Host was allocated.
*/ inline Host& WithAllocationTime(const Aws::Utils::DateTime& value) { SetAllocationTime(value); return *this;} /** *The time that the Dedicated Host was allocated.
*/ inline Host& WithAllocationTime(Aws::Utils::DateTime&& value) { SetAllocationTime(std::move(value)); return *this;} /** *The time that the Dedicated Host was released.
*/ inline const Aws::Utils::DateTime& GetReleaseTime() const{ return m_releaseTime; } /** *The time that the Dedicated Host was released.
*/ inline bool ReleaseTimeHasBeenSet() const { return m_releaseTimeHasBeenSet; } /** *The time that the Dedicated Host was released.
*/ inline void SetReleaseTime(const Aws::Utils::DateTime& value) { m_releaseTimeHasBeenSet = true; m_releaseTime = value; } /** *The time that the Dedicated Host was released.
*/ inline void SetReleaseTime(Aws::Utils::DateTime&& value) { m_releaseTimeHasBeenSet = true; m_releaseTime = std::move(value); } /** *The time that the Dedicated Host was released.
*/ inline Host& WithReleaseTime(const Aws::Utils::DateTime& value) { SetReleaseTime(value); return *this;} /** *The time that the Dedicated Host was released.
*/ inline Host& WithReleaseTime(Aws::Utils::DateTime&& value) { SetReleaseTime(std::move(value)); return *this;} /** *Any tags assigned to the Dedicated Host.
*/ inline const Aws::VectorAny tags assigned to the Dedicated Host.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Any tags assigned to the Dedicated Host.
*/ inline void SetTags(const Aws::VectorAny tags assigned to the Dedicated Host.
*/ inline void SetTags(Aws::VectorAny tags assigned to the Dedicated Host.
*/ inline Host& WithTags(const Aws::VectorAny tags assigned to the Dedicated Host.
*/ inline Host& WithTags(Aws::VectorAny tags assigned to the Dedicated Host.
*/ inline Host& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Any tags assigned to the Dedicated Host.
*/ inline Host& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *Indicates whether host recovery is enabled or disabled for the Dedicated * Host.
*/ inline const HostRecovery& GetHostRecovery() const{ return m_hostRecovery; } /** *Indicates whether host recovery is enabled or disabled for the Dedicated * Host.
*/ inline bool HostRecoveryHasBeenSet() const { return m_hostRecoveryHasBeenSet; } /** *Indicates whether host recovery is enabled or disabled for the Dedicated * Host.
*/ inline void SetHostRecovery(const HostRecovery& value) { m_hostRecoveryHasBeenSet = true; m_hostRecovery = value; } /** *Indicates whether host recovery is enabled or disabled for the Dedicated * Host.
*/ inline void SetHostRecovery(HostRecovery&& value) { m_hostRecoveryHasBeenSet = true; m_hostRecovery = std::move(value); } /** *Indicates whether host recovery is enabled or disabled for the Dedicated * Host.
*/ inline Host& WithHostRecovery(const HostRecovery& value) { SetHostRecovery(value); return *this;} /** *Indicates whether host recovery is enabled or disabled for the Dedicated * Host.
*/ inline Host& WithHostRecovery(HostRecovery&& value) { SetHostRecovery(std::move(value)); return *this;} /** *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.
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.
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.
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.
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.
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.
The ID of the Amazon Web Services account that owns the Dedicated Host.
*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *The ID of the Amazon Web Services account that owns the Dedicated Host.
*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *The ID of the Amazon Web Services account that owns the Dedicated Host.
*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *The ID of the Amazon Web Services account that owns the Dedicated Host.
*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *The ID of the Amazon Web Services account that owns the Dedicated Host.
*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *The ID of the Amazon Web Services account that owns the Dedicated Host.
*/ inline Host& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *The ID of the Amazon Web Services account that owns the Dedicated Host.
*/ inline Host& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *The ID of the Amazon Web Services account that owns the Dedicated Host.
*/ inline Host& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *The ID of the Availability Zone in which the Dedicated Host is allocated.
*/ inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; } /** *The ID of the Availability Zone in which the Dedicated Host is allocated.
*/ inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; } /** *The ID of the Availability Zone in which the Dedicated Host is allocated.
*/ inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; } /** *The ID of the Availability Zone in which the Dedicated Host is allocated.
*/ inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); } /** *The ID of the Availability Zone in which the Dedicated Host is allocated.
*/ inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); } /** *The ID of the Availability Zone in which the Dedicated Host is allocated.
*/ inline Host& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;} /** *The ID of the Availability Zone in which the Dedicated Host is allocated.
*/ inline Host& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;} /** *The ID of the Availability Zone in which the Dedicated Host is allocated.
*/ inline Host& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;} /** *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.
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.
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.
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.
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which * the Dedicated Host is allocated.
*/ inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; } /** *The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which * the Dedicated Host is allocated.
*/ inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which * the Dedicated Host is allocated.
*/ inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; } /** *The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which * the Dedicated Host is allocated.
*/ inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which * the Dedicated Host is allocated.
*/ inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); } /** *The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which * the Dedicated Host is allocated.
*/ inline Host& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which * the Dedicated Host is allocated.
*/ inline Host& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which * the Dedicated Host is allocated.
*/ inline Host& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;} /** *Indicates whether host maintenance is enabled or disabled for the Dedicated * Host.
*/ inline const HostMaintenance& GetHostMaintenance() const{ return m_hostMaintenance; } /** *Indicates whether host maintenance is enabled or disabled for the Dedicated * Host.
*/ inline bool HostMaintenanceHasBeenSet() const { return m_hostMaintenanceHasBeenSet; } /** *Indicates whether host maintenance is enabled or disabled for the Dedicated * Host.
*/ inline void SetHostMaintenance(const HostMaintenance& value) { m_hostMaintenanceHasBeenSet = true; m_hostMaintenance = value; } /** *Indicates whether host maintenance is enabled or disabled for the Dedicated * Host.
*/ inline void SetHostMaintenance(HostMaintenance&& value) { m_hostMaintenanceHasBeenSet = true; m_hostMaintenance = std::move(value); } /** *Indicates whether host maintenance is enabled or disabled for the Dedicated * Host.
*/ inline Host& WithHostMaintenance(const HostMaintenance& value) { SetHostMaintenance(value); return *this;} /** *Indicates whether host maintenance is enabled or disabled for the Dedicated * Host.
*/ inline Host& WithHostMaintenance(HostMaintenance&& value) { SetHostMaintenance(std::move(value)); return *this;} /** *The ID of the Outpost hardware asset on which the Dedicated Host is * allocated.
*/ inline const Aws::String& GetAssetId() const{ return m_assetId; } /** *The ID of the Outpost hardware asset on which the Dedicated Host is * allocated.
*/ inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; } /** *The ID of the Outpost hardware asset on which the Dedicated Host is * allocated.
*/ inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; } /** *The ID of the Outpost hardware asset on which the Dedicated Host is * allocated.
*/ inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); } /** *The ID of the Outpost hardware asset on which the Dedicated Host is * allocated.
*/ inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); } /** *The ID of the Outpost hardware asset on which the Dedicated Host is * allocated.
*/ inline Host& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;} /** *The ID of the Outpost hardware asset on which the Dedicated Host is * allocated.
*/ inline Host& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;} /** *The ID of the Outpost hardware asset on which the Dedicated Host is * allocated.
*/ inline Host& WithAssetId(const char* value) { SetAssetId(value); return *this;} private: AutoPlacement m_autoPlacement; bool m_autoPlacementHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; AvailableCapacity m_availableCapacity; bool m_availableCapacityHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_hostId; bool m_hostIdHasBeenSet = false; HostProperties m_hostProperties; bool m_hostPropertiesHasBeenSet = false; Aws::String m_hostReservationId; bool m_hostReservationIdHasBeenSet = false; Aws::Vector