/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class GetHostReservationPurchasePreviewRequest : public EC2Request { public: AWS_EC2_API GetHostReservationPurchasePreviewRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetHostReservationPurchasePreview"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The IDs of the Dedicated Hosts with which the reservation is associated.

*/ inline const Aws::Vector& GetHostIdSet() const{ return m_hostIdSet; } /** *

The IDs of the Dedicated Hosts with which the reservation is associated.

*/ inline bool HostIdSetHasBeenSet() const { return m_hostIdSetHasBeenSet; } /** *

The IDs of the Dedicated Hosts with which the reservation is associated.

*/ inline void SetHostIdSet(const Aws::Vector& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet = value; } /** *

The IDs of the Dedicated Hosts with which the reservation is associated.

*/ inline void SetHostIdSet(Aws::Vector&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet = std::move(value); } /** *

The IDs of the Dedicated Hosts with which the reservation is associated.

*/ inline GetHostReservationPurchasePreviewRequest& WithHostIdSet(const Aws::Vector& value) { SetHostIdSet(value); return *this;} /** *

The IDs of the Dedicated Hosts with which the reservation is associated.

*/ inline GetHostReservationPurchasePreviewRequest& WithHostIdSet(Aws::Vector&& value) { SetHostIdSet(std::move(value)); return *this;} /** *

The IDs of the Dedicated Hosts with which the reservation is associated.

*/ inline GetHostReservationPurchasePreviewRequest& AddHostIdSet(const Aws::String& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; } /** *

The IDs of the Dedicated Hosts with which the reservation is associated.

*/ inline GetHostReservationPurchasePreviewRequest& AddHostIdSet(Aws::String&& value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(std::move(value)); return *this; } /** *

The IDs of the Dedicated Hosts with which the reservation is associated.

*/ inline GetHostReservationPurchasePreviewRequest& AddHostIdSet(const char* value) { m_hostIdSetHasBeenSet = true; m_hostIdSet.push_back(value); return *this; } /** *

The offering ID of the reservation.

*/ inline const Aws::String& GetOfferingId() const{ return m_offeringId; } /** *

The offering ID of the reservation.

*/ inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; } /** *

The offering ID of the reservation.

*/ inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; } /** *

The offering ID of the reservation.

*/ inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); } /** *

The offering ID of the reservation.

*/ inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); } /** *

The offering ID of the reservation.

*/ inline GetHostReservationPurchasePreviewRequest& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;} /** *

The offering ID of the reservation.

*/ inline GetHostReservationPurchasePreviewRequest& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;} /** *

The offering ID of the reservation.

*/ inline GetHostReservationPurchasePreviewRequest& WithOfferingId(const char* value) { SetOfferingId(value); return *this;} private: Aws::Vector m_hostIdSet; bool m_hostIdSetHasBeenSet = false; Aws::String m_offeringId; bool m_offeringIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws