/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the result of the purchase.See Also:
AWS API
* Reference
The currency in which the UpfrontPrice
and
* HourlyPrice
amounts are specified. At this time, the only supported
* currency is USD
.
The currency in which the UpfrontPrice
and
* HourlyPrice
amounts are specified. At this time, the only supported
* currency is USD
.
The currency in which the UpfrontPrice
and
* HourlyPrice
amounts are specified. At this time, the only supported
* currency is USD
.
The currency in which the UpfrontPrice
and
* HourlyPrice
amounts are specified. At this time, the only supported
* currency is USD
.
The currency in which the UpfrontPrice
and
* HourlyPrice
amounts are specified. At this time, the only supported
* currency is USD
.
The currency in which the UpfrontPrice
and
* HourlyPrice
amounts are specified. At this time, the only supported
* currency is USD
.
The duration of the reservation's term in seconds.
*/ inline int GetDuration() const{ return m_duration; } /** *The duration of the reservation's term in seconds.
*/ inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } /** *The duration of the reservation's term in seconds.
*/ inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; } /** *The duration of the reservation's term in seconds.
*/ inline Purchase& WithDuration(int value) { SetDuration(value); return *this;} /** *The IDs of the Dedicated Hosts associated with the reservation.
*/ inline const Aws::VectorThe IDs of the Dedicated Hosts associated with the reservation.
*/ inline bool HostIdSetHasBeenSet() const { return m_hostIdSetHasBeenSet; } /** *The IDs of the Dedicated Hosts associated with the reservation.
*/ inline void SetHostIdSet(const Aws::VectorThe IDs of the Dedicated Hosts associated with the reservation.
*/ inline void SetHostIdSet(Aws::VectorThe IDs of the Dedicated Hosts associated with the reservation.
*/ inline Purchase& WithHostIdSet(const Aws::VectorThe IDs of the Dedicated Hosts associated with the reservation.
*/ inline Purchase& WithHostIdSet(Aws::VectorThe IDs of the Dedicated Hosts associated with the reservation.
*/ inline Purchase& AddHostIdSet(const Aws::String& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; } /** *The IDs of the Dedicated Hosts associated with the reservation.
*/ inline Purchase& AddHostIdSet(Aws::String&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(std::move(value)); return *this; } /** *The IDs of the Dedicated Hosts associated with the reservation.
*/ inline Purchase& AddHostIdSet(const char* value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; } /** *The ID of the reservation.
*/ inline const Aws::String& GetHostReservationId() const{ return m_hostReservationId; } /** *The ID of the reservation.
*/ inline bool HostReservationIdHasBeenSet() const { return m_hostReservationIdHasBeenSet; } /** *The ID of the reservation.
*/ inline void SetHostReservationId(const Aws::String& value) { m_hostReservationIdHasBeenSet = true; m_hostReservationId = value; } /** *The ID of the reservation.
*/ inline void SetHostReservationId(Aws::String&& value) { m_hostReservationIdHasBeenSet = true; m_hostReservationId = std::move(value); } /** *The ID of the reservation.
*/ inline void SetHostReservationId(const char* value) { m_hostReservationIdHasBeenSet = true; m_hostReservationId.assign(value); } /** *The ID of the reservation.
*/ inline Purchase& WithHostReservationId(const Aws::String& value) { SetHostReservationId(value); return *this;} /** *The ID of the reservation.
*/ inline Purchase& WithHostReservationId(Aws::String&& value) { SetHostReservationId(std::move(value)); return *this;} /** *The ID of the reservation.
*/ inline Purchase& WithHostReservationId(const char* value) { SetHostReservationId(value); return *this;} /** *The hourly price of the reservation per hour.
*/ inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; } /** *The hourly price of the reservation per hour.
*/ inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; } /** *The hourly price of the reservation per hour.
*/ inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; } /** *The hourly price of the reservation per hour.
*/ inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); } /** *The hourly price of the reservation per hour.
*/ inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); } /** *The hourly price of the reservation per hour.
*/ inline Purchase& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;} /** *The hourly price of the reservation per hour.
*/ inline Purchase& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;} /** *The hourly price of the reservation per hour.
*/ inline Purchase& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;} /** *The instance family on the Dedicated Host that the reservation can be * associated with.
*/ inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; } /** *The instance family on the Dedicated Host that the reservation can be * associated with.
*/ inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; } /** *The instance family on the Dedicated Host that the reservation can be * associated with.
*/ inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; } /** *The instance family on the Dedicated Host that the reservation can be * associated with.
*/ inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); } /** *The instance family on the Dedicated Host that the reservation can be * associated with.
*/ inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); } /** *The instance family on the Dedicated Host that the reservation can be * associated with.
*/ inline Purchase& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;} /** *The instance family on the Dedicated Host that the reservation can be * associated with.
*/ inline Purchase& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;} /** *The instance family on the Dedicated Host that the reservation can be * associated with.
*/ inline Purchase& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;} /** *The payment option for the reservation.
*/ inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; } /** *The payment option for the reservation.
*/ inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; } /** *The payment option for the reservation.
*/ inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; } /** *The payment option for the reservation.
*/ inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); } /** *The payment option for the reservation.
*/ inline Purchase& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;} /** *The payment option for the reservation.
*/ inline Purchase& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;} /** *The upfront price of the reservation.
*/ inline const Aws::String& GetUpfrontPrice() const{ return m_upfrontPrice; } /** *The upfront price of the reservation.
*/ inline bool UpfrontPriceHasBeenSet() const { return m_upfrontPriceHasBeenSet; } /** *The upfront price of the reservation.
*/ inline void SetUpfrontPrice(const Aws::String& value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice = value; } /** *The upfront price of the reservation.
*/ inline void SetUpfrontPrice(Aws::String&& value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice = std::move(value); } /** *The upfront price of the reservation.
*/ inline void SetUpfrontPrice(const char* value) { m_upfrontPriceHasBeenSet = true; m_upfrontPrice.assign(value); } /** *The upfront price of the reservation.
*/ inline Purchase& WithUpfrontPrice(const Aws::String& value) { SetUpfrontPrice(value); return *this;} /** *The upfront price of the reservation.
*/ inline Purchase& WithUpfrontPrice(Aws::String&& value) { SetUpfrontPrice(std::move(value)); return *this;} /** *The upfront price of the reservation.
*/ inline Purchase& WithUpfrontPrice(const char* value) { SetUpfrontPrice(value); return *this;} private: CurrencyCodeValues m_currencyCode; bool m_currencyCodeHasBeenSet = false; int m_duration; bool m_durationHasBeenSet = false; Aws::Vector