/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the parameters for PurchaseReservedInstancesOffering.See
* Also:
AWS
* API Reference
The number of Reserved Instances to purchase.
*/ inline int GetInstanceCount() const{ return m_instanceCount; } /** *The number of Reserved Instances to purchase.
*/ inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; } /** *The number of Reserved Instances to purchase.
*/ inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; } /** *The number of Reserved Instances to purchase.
*/ inline PurchaseReservedInstancesOfferingRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} /** *The ID of the Reserved Instance offering to purchase.
*/ inline const Aws::String& GetReservedInstancesOfferingId() const{ return m_reservedInstancesOfferingId; } /** *The ID of the Reserved Instance offering to purchase.
*/ inline bool ReservedInstancesOfferingIdHasBeenSet() const { return m_reservedInstancesOfferingIdHasBeenSet; } /** *The ID of the Reserved Instance offering to purchase.
*/ inline void SetReservedInstancesOfferingId(const Aws::String& value) { m_reservedInstancesOfferingIdHasBeenSet = true; m_reservedInstancesOfferingId = value; } /** *The ID of the Reserved Instance offering to purchase.
*/ inline void SetReservedInstancesOfferingId(Aws::String&& value) { m_reservedInstancesOfferingIdHasBeenSet = true; m_reservedInstancesOfferingId = std::move(value); } /** *The ID of the Reserved Instance offering to purchase.
*/ inline void SetReservedInstancesOfferingId(const char* value) { m_reservedInstancesOfferingIdHasBeenSet = true; m_reservedInstancesOfferingId.assign(value); } /** *The ID of the Reserved Instance offering to purchase.
*/ inline PurchaseReservedInstancesOfferingRequest& WithReservedInstancesOfferingId(const Aws::String& value) { SetReservedInstancesOfferingId(value); return *this;} /** *The ID of the Reserved Instance offering to purchase.
*/ inline PurchaseReservedInstancesOfferingRequest& WithReservedInstancesOfferingId(Aws::String&& value) { SetReservedInstancesOfferingId(std::move(value)); return *this;} /** *The ID of the Reserved Instance offering to purchase.
*/ inline PurchaseReservedInstancesOfferingRequest& WithReservedInstancesOfferingId(const char* value) { SetReservedInstancesOfferingId(value); return *this;} /** *Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is DryRunOperation
.
* Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is DryRunOperation
.
* Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is DryRunOperation
.
* Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is DryRunOperation
.
* Otherwise, it is UnauthorizedOperation
.
Specified for Reserved Instance Marketplace offerings to limit the total * order and ensure that the Reserved Instances are not purchased at unexpected * prices.
*/ inline const ReservedInstanceLimitPrice& GetLimitPrice() const{ return m_limitPrice; } /** *Specified for Reserved Instance Marketplace offerings to limit the total * order and ensure that the Reserved Instances are not purchased at unexpected * prices.
*/ inline bool LimitPriceHasBeenSet() const { return m_limitPriceHasBeenSet; } /** *Specified for Reserved Instance Marketplace offerings to limit the total * order and ensure that the Reserved Instances are not purchased at unexpected * prices.
*/ inline void SetLimitPrice(const ReservedInstanceLimitPrice& value) { m_limitPriceHasBeenSet = true; m_limitPrice = value; } /** *Specified for Reserved Instance Marketplace offerings to limit the total * order and ensure that the Reserved Instances are not purchased at unexpected * prices.
*/ inline void SetLimitPrice(ReservedInstanceLimitPrice&& value) { m_limitPriceHasBeenSet = true; m_limitPrice = std::move(value); } /** *Specified for Reserved Instance Marketplace offerings to limit the total * order and ensure that the Reserved Instances are not purchased at unexpected * prices.
*/ inline PurchaseReservedInstancesOfferingRequest& WithLimitPrice(const ReservedInstanceLimitPrice& value) { SetLimitPrice(value); return *this;} /** *Specified for Reserved Instance Marketplace offerings to limit the total * order and ensure that the Reserved Instances are not purchased at unexpected * prices.
*/ inline PurchaseReservedInstancesOfferingRequest& WithLimitPrice(ReservedInstanceLimitPrice&& value) { SetLimitPrice(std::move(value)); return *this;} /** *The time at which to purchase the Reserved Instance, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline const Aws::Utils::DateTime& GetPurchaseTime() const{ return m_purchaseTime; } /** *The time at which to purchase the Reserved Instance, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline bool PurchaseTimeHasBeenSet() const { return m_purchaseTimeHasBeenSet; } /** *The time at which to purchase the Reserved Instance, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline void SetPurchaseTime(const Aws::Utils::DateTime& value) { m_purchaseTimeHasBeenSet = true; m_purchaseTime = value; } /** *The time at which to purchase the Reserved Instance, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline void SetPurchaseTime(Aws::Utils::DateTime&& value) { m_purchaseTimeHasBeenSet = true; m_purchaseTime = std::move(value); } /** *The time at which to purchase the Reserved Instance, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline PurchaseReservedInstancesOfferingRequest& WithPurchaseTime(const Aws::Utils::DateTime& value) { SetPurchaseTime(value); return *this;} /** *The time at which to purchase the Reserved Instance, in UTC format (for * example, YYYY-MM-DDTHH:MM:SSZ).
*/ inline PurchaseReservedInstancesOfferingRequest& WithPurchaseTime(Aws::Utils::DateTime&& value) { SetPurchaseTime(std::move(value)); return *this;} private: int m_instanceCount; bool m_instanceCountHasBeenSet = false; Aws::String m_reservedInstancesOfferingId; bool m_reservedInstancesOfferingIdHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; ReservedInstanceLimitPrice m_limitPrice; bool m_limitPriceHasBeenSet = false; Aws::Utils::DateTime m_purchaseTime; bool m_purchaseTimeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws