AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PurchaseReservedElasticsearchInstanceOfferingRequest.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/ElasticsearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ElasticsearchService
15{
16namespace 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_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetReservedElasticsearchInstanceOfferingId() const{ return m_reservedElasticsearchInstanceOfferingId; }
45 inline bool ReservedElasticsearchInstanceOfferingIdHasBeenSet() const { return m_reservedElasticsearchInstanceOfferingIdHasBeenSet; }
46 inline void SetReservedElasticsearchInstanceOfferingId(const Aws::String& value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId = value; }
47 inline void SetReservedElasticsearchInstanceOfferingId(Aws::String&& value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId = std::move(value); }
48 inline void SetReservedElasticsearchInstanceOfferingId(const char* value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId.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); }
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_reservedElasticsearchInstanceOfferingId;
80 bool m_reservedElasticsearchInstanceOfferingIdHasBeenSet = 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 ElasticsearchService
91} // namespace Aws
PurchaseReservedElasticsearchInstanceOfferingRequest & WithReservedElasticsearchInstanceOfferingId(const char *value)
PurchaseReservedElasticsearchInstanceOfferingRequest & WithReservationName(const Aws::String &value)
PurchaseReservedElasticsearchInstanceOfferingRequest & WithReservedElasticsearchInstanceOfferingId(Aws::String &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override
PurchaseReservedElasticsearchInstanceOfferingRequest & WithReservedElasticsearchInstanceOfferingId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String