7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
14namespace OpenSearchService
35 inline virtual const char*
GetServiceRequestName()
const override {
return "PurchaseReservedInstanceOffering"; }
48 inline void SetReservedInstanceOfferingId(
const char* value) { m_reservedInstanceOfferingIdHasBeenSet =
true; m_reservedInstanceOfferingId.assign(value); }
62 inline void SetReservationName(
const char* value) { m_reservationNameHasBeenSet =
true; m_reservationName.assign(value); }
74 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
80 bool m_reservedInstanceOfferingIdHasBeenSet =
false;
83 bool m_reservationNameHasBeenSet =
false;
86 bool m_instanceCountHasBeenSet =
false;
void SetInstanceCount(int value)
void SetReservationName(const Aws::String &value)
PurchaseReservedInstanceOfferingRequest & WithReservedInstanceOfferingId(const Aws::String &value)
PurchaseReservedInstanceOfferingRequest & WithReservedInstanceOfferingId(Aws::String &&value)
void SetReservedInstanceOfferingId(Aws::String &&value)
void SetReservationName(const char *value)
int GetInstanceCount() const
PurchaseReservedInstanceOfferingRequest & WithReservationName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetReservedInstanceOfferingId(const char *value)
bool ReservationNameHasBeenSet() const
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
AWS_OPENSEARCHSERVICE_API PurchaseReservedInstanceOfferingRequest()
const Aws::String & GetReservationName() const
bool ReservedInstanceOfferingIdHasBeenSet() const
PurchaseReservedInstanceOfferingRequest & WithReservationName(const char *value)
void SetReservationName(Aws::String &&value)
bool InstanceCountHasBeenSet() const
const Aws::String & GetReservedInstanceOfferingId() const
PurchaseReservedInstanceOfferingRequest & WithReservedInstanceOfferingId(const char *value)
PurchaseReservedInstanceOfferingRequest & WithReservationName(const Aws::String &value)
void SetReservedInstanceOfferingId(const Aws::String &value)
PurchaseReservedInstanceOfferingRequest & WithInstanceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String