/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes Spot Instance placement.See Also:
AWS
* API Reference
The Availability Zone.
[Spot Fleet only] To specify multiple * Availability Zones, separate them using commas; for example, "us-west-2a, * us-west-2b".
*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *The Availability Zone.
[Spot Fleet only] To specify multiple * Availability Zones, separate them using commas; for example, "us-west-2a, * us-west-2b".
*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *The Availability Zone.
[Spot Fleet only] To specify multiple * Availability Zones, separate them using commas; for example, "us-west-2a, * us-west-2b".
*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *The Availability Zone.
[Spot Fleet only] To specify multiple * Availability Zones, separate them using commas; for example, "us-west-2a, * us-west-2b".
*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *The Availability Zone.
[Spot Fleet only] To specify multiple * Availability Zones, separate them using commas; for example, "us-west-2a, * us-west-2b".
*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *The Availability Zone.
[Spot Fleet only] To specify multiple * Availability Zones, separate them using commas; for example, "us-west-2a, * us-west-2b".
*/ inline SpotPlacement& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The Availability Zone.
[Spot Fleet only] To specify multiple * Availability Zones, separate them using commas; for example, "us-west-2a, * us-west-2b".
*/ inline SpotPlacement& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The Availability Zone.
[Spot Fleet only] To specify multiple * Availability Zones, separate them using commas; for example, "us-west-2a, * us-west-2b".
*/ inline SpotPlacement& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *The name of the placement group.
*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *The name of the placement group.
*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *The name of the placement group.
*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *The name of the placement group.
*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *The name of the placement group.
*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *The name of the placement group.
*/ inline SpotPlacement& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *The name of the placement group.
*/ inline SpotPlacement& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *The name of the placement group.
*/ inline SpotPlacement& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *The tenancy of the instance (if the instance is running in a VPC). An
* instance with a tenancy of dedicated
runs on single-tenant
* hardware. The host
tenancy is not supported for Spot Instances.
The tenancy of the instance (if the instance is running in a VPC). An
* instance with a tenancy of dedicated
runs on single-tenant
* hardware. The host
tenancy is not supported for Spot Instances.
The tenancy of the instance (if the instance is running in a VPC). An
* instance with a tenancy of dedicated
runs on single-tenant
* hardware. The host
tenancy is not supported for Spot Instances.
The tenancy of the instance (if the instance is running in a VPC). An
* instance with a tenancy of dedicated
runs on single-tenant
* hardware. The host
tenancy is not supported for Spot Instances.
The tenancy of the instance (if the instance is running in a VPC). An
* instance with a tenancy of dedicated
runs on single-tenant
* hardware. The host
tenancy is not supported for Spot Instances.
The tenancy of the instance (if the instance is running in a VPC). An
* instance with a tenancy of dedicated
runs on single-tenant
* hardware. The host
tenancy is not supported for Spot Instances.