AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PurchaseReservedInstanceOfferingRequest.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace OpenSearchService
15{
16namespace Model
17{
18
27 {
28 public:
29 AWS_OPENSEARCHSERVICE_API PurchaseReservedInstanceOfferingRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PurchaseReservedInstanceOffering"; }
36
37 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetReservedInstanceOfferingId() const{ return m_reservedInstanceOfferingId; }
45 inline bool ReservedInstanceOfferingIdHasBeenSet() const { return m_reservedInstanceOfferingIdHasBeenSet; }
46 inline void SetReservedInstanceOfferingId(const Aws::String& value) { m_reservedInstanceOfferingIdHasBeenSet = true; m_reservedInstanceOfferingId = value; }
47 inline void SetReservedInstanceOfferingId(Aws::String&& value) { m_reservedInstanceOfferingIdHasBeenSet = true; m_reservedInstanceOfferingId = std::move(value); }
48 inline void SetReservedInstanceOfferingId(const char* value) { m_reservedInstanceOfferingIdHasBeenSet = true; m_reservedInstanceOfferingId.assign(value); }
53
55
58 inline const Aws::String& GetReservationName() const{ return m_reservationName; }
59 inline bool ReservationNameHasBeenSet() const { return m_reservationNameHasBeenSet; }
60 inline void SetReservationName(const Aws::String& value) { m_reservationNameHasBeenSet = true; m_reservationName = value; }
61 inline void SetReservationName(Aws::String&& value) { m_reservationNameHasBeenSet = true; m_reservationName = std::move(value); }
62 inline void SetReservationName(const char* value) { m_reservationNameHasBeenSet = true; m_reservationName.assign(value); }
65 inline PurchaseReservedInstanceOfferingRequest& WithReservationName(const char* value) { SetReservationName(value); return *this;}
67
69
72 inline int GetInstanceCount() const{ return m_instanceCount; }
73 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
74 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
77 private:
78
79 Aws::String m_reservedInstanceOfferingId;
80 bool m_reservedInstanceOfferingIdHasBeenSet = false;
81
82 Aws::String m_reservationName;
83 bool m_reservationNameHasBeenSet = false;
84
85 int m_instanceCount;
86 bool m_instanceCountHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace OpenSearchService
91} // namespace Aws
PurchaseReservedInstanceOfferingRequest & WithReservedInstanceOfferingId(const Aws::String &value)
PurchaseReservedInstanceOfferingRequest & WithReservedInstanceOfferingId(Aws::String &&value)
PurchaseReservedInstanceOfferingRequest & WithReservationName(Aws::String &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
PurchaseReservedInstanceOfferingRequest & WithReservationName(const char *value)
PurchaseReservedInstanceOfferingRequest & WithReservedInstanceOfferingId(const char *value)
PurchaseReservedInstanceOfferingRequest & WithReservationName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String