AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.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/InstanceStatus.h>
10#include <aws/elasticmapreduce/model/MarketType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticmapreduce/model/EbsVolume.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
37 {
38 public:
39 AWS_EMR_API Instance();
40 AWS_EMR_API Instance(Aws::Utils::Json::JsonView jsonValue);
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline Instance& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline Instance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline Instance& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetEc2InstanceId() const{ return m_ec2InstanceId; }
64 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
65 inline void SetEc2InstanceId(const Aws::String& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = value; }
66 inline void SetEc2InstanceId(Aws::String&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = std::move(value); }
67 inline void SetEc2InstanceId(const char* value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId.assign(value); }
68 inline Instance& WithEc2InstanceId(const Aws::String& value) { SetEc2InstanceId(value); return *this;}
69 inline Instance& WithEc2InstanceId(Aws::String&& value) { SetEc2InstanceId(std::move(value)); return *this;}
70 inline Instance& WithEc2InstanceId(const char* value) { SetEc2InstanceId(value); return *this;}
72
74
77 inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; }
78 inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; }
79 inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
80 inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); }
81 inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); }
82 inline Instance& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;}
83 inline Instance& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;}
84 inline Instance& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;}
86
88
91 inline const Aws::String& GetPublicIpAddress() const{ return m_publicIpAddress; }
92 inline bool PublicIpAddressHasBeenSet() const { return m_publicIpAddressHasBeenSet; }
93 inline void SetPublicIpAddress(const Aws::String& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = value; }
94 inline void SetPublicIpAddress(Aws::String&& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = std::move(value); }
95 inline void SetPublicIpAddress(const char* value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress.assign(value); }
96 inline Instance& WithPublicIpAddress(const Aws::String& value) { SetPublicIpAddress(value); return *this;}
97 inline Instance& WithPublicIpAddress(Aws::String&& value) { SetPublicIpAddress(std::move(value)); return *this;}
98 inline Instance& WithPublicIpAddress(const char* value) { SetPublicIpAddress(value); return *this;}
100
102
105 inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
106 inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; }
107 inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
108 inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); }
109 inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
110 inline Instance& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;}
111 inline Instance& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;}
112 inline Instance& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
114
116
119 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
120 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
121 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
122 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
123 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
124 inline Instance& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
125 inline Instance& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
126 inline Instance& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
128
130
133 inline const InstanceStatus& GetStatus() const{ return m_status; }
134 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 inline void SetStatus(const InstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
136 inline void SetStatus(InstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
137 inline Instance& WithStatus(const InstanceStatus& value) { SetStatus(value); return *this;}
138 inline Instance& WithStatus(InstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
140
142
145 inline const Aws::String& GetInstanceGroupId() const{ return m_instanceGroupId; }
146 inline bool InstanceGroupIdHasBeenSet() const { return m_instanceGroupIdHasBeenSet; }
147 inline void SetInstanceGroupId(const Aws::String& value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId = value; }
148 inline void SetInstanceGroupId(Aws::String&& value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId = std::move(value); }
149 inline void SetInstanceGroupId(const char* value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId.assign(value); }
150 inline Instance& WithInstanceGroupId(const Aws::String& value) { SetInstanceGroupId(value); return *this;}
151 inline Instance& WithInstanceGroupId(Aws::String&& value) { SetInstanceGroupId(std::move(value)); return *this;}
152 inline Instance& WithInstanceGroupId(const char* value) { SetInstanceGroupId(value); return *this;}
154
156
160 inline const Aws::String& GetInstanceFleetId() const{ return m_instanceFleetId; }
161 inline bool InstanceFleetIdHasBeenSet() const { return m_instanceFleetIdHasBeenSet; }
162 inline void SetInstanceFleetId(const Aws::String& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = value; }
163 inline void SetInstanceFleetId(Aws::String&& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = std::move(value); }
164 inline void SetInstanceFleetId(const char* value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId.assign(value); }
165 inline Instance& WithInstanceFleetId(const Aws::String& value) { SetInstanceFleetId(value); return *this;}
166 inline Instance& WithInstanceFleetId(Aws::String&& value) { SetInstanceFleetId(std::move(value)); return *this;}
167 inline Instance& WithInstanceFleetId(const char* value) { SetInstanceFleetId(value); return *this;}
169
171
175 inline const MarketType& GetMarket() const{ return m_market; }
176 inline bool MarketHasBeenSet() const { return m_marketHasBeenSet; }
177 inline void SetMarket(const MarketType& value) { m_marketHasBeenSet = true; m_market = value; }
178 inline void SetMarket(MarketType&& value) { m_marketHasBeenSet = true; m_market = std::move(value); }
179 inline Instance& WithMarket(const MarketType& value) { SetMarket(value); return *this;}
180 inline Instance& WithMarket(MarketType&& value) { SetMarket(std::move(value)); return *this;}
182
184
187 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
188 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
189 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
190 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
191 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
192 inline Instance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
193 inline Instance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
194 inline Instance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
196
198
201 inline const Aws::Vector<EbsVolume>& GetEbsVolumes() const{ return m_ebsVolumes; }
202 inline bool EbsVolumesHasBeenSet() const { return m_ebsVolumesHasBeenSet; }
203 inline void SetEbsVolumes(const Aws::Vector<EbsVolume>& value) { m_ebsVolumesHasBeenSet = true; m_ebsVolumes = value; }
204 inline void SetEbsVolumes(Aws::Vector<EbsVolume>&& value) { m_ebsVolumesHasBeenSet = true; m_ebsVolumes = std::move(value); }
205 inline Instance& WithEbsVolumes(const Aws::Vector<EbsVolume>& value) { SetEbsVolumes(value); return *this;}
206 inline Instance& WithEbsVolumes(Aws::Vector<EbsVolume>&& value) { SetEbsVolumes(std::move(value)); return *this;}
207 inline Instance& AddEbsVolumes(const EbsVolume& value) { m_ebsVolumesHasBeenSet = true; m_ebsVolumes.push_back(value); return *this; }
208 inline Instance& AddEbsVolumes(EbsVolume&& value) { m_ebsVolumesHasBeenSet = true; m_ebsVolumes.push_back(std::move(value)); return *this; }
210 private:
211
212 Aws::String m_id;
213 bool m_idHasBeenSet = false;
214
215 Aws::String m_ec2InstanceId;
216 bool m_ec2InstanceIdHasBeenSet = false;
217
218 Aws::String m_publicDnsName;
219 bool m_publicDnsNameHasBeenSet = false;
220
221 Aws::String m_publicIpAddress;
222 bool m_publicIpAddressHasBeenSet = false;
223
224 Aws::String m_privateDnsName;
225 bool m_privateDnsNameHasBeenSet = false;
226
227 Aws::String m_privateIpAddress;
228 bool m_privateIpAddressHasBeenSet = false;
229
230 InstanceStatus m_status;
231 bool m_statusHasBeenSet = false;
232
233 Aws::String m_instanceGroupId;
234 bool m_instanceGroupIdHasBeenSet = false;
235
236 Aws::String m_instanceFleetId;
237 bool m_instanceFleetIdHasBeenSet = false;
238
239 MarketType m_market;
240 bool m_marketHasBeenSet = false;
241
242 Aws::String m_instanceType;
243 bool m_instanceTypeHasBeenSet = false;
244
245 Aws::Vector<EbsVolume> m_ebsVolumes;
246 bool m_ebsVolumesHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace EMR
251} // namespace Aws
Instance & WithPrivateIpAddress(const Aws::String &value)
Definition Instance.h:124
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
Instance & WithPrivateDnsName(const char *value)
Definition Instance.h:112
const Aws::Vector< EbsVolume > & GetEbsVolumes() const
Definition Instance.h:201
const Aws::String & GetEc2InstanceId() const
Definition Instance.h:63
Instance & WithPublicIpAddress(const Aws::String &value)
Definition Instance.h:96
void SetPublicIpAddress(const Aws::String &value)
Definition Instance.h:93
void SetInstanceGroupId(const Aws::String &value)
Definition Instance.h:147
void SetId(const char *value)
Definition Instance.h:53
void SetEc2InstanceId(const char *value)
Definition Instance.h:67
Instance & WithPublicDnsName(const char *value)
Definition Instance.h:84
void SetEbsVolumes(Aws::Vector< EbsVolume > &&value)
Definition Instance.h:204
void SetPrivateDnsName(const Aws::String &value)
Definition Instance.h:107
AWS_EMR_API Instance(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceGroupId(Aws::String &&value)
Definition Instance.h:148
Instance & WithPublicDnsName(const Aws::String &value)
Definition Instance.h:82
void SetPrivateDnsName(const char *value)
Definition Instance.h:109
Instance & WithId(const Aws::String &value)
Definition Instance.h:54
const Aws::String & GetInstanceFleetId() const
Definition Instance.h:160
bool PrivateIpAddressHasBeenSet() const
Definition Instance.h:120
Instance & WithInstanceType(const char *value)
Definition Instance.h:194
void SetEc2InstanceId(Aws::String &&value)
Definition Instance.h:66
const Aws::String & GetPrivateIpAddress() const
Definition Instance.h:119
Instance & AddEbsVolumes(EbsVolume &&value)
Definition Instance.h:208
const Aws::String & GetId() const
Definition Instance.h:49
Instance & WithInstanceType(const Aws::String &value)
Definition Instance.h:192
Instance & WithEc2InstanceId(Aws::String &&value)
Definition Instance.h:69
void SetPrivateDnsName(Aws::String &&value)
Definition Instance.h:108
void SetId(const Aws::String &value)
Definition Instance.h:51
Instance & WithEc2InstanceId(const Aws::String &value)
Definition Instance.h:68
void SetInstanceFleetId(Aws::String &&value)
Definition Instance.h:163
bool PublicIpAddressHasBeenSet() const
Definition Instance.h:92
bool StatusHasBeenSet() const
Definition Instance.h:134
Instance & WithPublicIpAddress(Aws::String &&value)
Definition Instance.h:97
void SetInstanceType(const char *value)
Definition Instance.h:191
Instance & WithPrivateDnsName(Aws::String &&value)
Definition Instance.h:111
Instance & WithStatus(InstanceStatus &&value)
Definition Instance.h:138
void SetInstanceType(const Aws::String &value)
Definition Instance.h:189
const Aws::String & GetInstanceGroupId() const
Definition Instance.h:145
void SetPrivateIpAddress(Aws::String &&value)
Definition Instance.h:122
void SetInstanceGroupId(const char *value)
Definition Instance.h:149
Instance & WithInstanceFleetId(Aws::String &&value)
Definition Instance.h:166
Instance & WithId(Aws::String &&value)
Definition Instance.h:55
Instance & WithStatus(const InstanceStatus &value)
Definition Instance.h:137
Instance & WithPrivateDnsName(const Aws::String &value)
Definition Instance.h:110
void SetEbsVolumes(const Aws::Vector< EbsVolume > &value)
Definition Instance.h:203
Instance & WithMarket(const MarketType &value)
Definition Instance.h:179
const Aws::String & GetPublicDnsName() const
Definition Instance.h:77
void SetPublicDnsName(const Aws::String &value)
Definition Instance.h:79
Instance & WithEc2InstanceId(const char *value)
Definition Instance.h:70
bool MarketHasBeenSet() const
Definition Instance.h:176
Instance & WithPublicDnsName(Aws::String &&value)
Definition Instance.h:83
void SetInstanceFleetId(const Aws::String &value)
Definition Instance.h:162
void SetStatus(InstanceStatus &&value)
Definition Instance.h:136
Instance & WithInstanceFleetId(const Aws::String &value)
Definition Instance.h:165
Instance & WithId(const char *value)
Definition Instance.h:56
Instance & WithEbsVolumes(Aws::Vector< EbsVolume > &&value)
Definition Instance.h:206
Instance & WithPublicIpAddress(const char *value)
Definition Instance.h:98
bool PrivateDnsNameHasBeenSet() const
Definition Instance.h:106
const Aws::String & GetInstanceType() const
Definition Instance.h:187
void SetMarket(MarketType &&value)
Definition Instance.h:178
void SetPrivateIpAddress(const char *value)
Definition Instance.h:123
void SetId(Aws::String &&value)
Definition Instance.h:52
void SetMarket(const MarketType &value)
Definition Instance.h:177
bool EbsVolumesHasBeenSet() const
Definition Instance.h:202
bool InstanceTypeHasBeenSet() const
Definition Instance.h:188
void SetPublicIpAddress(Aws::String &&value)
Definition Instance.h:94
bool Ec2InstanceIdHasBeenSet() const
Definition Instance.h:64
Instance & WithPrivateIpAddress(const char *value)
Definition Instance.h:126
Instance & WithInstanceType(Aws::String &&value)
Definition Instance.h:193
void SetPublicIpAddress(const char *value)
Definition Instance.h:95
void SetPrivateIpAddress(const Aws::String &value)
Definition Instance.h:121
bool IdHasBeenSet() const
Definition Instance.h:50
bool InstanceGroupIdHasBeenSet() const
Definition Instance.h:146
bool InstanceFleetIdHasBeenSet() const
Definition Instance.h:161
Instance & WithInstanceGroupId(const char *value)
Definition Instance.h:152
Instance & WithPrivateIpAddress(Aws::String &&value)
Definition Instance.h:125
Instance & AddEbsVolumes(const EbsVolume &value)
Definition Instance.h:207
void SetEc2InstanceId(const Aws::String &value)
Definition Instance.h:65
const Aws::String & GetPrivateDnsName() const
Definition Instance.h:105
bool PublicDnsNameHasBeenSet() const
Definition Instance.h:78
void SetPublicDnsName(const char *value)
Definition Instance.h:81
Instance & WithInstanceGroupId(Aws::String &&value)
Definition Instance.h:151
Instance & WithInstanceGroupId(const Aws::String &value)
Definition Instance.h:150
void SetPublicDnsName(Aws::String &&value)
Definition Instance.h:80
Instance & WithEbsVolumes(const Aws::Vector< EbsVolume > &value)
Definition Instance.h:205
const MarketType & GetMarket() const
Definition Instance.h:175
const Aws::String & GetPublicIpAddress() const
Definition Instance.h:91
Instance & WithMarket(MarketType &&value)
Definition Instance.h:180
void SetStatus(const InstanceStatus &value)
Definition Instance.h:135
Instance & WithInstanceFleetId(const char *value)
Definition Instance.h:167
void SetInstanceType(Aws::String &&value)
Definition Instance.h:190
const InstanceStatus & GetStatus() const
Definition Instance.h:133
void SetInstanceFleetId(const char *value)
Definition Instance.h:164
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue