1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/es/ElasticsearchService_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20   class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace ElasticsearchService
24 {
25 namespace Model
26 {
27   /**
28    * <p>Represents the output of a
29    * <code>PurchaseReservedElasticsearchInstanceOffering</code>
30    * operation.</p><p><h3>See Also:</h3>   <a
31    * href="http://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/PurchaseReservedElasticsearchInstanceOfferingResponse">AWS
32    * API Reference</a></p>
33    */
34   class AWS_ELASTICSEARCHSERVICE_API PurchaseReservedElasticsearchInstanceOfferingResult
35   {
36   public:
37     PurchaseReservedElasticsearchInstanceOfferingResult();
38     PurchaseReservedElasticsearchInstanceOfferingResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
39     PurchaseReservedElasticsearchInstanceOfferingResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
40 
41 
42     /**
43      * <p>Details of the reserved Elasticsearch instance which was purchased.</p>
44      */
GetReservedElasticsearchInstanceId()45     inline const Aws::String& GetReservedElasticsearchInstanceId() const{ return m_reservedElasticsearchInstanceId; }
46 
47     /**
48      * <p>Details of the reserved Elasticsearch instance which was purchased.</p>
49      */
SetReservedElasticsearchInstanceId(const Aws::String & value)50     inline void SetReservedElasticsearchInstanceId(const Aws::String& value) { m_reservedElasticsearchInstanceId = value; }
51 
52     /**
53      * <p>Details of the reserved Elasticsearch instance which was purchased.</p>
54      */
SetReservedElasticsearchInstanceId(Aws::String && value)55     inline void SetReservedElasticsearchInstanceId(Aws::String&& value) { m_reservedElasticsearchInstanceId = std::move(value); }
56 
57     /**
58      * <p>Details of the reserved Elasticsearch instance which was purchased.</p>
59      */
SetReservedElasticsearchInstanceId(const char * value)60     inline void SetReservedElasticsearchInstanceId(const char* value) { m_reservedElasticsearchInstanceId.assign(value); }
61 
62     /**
63      * <p>Details of the reserved Elasticsearch instance which was purchased.</p>
64      */
WithReservedElasticsearchInstanceId(const Aws::String & value)65     inline PurchaseReservedElasticsearchInstanceOfferingResult& WithReservedElasticsearchInstanceId(const Aws::String& value) { SetReservedElasticsearchInstanceId(value); return *this;}
66 
67     /**
68      * <p>Details of the reserved Elasticsearch instance which was purchased.</p>
69      */
WithReservedElasticsearchInstanceId(Aws::String && value)70     inline PurchaseReservedElasticsearchInstanceOfferingResult& WithReservedElasticsearchInstanceId(Aws::String&& value) { SetReservedElasticsearchInstanceId(std::move(value)); return *this;}
71 
72     /**
73      * <p>Details of the reserved Elasticsearch instance which was purchased.</p>
74      */
WithReservedElasticsearchInstanceId(const char * value)75     inline PurchaseReservedElasticsearchInstanceOfferingResult& WithReservedElasticsearchInstanceId(const char* value) { SetReservedElasticsearchInstanceId(value); return *this;}
76 
77 
78     /**
79      * <p>The customer-specified identifier used to track this reservation.</p>
80      */
GetReservationName()81     inline const Aws::String& GetReservationName() const{ return m_reservationName; }
82 
83     /**
84      * <p>The customer-specified identifier used to track this reservation.</p>
85      */
SetReservationName(const Aws::String & value)86     inline void SetReservationName(const Aws::String& value) { m_reservationName = value; }
87 
88     /**
89      * <p>The customer-specified identifier used to track this reservation.</p>
90      */
SetReservationName(Aws::String && value)91     inline void SetReservationName(Aws::String&& value) { m_reservationName = std::move(value); }
92 
93     /**
94      * <p>The customer-specified identifier used to track this reservation.</p>
95      */
SetReservationName(const char * value)96     inline void SetReservationName(const char* value) { m_reservationName.assign(value); }
97 
98     /**
99      * <p>The customer-specified identifier used to track this reservation.</p>
100      */
WithReservationName(const Aws::String & value)101     inline PurchaseReservedElasticsearchInstanceOfferingResult& WithReservationName(const Aws::String& value) { SetReservationName(value); return *this;}
102 
103     /**
104      * <p>The customer-specified identifier used to track this reservation.</p>
105      */
WithReservationName(Aws::String && value)106     inline PurchaseReservedElasticsearchInstanceOfferingResult& WithReservationName(Aws::String&& value) { SetReservationName(std::move(value)); return *this;}
107 
108     /**
109      * <p>The customer-specified identifier used to track this reservation.</p>
110      */
WithReservationName(const char * value)111     inline PurchaseReservedElasticsearchInstanceOfferingResult& WithReservationName(const char* value) { SetReservationName(value); return *this;}
112 
113   private:
114 
115     Aws::String m_reservedElasticsearchInstanceId;
116 
117     Aws::String m_reservationName;
118   };
119 
120 } // namespace Model
121 } // namespace ElasticsearchService
122 } // namespace Aws
123