/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The maximum price per unit hour that you are willing to pay for a Spot
* Instance. We do not recommend using this parameter because it can lead to
* increased interruptions. If you do not specify this parameter, you will pay the
* current Spot price. If you specify a maximum price, your
* instances will be interrupted more frequently than if you do not specify this
* parameter.See Also:
AWS API
* Reference
The Availability Zone.
*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *The Availability Zone.
*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *The Availability Zone.
*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *The Availability Zone.
*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *The Availability Zone.
*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *The Availability Zone.
*/ inline SpotPrice& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The Availability Zone.
*/ inline SpotPrice& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The Availability Zone.
*/ inline SpotPrice& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *The instance type.
*/ inline const InstanceType& GetInstanceType() const{ return m_instanceType; } /** *The instance type.
*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *The instance type.
*/ inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *The instance type.
*/ inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *The instance type.
*/ inline SpotPrice& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *The instance type.
*/ inline SpotPrice& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *A general description of the AMI.
*/ inline const RIProductDescription& GetProductDescription() const{ return m_productDescription; } /** *A general description of the AMI.
*/ inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; } /** *A general description of the AMI.
*/ inline void SetProductDescription(const RIProductDescription& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; } /** *A general description of the AMI.
*/ inline void SetProductDescription(RIProductDescription&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); } /** *A general description of the AMI.
*/ inline SpotPrice& WithProductDescription(const RIProductDescription& value) { SetProductDescription(value); return *this;} /** *A general description of the AMI.
*/ inline SpotPrice& WithProductDescription(RIProductDescription&& value) { SetProductDescription(std::move(value)); return *this;} /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline const Aws::String& GetSpotPrice() const{ return m_spotPrice; } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline bool SpotPriceHasBeenSet() const { return m_spotPriceHasBeenSet; } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline void SetSpotPrice(const Aws::String& value) { m_spotPriceHasBeenSet = true; m_spotPrice = value; } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline void SetSpotPrice(Aws::String&& value) { m_spotPriceHasBeenSet = true; m_spotPrice = std::move(value); } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline void SetSpotPrice(const char* value) { m_spotPriceHasBeenSet = true; m_spotPrice.assign(value); } /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline SpotPrice& WithSpotPrice(const Aws::String& value) { SetSpotPrice(value); return *this;} /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline SpotPrice& WithSpotPrice(Aws::String&& value) { SetSpotPrice(std::move(value)); return *this;} /** *The maximum price per unit hour that you are willing to pay for a Spot * Instance. We do not recommend using this parameter because it can lead to * increased interruptions. If you do not specify this parameter, you will pay the * current Spot price.
If you specify a maximum price, your * instances will be interrupted more frequently than if you do not specify this * parameter.
*/ inline SpotPrice& WithSpotPrice(const char* value) { SetSpotPrice(value); return *this;} /** *The date and time the request was created, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).
*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *The date and time the request was created, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).
*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *The date and time the request was created, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).
*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *The date and time the request was created, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).
*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *The date and time the request was created, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).
*/ inline SpotPrice& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *The date and time the request was created, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).
*/ inline SpotPrice& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} private: Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; InstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; RIProductDescription m_productDescription; bool m_productDescriptionHasBeenSet = false; Aws::String m_spotPrice; bool m_spotPriceHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws