/**
* 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 and associated Dedicated
* Hosts.See Also:
AWS
* API Reference
The number of Dedicated Hosts the reservation is associated with.
*/ inline int GetCount() const{ return m_count; } /** *The number of Dedicated Hosts the reservation is associated with.
*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *The number of Dedicated Hosts the reservation is associated with.
*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *The number of Dedicated Hosts the reservation is associated with.
*/ inline HostReservation& WithCount(int value) { SetCount(value); return *this;} /** *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 length of the reservation's term, specified in seconds. Can be
* 31536000 (1 year)
| 94608000 (3 years)
.
The length of the reservation's term, specified in seconds. Can be
* 31536000 (1 year)
| 94608000 (3 years)
.
The length of the reservation's term, specified in seconds. Can be
* 31536000 (1 year)
| 94608000 (3 years)
.
The length of the reservation's term, specified in seconds. Can be
* 31536000 (1 year)
| 94608000 (3 years)
.
The date and time that the reservation ends.
*/ inline const Aws::Utils::DateTime& GetEnd() const{ return m_end; } /** *The date and time that the reservation ends.
*/ inline bool EndHasBeenSet() const { return m_endHasBeenSet; } /** *The date and time that the reservation ends.
*/ inline void SetEnd(const Aws::Utils::DateTime& value) { m_endHasBeenSet = true; m_end = value; } /** *The date and time that the reservation ends.
*/ inline void SetEnd(Aws::Utils::DateTime&& value) { m_endHasBeenSet = true; m_end = std::move(value); } /** *The date and time that the reservation ends.
*/ inline HostReservation& WithEnd(const Aws::Utils::DateTime& value) { SetEnd(value); return *this;} /** *The date and time that the reservation ends.
*/ inline HostReservation& WithEnd(Aws::Utils::DateTime&& value) { SetEnd(std::move(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 HostReservation& WithHostIdSet(const Aws::VectorThe IDs of the Dedicated Hosts associated with the reservation.
*/ inline HostReservation& WithHostIdSet(Aws::VectorThe IDs of the Dedicated Hosts associated with the reservation.
*/ inline HostReservation& 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 HostReservation& 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 HostReservation& AddHostIdSet(const char* value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; } /** *The ID of the reservation that specifies the associated Dedicated Hosts.
*/ inline const Aws::String& GetHostReservationId() const{ return m_hostReservationId; } /** *The ID of the reservation that specifies the associated Dedicated Hosts.
*/ inline bool HostReservationIdHasBeenSet() const { return m_hostReservationIdHasBeenSet; } /** *The ID of the reservation that specifies the associated Dedicated Hosts.
*/ inline void SetHostReservationId(const Aws::String& value) { m_hostReservationIdHasBeenSet = true; m_hostReservationId = value; } /** *The ID of the reservation that specifies the associated Dedicated Hosts.
*/ inline void SetHostReservationId(Aws::String&& value) { m_hostReservationIdHasBeenSet = true; m_hostReservationId = std::move(value); } /** *The ID of the reservation that specifies the associated Dedicated Hosts.
*/ inline void SetHostReservationId(const char* value) { m_hostReservationIdHasBeenSet = true; m_hostReservationId.assign(value); } /** *The ID of the reservation that specifies the associated Dedicated Hosts.
*/ inline HostReservation& WithHostReservationId(const Aws::String& value) { SetHostReservationId(value); return *this;} /** *The ID of the reservation that specifies the associated Dedicated Hosts.
*/ inline HostReservation& WithHostReservationId(Aws::String&& value) { SetHostReservationId(std::move(value)); return *this;} /** *The ID of the reservation that specifies the associated Dedicated Hosts.
*/ inline HostReservation& WithHostReservationId(const char* value) { SetHostReservationId(value); return *this;} /** *The hourly price of the reservation.
*/ inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; } /** *The hourly price of the reservation.
*/ inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; } /** *The hourly price of the reservation.
*/ inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; } /** *The hourly price of the reservation.
*/ inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); } /** *The hourly price of the reservation.
*/ inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); } /** *The hourly price of the reservation.
*/ inline HostReservation& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;} /** *The hourly price of the reservation.
*/ inline HostReservation& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;} /** *The hourly price of the reservation.
*/ inline HostReservation& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;} /** *The instance family of the Dedicated Host Reservation. The instance family on * the Dedicated Host must be the same in order for it to benefit from the * reservation.
*/ inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; } /** *The instance family of the Dedicated Host Reservation. The instance family on * the Dedicated Host must be the same in order for it to benefit from the * reservation.
*/ inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; } /** *The instance family of the Dedicated Host Reservation. The instance family on * the Dedicated Host must be the same in order for it to benefit from the * reservation.
*/ inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; } /** *The instance family of the Dedicated Host Reservation. The instance family on * the Dedicated Host must be the same in order for it to benefit from the * reservation.
*/ inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); } /** *The instance family of the Dedicated Host Reservation. The instance family on * the Dedicated Host must be the same in order for it to benefit from the * reservation.
*/ inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); } /** *The instance family of the Dedicated Host Reservation. The instance family on * the Dedicated Host must be the same in order for it to benefit from the * reservation.
*/ inline HostReservation& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;} /** *The instance family of the Dedicated Host Reservation. The instance family on * the Dedicated Host must be the same in order for it to benefit from the * reservation.
*/ inline HostReservation& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;} /** *The instance family of the Dedicated Host Reservation. The instance family on * the Dedicated Host must be the same in order for it to benefit from the * reservation.
*/ inline HostReservation& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;} /** *The ID of the reservation. This remains the same regardless of which * Dedicated Hosts are associated with it.
*/ inline const Aws::String& GetOfferingId() const{ return m_offeringId; } /** *The ID of the reservation. This remains the same regardless of which * Dedicated Hosts are associated with it.
*/ inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; } /** *The ID of the reservation. This remains the same regardless of which * Dedicated Hosts are associated with it.
*/ inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; } /** *The ID of the reservation. This remains the same regardless of which * Dedicated Hosts are associated with it.
*/ inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); } /** *The ID of the reservation. This remains the same regardless of which * Dedicated Hosts are associated with it.
*/ inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); } /** *The ID of the reservation. This remains the same regardless of which * Dedicated Hosts are associated with it.
*/ inline HostReservation& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;} /** *The ID of the reservation. This remains the same regardless of which * Dedicated Hosts are associated with it.
*/ inline HostReservation& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;} /** *The ID of the reservation. This remains the same regardless of which * Dedicated Hosts are associated with it.
*/ inline HostReservation& WithOfferingId(const char* value) { SetOfferingId(value); return *this;} /** *The payment option selected for this reservation.
*/ inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; } /** *The payment option selected for this reservation.
*/ inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; } /** *The payment option selected for this reservation.
*/ inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; } /** *The payment option selected for this reservation.
*/ inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); } /** *The payment option selected for this reservation.
*/ inline HostReservation& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;} /** *The payment option selected for this reservation.
*/ inline HostReservation& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;} /** *The date and time that the reservation started.
*/ inline const Aws::Utils::DateTime& GetStart() const{ return m_start; } /** *The date and time that the reservation started.
*/ inline bool StartHasBeenSet() const { return m_startHasBeenSet; } /** *The date and time that the reservation started.
*/ inline void SetStart(const Aws::Utils::DateTime& value) { m_startHasBeenSet = true; m_start = value; } /** *The date and time that the reservation started.
*/ inline void SetStart(Aws::Utils::DateTime&& value) { m_startHasBeenSet = true; m_start = std::move(value); } /** *The date and time that the reservation started.
*/ inline HostReservation& WithStart(const Aws::Utils::DateTime& value) { SetStart(value); return *this;} /** *The date and time that the reservation started.
*/ inline HostReservation& WithStart(Aws::Utils::DateTime&& value) { SetStart(std::move(value)); return *this;} /** *The state of the reservation.
*/ inline const ReservationState& GetState() const{ return m_state; } /** *The state of the reservation.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the reservation.
*/ inline void SetState(const ReservationState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the reservation.
*/ inline void SetState(ReservationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the reservation.
*/ inline HostReservation& WithState(const ReservationState& value) { SetState(value); return *this;} /** *The state of the reservation.
*/ inline HostReservation& WithState(ReservationState&& value) { SetState(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 HostReservation& WithUpfrontPrice(const Aws::String& value) { SetUpfrontPrice(value); return *this;} /** *The upfront price of the reservation.
*/ inline HostReservation& WithUpfrontPrice(Aws::String&& value) { SetUpfrontPrice(std::move(value)); return *this;} /** *The upfront price of the reservation.
*/ inline HostReservation& WithUpfrontPrice(const char* value) { SetUpfrontPrice(value); return *this;} /** *Any tags assigned to the Dedicated Host Reservation.
*/ inline const Aws::VectorAny tags assigned to the Dedicated Host Reservation.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Any tags assigned to the Dedicated Host Reservation.
*/ inline void SetTags(const Aws::VectorAny tags assigned to the Dedicated Host Reservation.
*/ inline void SetTags(Aws::VectorAny tags assigned to the Dedicated Host Reservation.
*/ inline HostReservation& WithTags(const Aws::VectorAny tags assigned to the Dedicated Host Reservation.
*/ inline HostReservation& WithTags(Aws::VectorAny tags assigned to the Dedicated Host Reservation.
*/ inline HostReservation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Any tags assigned to the Dedicated Host Reservation.
*/ inline HostReservation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: int m_count; bool m_countHasBeenSet = false; CurrencyCodeValues m_currencyCode; bool m_currencyCodeHasBeenSet = false; int m_duration; bool m_durationHasBeenSet = false; Aws::Utils::DateTime m_end; bool m_endHasBeenSet = false; Aws::Vector