/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace OpenSearchService { namespace Model { /** *

Container for request parameters to the * PurchaseReservedInstanceOffering operation.

See * Also:

AWS * API Reference

*/ class PurchaseReservedInstanceOfferingRequest : public OpenSearchServiceRequest { public: AWS_OPENSEARCHSERVICE_API PurchaseReservedInstanceOfferingRequest(); // 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 "PurchaseReservedInstanceOffering"; } AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override; /** *

The ID of the Reserved Instance offering to purchase.

*/ inline const Aws::String& GetReservedInstanceOfferingId() const{ return m_reservedInstanceOfferingId; } /** *

The ID of the Reserved Instance offering to purchase.

*/ inline bool ReservedInstanceOfferingIdHasBeenSet() const { return m_reservedInstanceOfferingIdHasBeenSet; } /** *

The ID of the Reserved Instance offering to purchase.

*/ inline void SetReservedInstanceOfferingId(const Aws::String& value) { m_reservedInstanceOfferingIdHasBeenSet = true; m_reservedInstanceOfferingId = value; } /** *

The ID of the Reserved Instance offering to purchase.

*/ inline void SetReservedInstanceOfferingId(Aws::String&& value) { m_reservedInstanceOfferingIdHasBeenSet = true; m_reservedInstanceOfferingId = std::move(value); } /** *

The ID of the Reserved Instance offering to purchase.

*/ inline void SetReservedInstanceOfferingId(const char* value) { m_reservedInstanceOfferingIdHasBeenSet = true; m_reservedInstanceOfferingId.assign(value); } /** *

The ID of the Reserved Instance offering to purchase.

*/ inline PurchaseReservedInstanceOfferingRequest& WithReservedInstanceOfferingId(const Aws::String& value) { SetReservedInstanceOfferingId(value); return *this;} /** *

The ID of the Reserved Instance offering to purchase.

*/ inline PurchaseReservedInstanceOfferingRequest& WithReservedInstanceOfferingId(Aws::String&& value) { SetReservedInstanceOfferingId(std::move(value)); return *this;} /** *

The ID of the Reserved Instance offering to purchase.

*/ inline PurchaseReservedInstanceOfferingRequest& WithReservedInstanceOfferingId(const char* value) { SetReservedInstanceOfferingId(value); return *this;} /** *

A customer-specified identifier to track this reservation.

*/ inline const Aws::String& GetReservationName() const{ return m_reservationName; } /** *

A customer-specified identifier to track this reservation.

*/ inline bool ReservationNameHasBeenSet() const { return m_reservationNameHasBeenSet; } /** *

A customer-specified identifier to track this reservation.

*/ inline void SetReservationName(const Aws::String& value) { m_reservationNameHasBeenSet = true; m_reservationName = value; } /** *

A customer-specified identifier to track this reservation.

*/ inline void SetReservationName(Aws::String&& value) { m_reservationNameHasBeenSet = true; m_reservationName = std::move(value); } /** *

A customer-specified identifier to track this reservation.

*/ inline void SetReservationName(const char* value) { m_reservationNameHasBeenSet = true; m_reservationName.assign(value); } /** *

A customer-specified identifier to track this reservation.

*/ inline PurchaseReservedInstanceOfferingRequest& WithReservationName(const Aws::String& value) { SetReservationName(value); return *this;} /** *

A customer-specified identifier to track this reservation.

*/ inline PurchaseReservedInstanceOfferingRequest& WithReservationName(Aws::String&& value) { SetReservationName(std::move(value)); return *this;} /** *

A customer-specified identifier to track this reservation.

*/ inline PurchaseReservedInstanceOfferingRequest& WithReservationName(const char* value) { SetReservationName(value); return *this;} /** *

The number of OpenSearch instances to reserve.

*/ inline int GetInstanceCount() const{ return m_instanceCount; } /** *

The number of OpenSearch instances to reserve.

*/ inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; } /** *

The number of OpenSearch instances to reserve.

*/ inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; } /** *

The number of OpenSearch instances to reserve.

*/ inline PurchaseReservedInstanceOfferingRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} private: Aws::String m_reservedInstanceOfferingId; bool m_reservedInstanceOfferingIdHasBeenSet = false; Aws::String m_reservationName; bool m_reservationNameHasBeenSet = false; int m_instanceCount; bool m_instanceCountHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws