/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Container for request parameters to the
* PurchaseReservedInstanceOffering
operation.See
* Also:
AWS
* API Reference
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