/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about the Dedicated Host Reservation offering.See
* Also:
AWS
* API Reference
The currency of the offering.
*/ inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; } /** *The currency of the offering.
*/ inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; } /** *The currency of the offering.
*/ inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; } /** *The currency of the offering.
*/ inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); } /** *The currency of the offering.
*/ inline HostOffering& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;} /** *The currency of the offering.
*/ inline HostOffering& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;} /** *The duration of the offering (in seconds).
*/ inline int GetDuration() const{ return m_duration; } /** *The duration of the offering (in seconds).
*/ inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } /** *The duration of the offering (in seconds).
*/ inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; } /** *The duration of the offering (in seconds).
*/ inline HostOffering& WithDuration(int value) { SetDuration(value); return *this;} /** *The hourly price of the offering.
*/ inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; } /** *The hourly price of the offering.
*/ inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; } /** *The hourly price of the offering.
*/ inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; } /** *The hourly price of the offering.
*/ inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); } /** *The hourly price of the offering.
*/ inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); } /** *The hourly price of the offering.
*/ inline HostOffering& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;} /** *The hourly price of the offering.
*/ inline HostOffering& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;} /** *The hourly price of the offering.
*/ inline HostOffering& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;} /** *The instance family of the offering.
*/ inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; } /** *The instance family of the offering.
*/ inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; } /** *The instance family of the offering.
*/ inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; } /** *The instance family of the offering.
*/ inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); } /** *The instance family of the offering.
*/ inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); } /** *The instance family of the offering.
*/ inline HostOffering& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;} /** *The instance family of the offering.
*/ inline HostOffering& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;} /** *The instance family of the offering.
*/ inline HostOffering& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;} /** *The ID of the offering.
*/ inline const Aws::String& GetOfferingId() const{ return m_offeringId; } /** *The ID of the offering.
*/ inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; } /** *The ID of the offering.
*/ inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; } /** *The ID of the offering.
*/ inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); } /** *The ID of the offering.
*/ inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); } /** *The ID of the offering.
*/ inline HostOffering& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;} /** *The ID of the offering.
*/ inline HostOffering& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;} /** *The ID of the offering.
*/ inline HostOffering& WithOfferingId(const char* value) { SetOfferingId(value); return *this;} /** *The available payment option.
*/ inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; } /** *The available payment option.
*/ inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; } /** *The available payment option.
*/ inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; } /** *The available payment option.
*/ inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); } /** *The available payment option.
*/ inline HostOffering& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;} /** *The available payment option.
*/ inline HostOffering& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;} /** *The upfront price of the offering. Does not apply to No Upfront * offerings.
*/ inline const Aws::String& GetUpfrontPrice() const{ return m_upfrontPrice; } /** *The upfront price of the offering. Does not apply to No Upfront * offerings.
*/ inline bool UpfrontPriceHasBeenSet() const { return m_upfrontPriceHasBeenSet; } /** *The upfront price of the offering. Does not apply to No Upfront * offerings.
*/ inline void SetUpfrontPrice(const Aws::String& value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice = value; } /** *The upfront price of the offering. Does not apply to No Upfront * offerings.
*/ inline void SetUpfrontPrice(Aws::String&& value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice = std::move(value); } /** *The upfront price of the offering. Does not apply to No Upfront * offerings.
*/ inline void SetUpfrontPrice(const char* value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice.assign(value); } /** *The upfront price of the offering. Does not apply to No Upfront * offerings.
*/ inline HostOffering& WithUpfrontPrice(const Aws::String& value) { SetUpfrontPrice(value); return *this;} /** *The upfront price of the offering. Does not apply to No Upfront * offerings.
*/ inline HostOffering& WithUpfrontPrice(Aws::String&& value) { SetUpfrontPrice(std::move(value)); return *this;} /** *The upfront price of the offering. Does not apply to No Upfront * offerings.
*/ inline HostOffering& WithUpfrontPrice(const char* value) { SetUpfrontPrice(value); return *this;} private: CurrencyCodeValues m_currencyCode; bool m_currencyCodeHasBeenSet = false; int m_duration; bool m_durationHasBeenSet = false; Aws::String m_hourlyPrice; bool m_hourlyPriceHasBeenSet = false; Aws::String m_instanceFamily; bool m_instanceFamilyHasBeenSet = false; Aws::String m_offeringId; bool m_offeringIdHasBeenSet = false; PaymentOption m_paymentOption; bool m_paymentOptionHasBeenSet = false; Aws::String m_upfrontPrice; bool m_upfrontPriceHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws