/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the output of a PurchaseReservedInstanceOffering
* operation.See Also:
AWS
* API Reference
The ID of the Reserved Instance offering that was purchased.
*/ inline const Aws::String& GetReservedInstanceId() const{ return m_reservedInstanceId; } /** *The ID of the Reserved Instance offering that was purchased.
*/ inline void SetReservedInstanceId(const Aws::String& value) { m_reservedInstanceId = value; } /** *The ID of the Reserved Instance offering that was purchased.
*/ inline void SetReservedInstanceId(Aws::String&& value) { m_reservedInstanceId = std::move(value); } /** *The ID of the Reserved Instance offering that was purchased.
*/ inline void SetReservedInstanceId(const char* value) { m_reservedInstanceId.assign(value); } /** *The ID of the Reserved Instance offering that was purchased.
*/ inline PurchaseReservedInstanceOfferingResult& WithReservedInstanceId(const Aws::String& value) { SetReservedInstanceId(value); return *this;} /** *The ID of the Reserved Instance offering that was purchased.
*/ inline PurchaseReservedInstanceOfferingResult& WithReservedInstanceId(Aws::String&& value) { SetReservedInstanceId(std::move(value)); return *this;} /** *The ID of the Reserved Instance offering that was purchased.
*/ inline PurchaseReservedInstanceOfferingResult& WithReservedInstanceId(const char* value) { SetReservedInstanceId(value); return *this;} /** *The customer-specified identifier used to track this reservation.
*/ inline const Aws::String& GetReservationName() const{ return m_reservationName; } /** *The customer-specified identifier used to track this reservation.
*/ inline void SetReservationName(const Aws::String& value) { m_reservationName = value; } /** *The customer-specified identifier used to track this reservation.
*/ inline void SetReservationName(Aws::String&& value) { m_reservationName = std::move(value); } /** *The customer-specified identifier used to track this reservation.
*/ inline void SetReservationName(const char* value) { m_reservationName.assign(value); } /** *The customer-specified identifier used to track this reservation.
*/ inline PurchaseReservedInstanceOfferingResult& WithReservationName(const Aws::String& value) { SetReservationName(value); return *this;} /** *The customer-specified identifier used to track this reservation.
*/ inline PurchaseReservedInstanceOfferingResult& WithReservationName(Aws::String&& value) { SetReservationName(std::move(value)); return *this;} /** *The customer-specified identifier used to track this reservation.
*/ inline PurchaseReservedInstanceOfferingResult& WithReservationName(const char* value) { SetReservationName(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PurchaseReservedInstanceOfferingResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PurchaseReservedInstanceOfferingResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PurchaseReservedInstanceOfferingResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_reservedInstanceId; Aws::String m_reservationName; Aws::String m_requestId; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws