AWS SDK for C++  1.9.106
AWS SDK for C++
PurchaseReservedElasticsearchInstanceOfferingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ElasticsearchService
15 {
16 namespace Model
17 {
18 
27  {
28  public:
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 "PurchaseReservedElasticsearchInstanceOffering"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetReservedElasticsearchInstanceOfferingId() const{ return m_reservedElasticsearchInstanceOfferingId; }
44 
48  inline bool ReservedElasticsearchInstanceOfferingIdHasBeenSet() const { return m_reservedElasticsearchInstanceOfferingIdHasBeenSet; }
49 
53  inline void SetReservedElasticsearchInstanceOfferingId(const Aws::String& value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId = value; }
54 
58  inline void SetReservedElasticsearchInstanceOfferingId(Aws::String&& value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId = std::move(value); }
59 
63  inline void SetReservedElasticsearchInstanceOfferingId(const char* value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId.assign(value); }
64 
68  inline PurchaseReservedElasticsearchInstanceOfferingRequest& WithReservedElasticsearchInstanceOfferingId(const Aws::String& value) { SetReservedElasticsearchInstanceOfferingId(value); return *this;}
69 
73  inline PurchaseReservedElasticsearchInstanceOfferingRequest& WithReservedElasticsearchInstanceOfferingId(Aws::String&& value) { SetReservedElasticsearchInstanceOfferingId(std::move(value)); return *this;}
74 
78  inline PurchaseReservedElasticsearchInstanceOfferingRequest& WithReservedElasticsearchInstanceOfferingId(const char* value) { SetReservedElasticsearchInstanceOfferingId(value); return *this;}
79 
80 
84  inline const Aws::String& GetReservationName() const{ return m_reservationName; }
85 
89  inline bool ReservationNameHasBeenSet() const { return m_reservationNameHasBeenSet; }
90 
94  inline void SetReservationName(const Aws::String& value) { m_reservationNameHasBeenSet = true; m_reservationName = value; }
95 
99  inline void SetReservationName(Aws::String&& value) { m_reservationNameHasBeenSet = true; m_reservationName = std::move(value); }
100 
104  inline void SetReservationName(const char* value) { m_reservationNameHasBeenSet = true; m_reservationName.assign(value); }
105 
109  inline PurchaseReservedElasticsearchInstanceOfferingRequest& WithReservationName(const Aws::String& value) { SetReservationName(value); return *this;}
110 
114  inline PurchaseReservedElasticsearchInstanceOfferingRequest& WithReservationName(Aws::String&& value) { SetReservationName(std::move(value)); return *this;}
115 
119  inline PurchaseReservedElasticsearchInstanceOfferingRequest& WithReservationName(const char* value) { SetReservationName(value); return *this;}
120 
121 
125  inline int GetInstanceCount() const{ return m_instanceCount; }
126 
130  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
131 
135  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
136 
140  inline PurchaseReservedElasticsearchInstanceOfferingRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
141 
142  private:
143 
144  Aws::String m_reservedElasticsearchInstanceOfferingId;
145  bool m_reservedElasticsearchInstanceOfferingIdHasBeenSet;
146 
147  Aws::String m_reservationName;
148  bool m_reservationNameHasBeenSet;
149 
150  int m_instanceCount;
151  bool m_instanceCountHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace ElasticsearchService
156 } // namespace Aws
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::WithReservationName
PurchaseReservedElasticsearchInstanceOfferingRequest & WithReservationName(const Aws::String &value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:109
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::SetReservedElasticsearchInstanceOfferingId
void SetReservedElasticsearchInstanceOfferingId(Aws::String &&value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:58
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::WithReservedElasticsearchInstanceOfferingId
PurchaseReservedElasticsearchInstanceOfferingRequest & WithReservedElasticsearchInstanceOfferingId(const Aws::String &value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:68
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::WithReservedElasticsearchInstanceOfferingId
PurchaseReservedElasticsearchInstanceOfferingRequest & WithReservedElasticsearchInstanceOfferingId(Aws::String &&value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:73
Aws::ElasticsearchService::ElasticsearchServiceRequest
Definition: ElasticsearchServiceRequest.h:17
ElasticsearchServiceRequest.h
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::WithReservedElasticsearchInstanceOfferingId
PurchaseReservedElasticsearchInstanceOfferingRequest & WithReservedElasticsearchInstanceOfferingId(const char *value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:78
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::GetInstanceCount
int GetInstanceCount() const
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:125
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::SetInstanceCount
void SetInstanceCount(int value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:135
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:27
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::SetReservationName
void SetReservationName(const Aws::String &value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:94
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::SetReservationName
void SetReservationName(const char *value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:104
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::GetReservationName
const Aws::String & GetReservationName() const
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:84
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::PurchaseReservedElasticsearchInstanceOfferingRequest
PurchaseReservedElasticsearchInstanceOfferingRequest()
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::ReservedElasticsearchInstanceOfferingIdHasBeenSet
bool ReservedElasticsearchInstanceOfferingIdHasBeenSet() const
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:48
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::WithReservationName
PurchaseReservedElasticsearchInstanceOfferingRequest & WithReservationName(const char *value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:119
AWSString.h
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::SetReservationName
void SetReservationName(Aws::String &&value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:99
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::SetReservedElasticsearchInstanceOfferingId
void SetReservedElasticsearchInstanceOfferingId(const Aws::String &value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:53
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:35
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::WithReservationName
PurchaseReservedElasticsearchInstanceOfferingRequest & WithReservationName(Aws::String &&value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::GetReservedElasticsearchInstanceOfferingId
const Aws::String & GetReservedElasticsearchInstanceOfferingId() const
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:43
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::SetReservedElasticsearchInstanceOfferingId
void SetReservedElasticsearchInstanceOfferingId(const char *value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::ReservationNameHasBeenSet
bool ReservationNameHasBeenSet() const
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:89
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:130
Aws::ElasticsearchService::Model::PurchaseReservedElasticsearchInstanceOfferingRequest::WithInstanceCount
PurchaseReservedElasticsearchInstanceOfferingRequest & WithInstanceCount(int value)
Definition: PurchaseReservedElasticsearchInstanceOfferingRequest.h:140