AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceGroupDetail.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/MarketType.h>
10#include <aws/elasticmapreduce/model/InstanceRoleType.h>
11#include <aws/elasticmapreduce/model/InstanceGroupState.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace EMR
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_EMR_API InstanceGroupDetail();
42
43
45
48 inline const Aws::String& GetInstanceGroupId() const{ return m_instanceGroupId; }
49 inline bool InstanceGroupIdHasBeenSet() const { return m_instanceGroupIdHasBeenSet; }
50 inline void SetInstanceGroupId(const Aws::String& value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId = value; }
51 inline void SetInstanceGroupId(Aws::String&& value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId = std::move(value); }
52 inline void SetInstanceGroupId(const char* value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId.assign(value); }
53 inline InstanceGroupDetail& WithInstanceGroupId(const Aws::String& value) { SetInstanceGroupId(value); return *this;}
54 inline InstanceGroupDetail& WithInstanceGroupId(Aws::String&& value) { SetInstanceGroupId(std::move(value)); return *this;}
55 inline InstanceGroupDetail& WithInstanceGroupId(const char* value) { SetInstanceGroupId(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline InstanceGroupDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline InstanceGroupDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline InstanceGroupDetail& WithName(const char* value) { SetName(value); return *this;}
71
73
76 inline const MarketType& GetMarket() const{ return m_market; }
77 inline bool MarketHasBeenSet() const { return m_marketHasBeenSet; }
78 inline void SetMarket(const MarketType& value) { m_marketHasBeenSet = true; m_market = value; }
79 inline void SetMarket(MarketType&& value) { m_marketHasBeenSet = true; m_market = std::move(value); }
80 inline InstanceGroupDetail& WithMarket(const MarketType& value) { SetMarket(value); return *this;}
81 inline InstanceGroupDetail& WithMarket(MarketType&& value) { SetMarket(std::move(value)); return *this;}
83
85
88 inline const InstanceRoleType& GetInstanceRole() const{ return m_instanceRole; }
89 inline bool InstanceRoleHasBeenSet() const { return m_instanceRoleHasBeenSet; }
90 inline void SetInstanceRole(const InstanceRoleType& value) { m_instanceRoleHasBeenSet = true; m_instanceRole = value; }
91 inline void SetInstanceRole(InstanceRoleType&& value) { m_instanceRoleHasBeenSet = true; m_instanceRole = std::move(value); }
92 inline InstanceGroupDetail& WithInstanceRole(const InstanceRoleType& value) { SetInstanceRole(value); return *this;}
93 inline InstanceGroupDetail& WithInstanceRole(InstanceRoleType&& value) { SetInstanceRole(std::move(value)); return *this;}
95
97
103 inline const Aws::String& GetBidPrice() const{ return m_bidPrice; }
104 inline bool BidPriceHasBeenSet() const { return m_bidPriceHasBeenSet; }
105 inline void SetBidPrice(const Aws::String& value) { m_bidPriceHasBeenSet = true; m_bidPrice = value; }
106 inline void SetBidPrice(Aws::String&& value) { m_bidPriceHasBeenSet = true; m_bidPrice = std::move(value); }
107 inline void SetBidPrice(const char* value) { m_bidPriceHasBeenSet = true; m_bidPrice.assign(value); }
108 inline InstanceGroupDetail& WithBidPrice(const Aws::String& value) { SetBidPrice(value); return *this;}
109 inline InstanceGroupDetail& WithBidPrice(Aws::String&& value) { SetBidPrice(std::move(value)); return *this;}
110 inline InstanceGroupDetail& WithBidPrice(const char* value) { SetBidPrice(value); return *this;}
112
114
117 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
118 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
119 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
120 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
121 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
122 inline InstanceGroupDetail& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
123 inline InstanceGroupDetail& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
124 inline InstanceGroupDetail& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
126
128
131 inline int GetInstanceRequestCount() const{ return m_instanceRequestCount; }
132 inline bool InstanceRequestCountHasBeenSet() const { return m_instanceRequestCountHasBeenSet; }
133 inline void SetInstanceRequestCount(int value) { m_instanceRequestCountHasBeenSet = true; m_instanceRequestCount = value; }
134 inline InstanceGroupDetail& WithInstanceRequestCount(int value) { SetInstanceRequestCount(value); return *this;}
136
138
141 inline int GetInstanceRunningCount() const{ return m_instanceRunningCount; }
142 inline bool InstanceRunningCountHasBeenSet() const { return m_instanceRunningCountHasBeenSet; }
143 inline void SetInstanceRunningCount(int value) { m_instanceRunningCountHasBeenSet = true; m_instanceRunningCount = value; }
144 inline InstanceGroupDetail& WithInstanceRunningCount(int value) { SetInstanceRunningCount(value); return *this;}
146
148
152 inline const InstanceGroupState& GetState() const{ return m_state; }
153 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
154 inline void SetState(const InstanceGroupState& value) { m_stateHasBeenSet = true; m_state = value; }
155 inline void SetState(InstanceGroupState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
156 inline InstanceGroupDetail& WithState(const InstanceGroupState& value) { SetState(value); return *this;}
157 inline InstanceGroupDetail& WithState(InstanceGroupState&& value) { SetState(std::move(value)); return *this;}
159
161
164 inline const Aws::String& GetLastStateChangeReason() const{ return m_lastStateChangeReason; }
165 inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; }
166 inline void SetLastStateChangeReason(const Aws::String& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = value; }
167 inline void SetLastStateChangeReason(Aws::String&& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = std::move(value); }
168 inline void SetLastStateChangeReason(const char* value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason.assign(value); }
170 inline InstanceGroupDetail& WithLastStateChangeReason(Aws::String&& value) { SetLastStateChangeReason(std::move(value)); return *this;}
171 inline InstanceGroupDetail& WithLastStateChangeReason(const char* value) { SetLastStateChangeReason(value); return *this;}
173
175
178 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
179 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
180 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
181 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
183 inline InstanceGroupDetail& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
185
187
190 inline const Aws::Utils::DateTime& GetStartDateTime() const{ return m_startDateTime; }
191 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
192 inline void SetStartDateTime(const Aws::Utils::DateTime& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = value; }
193 inline void SetStartDateTime(Aws::Utils::DateTime&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::move(value); }
194 inline InstanceGroupDetail& WithStartDateTime(const Aws::Utils::DateTime& value) { SetStartDateTime(value); return *this;}
195 inline InstanceGroupDetail& WithStartDateTime(Aws::Utils::DateTime&& value) { SetStartDateTime(std::move(value)); return *this;}
197
199
202 inline const Aws::Utils::DateTime& GetReadyDateTime() const{ return m_readyDateTime; }
203 inline bool ReadyDateTimeHasBeenSet() const { return m_readyDateTimeHasBeenSet; }
204 inline void SetReadyDateTime(const Aws::Utils::DateTime& value) { m_readyDateTimeHasBeenSet = true; m_readyDateTime = value; }
205 inline void SetReadyDateTime(Aws::Utils::DateTime&& value) { m_readyDateTimeHasBeenSet = true; m_readyDateTime = std::move(value); }
206 inline InstanceGroupDetail& WithReadyDateTime(const Aws::Utils::DateTime& value) { SetReadyDateTime(value); return *this;}
207 inline InstanceGroupDetail& WithReadyDateTime(Aws::Utils::DateTime&& value) { SetReadyDateTime(std::move(value)); return *this;}
209
211
214 inline const Aws::Utils::DateTime& GetEndDateTime() const{ return m_endDateTime; }
215 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
216 inline void SetEndDateTime(const Aws::Utils::DateTime& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
217 inline void SetEndDateTime(Aws::Utils::DateTime&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
218 inline InstanceGroupDetail& WithEndDateTime(const Aws::Utils::DateTime& value) { SetEndDateTime(value); return *this;}
219 inline InstanceGroupDetail& WithEndDateTime(Aws::Utils::DateTime&& value) { SetEndDateTime(std::move(value)); return *this;}
221
223
226 inline const Aws::String& GetCustomAmiId() const{ return m_customAmiId; }
227 inline bool CustomAmiIdHasBeenSet() const { return m_customAmiIdHasBeenSet; }
228 inline void SetCustomAmiId(const Aws::String& value) { m_customAmiIdHasBeenSet = true; m_customAmiId = value; }
229 inline void SetCustomAmiId(Aws::String&& value) { m_customAmiIdHasBeenSet = true; m_customAmiId = std::move(value); }
230 inline void SetCustomAmiId(const char* value) { m_customAmiIdHasBeenSet = true; m_customAmiId.assign(value); }
231 inline InstanceGroupDetail& WithCustomAmiId(const Aws::String& value) { SetCustomAmiId(value); return *this;}
232 inline InstanceGroupDetail& WithCustomAmiId(Aws::String&& value) { SetCustomAmiId(std::move(value)); return *this;}
233 inline InstanceGroupDetail& WithCustomAmiId(const char* value) { SetCustomAmiId(value); return *this;}
235 private:
236
237 Aws::String m_instanceGroupId;
238 bool m_instanceGroupIdHasBeenSet = false;
239
240 Aws::String m_name;
241 bool m_nameHasBeenSet = false;
242
243 MarketType m_market;
244 bool m_marketHasBeenSet = false;
245
246 InstanceRoleType m_instanceRole;
247 bool m_instanceRoleHasBeenSet = false;
248
249 Aws::String m_bidPrice;
250 bool m_bidPriceHasBeenSet = false;
251
252 Aws::String m_instanceType;
253 bool m_instanceTypeHasBeenSet = false;
254
255 int m_instanceRequestCount;
256 bool m_instanceRequestCountHasBeenSet = false;
257
258 int m_instanceRunningCount;
259 bool m_instanceRunningCountHasBeenSet = false;
260
261 InstanceGroupState m_state;
262 bool m_stateHasBeenSet = false;
263
264 Aws::String m_lastStateChangeReason;
265 bool m_lastStateChangeReasonHasBeenSet = false;
266
267 Aws::Utils::DateTime m_creationDateTime;
268 bool m_creationDateTimeHasBeenSet = false;
269
270 Aws::Utils::DateTime m_startDateTime;
271 bool m_startDateTimeHasBeenSet = false;
272
273 Aws::Utils::DateTime m_readyDateTime;
274 bool m_readyDateTimeHasBeenSet = false;
275
276 Aws::Utils::DateTime m_endDateTime;
277 bool m_endDateTimeHasBeenSet = false;
278
279 Aws::String m_customAmiId;
280 bool m_customAmiIdHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace EMR
285} // namespace Aws
void SetStartDateTime(const Aws::Utils::DateTime &value)
void SetInstanceType(Aws::String &&value)
void SetLastStateChangeReason(const char *value)
void SetMarket(const MarketType &value)
void SetLastStateChangeReason(Aws::String &&value)
void SetStartDateTime(Aws::Utils::DateTime &&value)
void SetInstanceRole(const InstanceRoleType &value)
InstanceGroupDetail & WithBidPrice(Aws::String &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationDateTime() const
InstanceGroupDetail & WithLastStateChangeReason(const Aws::String &value)
void SetEndDateTime(const Aws::Utils::DateTime &value)
void SetEndDateTime(Aws::Utils::DateTime &&value)
InstanceGroupDetail & WithCustomAmiId(Aws::String &&value)
void SetInstanceType(const Aws::String &value)
void SetCustomAmiId(const Aws::String &value)
const Aws::String & GetCustomAmiId() const
const Aws::String & GetLastStateChangeReason() const
void SetInstanceRole(InstanceRoleType &&value)
InstanceGroupDetail & WithBidPrice(const Aws::String &value)
InstanceGroupDetail & WithStartDateTime(Aws::Utils::DateTime &&value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetInstanceType() const
const Aws::String & GetBidPrice() const
InstanceGroupDetail & WithInstanceGroupId(Aws::String &&value)
void SetReadyDateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetName() const
InstanceGroupDetail & WithMarket(const MarketType &value)
void SetState(const InstanceGroupState &value)
InstanceGroupDetail & WithLastStateChangeReason(Aws::String &&value)
InstanceGroupDetail & WithInstanceGroupId(const char *value)
InstanceGroupDetail & WithState(InstanceGroupState &&value)
InstanceGroupDetail & WithName(Aws::String &&value)
InstanceGroupDetail & WithInstanceType(const Aws::String &value)
const Aws::Utils::DateTime & GetStartDateTime() const
const Aws::Utils::DateTime & GetReadyDateTime() const
InstanceGroupDetail & WithName(const char *value)
void SetState(InstanceGroupState &&value)
InstanceGroupDetail & WithReadyDateTime(const Aws::Utils::DateTime &value)
const InstanceGroupState & GetState() const
void SetName(const Aws::String &value)
void SetBidPrice(const Aws::String &value)
InstanceGroupDetail & WithCreationDateTime(Aws::Utils::DateTime &&value)
InstanceGroupDetail & WithLastStateChangeReason(const char *value)
InstanceGroupDetail & WithStartDateTime(const Aws::Utils::DateTime &value)
InstanceGroupDetail & WithInstanceGroupId(const Aws::String &value)
InstanceGroupDetail & WithInstanceType(Aws::String &&value)
const InstanceRoleType & GetInstanceRole() const
const Aws::Utils::DateTime & GetEndDateTime() const
InstanceGroupDetail & WithCreationDateTime(const Aws::Utils::DateTime &value)
void SetCreationDateTime(const Aws::Utils::DateTime &value)
InstanceGroupDetail & WithInstanceType(const char *value)
const Aws::String & GetInstanceGroupId() const
InstanceGroupDetail & WithMarket(MarketType &&value)
InstanceGroupDetail & WithEndDateTime(const Aws::Utils::DateTime &value)
InstanceGroupDetail & WithBidPrice(const char *value)
InstanceGroupDetail & WithInstanceRequestCount(int value)
InstanceGroupDetail & WithInstanceRole(const InstanceRoleType &value)
InstanceGroupDetail & WithCustomAmiId(const char *value)
InstanceGroupDetail & WithState(const InstanceGroupState &value)
InstanceGroupDetail & WithInstanceRunningCount(int value)
void SetInstanceGroupId(const Aws::String &value)
AWS_EMR_API InstanceGroupDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastStateChangeReason(const Aws::String &value)
InstanceGroupDetail & WithCustomAmiId(const Aws::String &value)
InstanceGroupDetail & WithInstanceRole(InstanceRoleType &&value)
InstanceGroupDetail & WithReadyDateTime(Aws::Utils::DateTime &&value)
InstanceGroupDetail & WithName(const Aws::String &value)
void SetInstanceGroupId(Aws::String &&value)
void SetReadyDateTime(const Aws::Utils::DateTime &value)
AWS_EMR_API InstanceGroupDetail(Aws::Utils::Json::JsonView jsonValue)
InstanceGroupDetail & WithEndDateTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue