AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ec2InstanceAttributes.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_EMR_API Ec2InstanceAttributes();
41
42
44
48 inline const Aws::String& GetEc2KeyName() const{ return m_ec2KeyName; }
49 inline bool Ec2KeyNameHasBeenSet() const { return m_ec2KeyNameHasBeenSet; }
50 inline void SetEc2KeyName(const Aws::String& value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName = value; }
51 inline void SetEc2KeyName(Aws::String&& value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName = std::move(value); }
52 inline void SetEc2KeyName(const char* value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName.assign(value); }
53 inline Ec2InstanceAttributes& WithEc2KeyName(const Aws::String& value) { SetEc2KeyName(value); return *this;}
54 inline Ec2InstanceAttributes& WithEc2KeyName(Aws::String&& value) { SetEc2KeyName(std::move(value)); return *this;}
55 inline Ec2InstanceAttributes& WithEc2KeyName(const char* value) { SetEc2KeyName(value); return *this;}
57
59
64 inline const Aws::String& GetEc2SubnetId() const{ return m_ec2SubnetId; }
65 inline bool Ec2SubnetIdHasBeenSet() const { return m_ec2SubnetIdHasBeenSet; }
66 inline void SetEc2SubnetId(const Aws::String& value) { m_ec2SubnetIdHasBeenSet = true; m_ec2SubnetId = value; }
67 inline void SetEc2SubnetId(Aws::String&& value) { m_ec2SubnetIdHasBeenSet = true; m_ec2SubnetId = std::move(value); }
68 inline void SetEc2SubnetId(const char* value) { m_ec2SubnetIdHasBeenSet = true; m_ec2SubnetId.assign(value); }
69 inline Ec2InstanceAttributes& WithEc2SubnetId(const Aws::String& value) { SetEc2SubnetId(value); return *this;}
70 inline Ec2InstanceAttributes& WithEc2SubnetId(Aws::String&& value) { SetEc2SubnetId(std::move(value)); return *this;}
71 inline Ec2InstanceAttributes& WithEc2SubnetId(const char* value) { SetEc2SubnetId(value); return *this;}
73
75
88 inline const Aws::Vector<Aws::String>& GetRequestedEc2SubnetIds() const{ return m_requestedEc2SubnetIds; }
89 inline bool RequestedEc2SubnetIdsHasBeenSet() const { return m_requestedEc2SubnetIdsHasBeenSet; }
90 inline void SetRequestedEc2SubnetIds(const Aws::Vector<Aws::String>& value) { m_requestedEc2SubnetIdsHasBeenSet = true; m_requestedEc2SubnetIds = value; }
91 inline void SetRequestedEc2SubnetIds(Aws::Vector<Aws::String>&& value) { m_requestedEc2SubnetIdsHasBeenSet = true; m_requestedEc2SubnetIds = std::move(value); }
94 inline Ec2InstanceAttributes& AddRequestedEc2SubnetIds(const Aws::String& value) { m_requestedEc2SubnetIdsHasBeenSet = true; m_requestedEc2SubnetIds.push_back(value); return *this; }
95 inline Ec2InstanceAttributes& AddRequestedEc2SubnetIds(Aws::String&& value) { m_requestedEc2SubnetIdsHasBeenSet = true; m_requestedEc2SubnetIds.push_back(std::move(value)); return *this; }
96 inline Ec2InstanceAttributes& AddRequestedEc2SubnetIds(const char* value) { m_requestedEc2SubnetIdsHasBeenSet = true; m_requestedEc2SubnetIds.push_back(value); return *this; }
98
100
103 inline const Aws::String& GetEc2AvailabilityZone() const{ return m_ec2AvailabilityZone; }
104 inline bool Ec2AvailabilityZoneHasBeenSet() const { return m_ec2AvailabilityZoneHasBeenSet; }
105 inline void SetEc2AvailabilityZone(const Aws::String& value) { m_ec2AvailabilityZoneHasBeenSet = true; m_ec2AvailabilityZone = value; }
106 inline void SetEc2AvailabilityZone(Aws::String&& value) { m_ec2AvailabilityZoneHasBeenSet = true; m_ec2AvailabilityZone = std::move(value); }
107 inline void SetEc2AvailabilityZone(const char* value) { m_ec2AvailabilityZoneHasBeenSet = true; m_ec2AvailabilityZone.assign(value); }
109 inline Ec2InstanceAttributes& WithEc2AvailabilityZone(Aws::String&& value) { SetEc2AvailabilityZone(std::move(value)); return *this;}
110 inline Ec2InstanceAttributes& WithEc2AvailabilityZone(const char* value) { SetEc2AvailabilityZone(value); return *this;}
112
114
125 inline const Aws::Vector<Aws::String>& GetRequestedEc2AvailabilityZones() const{ return m_requestedEc2AvailabilityZones; }
126 inline bool RequestedEc2AvailabilityZonesHasBeenSet() const { return m_requestedEc2AvailabilityZonesHasBeenSet; }
127 inline void SetRequestedEc2AvailabilityZones(const Aws::Vector<Aws::String>& value) { m_requestedEc2AvailabilityZonesHasBeenSet = true; m_requestedEc2AvailabilityZones = value; }
128 inline void SetRequestedEc2AvailabilityZones(Aws::Vector<Aws::String>&& value) { m_requestedEc2AvailabilityZonesHasBeenSet = true; m_requestedEc2AvailabilityZones = std::move(value); }
131 inline Ec2InstanceAttributes& AddRequestedEc2AvailabilityZones(const Aws::String& value) { m_requestedEc2AvailabilityZonesHasBeenSet = true; m_requestedEc2AvailabilityZones.push_back(value); return *this; }
132 inline Ec2InstanceAttributes& AddRequestedEc2AvailabilityZones(Aws::String&& value) { m_requestedEc2AvailabilityZonesHasBeenSet = true; m_requestedEc2AvailabilityZones.push_back(std::move(value)); return *this; }
133 inline Ec2InstanceAttributes& AddRequestedEc2AvailabilityZones(const char* value) { m_requestedEc2AvailabilityZonesHasBeenSet = true; m_requestedEc2AvailabilityZones.push_back(value); return *this; }
135
137
141 inline const Aws::String& GetIamInstanceProfile() const{ return m_iamInstanceProfile; }
142 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
143 inline void SetIamInstanceProfile(const Aws::String& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; }
144 inline void SetIamInstanceProfile(Aws::String&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); }
145 inline void SetIamInstanceProfile(const char* value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile.assign(value); }
147 inline Ec2InstanceAttributes& WithIamInstanceProfile(Aws::String&& value) { SetIamInstanceProfile(std::move(value)); return *this;}
148 inline Ec2InstanceAttributes& WithIamInstanceProfile(const char* value) { SetIamInstanceProfile(value); return *this;}
150
152
155 inline const Aws::String& GetEmrManagedMasterSecurityGroup() const{ return m_emrManagedMasterSecurityGroup; }
156 inline bool EmrManagedMasterSecurityGroupHasBeenSet() const { return m_emrManagedMasterSecurityGroupHasBeenSet; }
157 inline void SetEmrManagedMasterSecurityGroup(const Aws::String& value) { m_emrManagedMasterSecurityGroupHasBeenSet = true; m_emrManagedMasterSecurityGroup = value; }
158 inline void SetEmrManagedMasterSecurityGroup(Aws::String&& value) { m_emrManagedMasterSecurityGroupHasBeenSet = true; m_emrManagedMasterSecurityGroup = std::move(value); }
159 inline void SetEmrManagedMasterSecurityGroup(const char* value) { m_emrManagedMasterSecurityGroupHasBeenSet = true; m_emrManagedMasterSecurityGroup.assign(value); }
164
166
170 inline const Aws::String& GetEmrManagedSlaveSecurityGroup() const{ return m_emrManagedSlaveSecurityGroup; }
171 inline bool EmrManagedSlaveSecurityGroupHasBeenSet() const { return m_emrManagedSlaveSecurityGroupHasBeenSet; }
172 inline void SetEmrManagedSlaveSecurityGroup(const Aws::String& value) { m_emrManagedSlaveSecurityGroupHasBeenSet = true; m_emrManagedSlaveSecurityGroup = value; }
173 inline void SetEmrManagedSlaveSecurityGroup(Aws::String&& value) { m_emrManagedSlaveSecurityGroupHasBeenSet = true; m_emrManagedSlaveSecurityGroup = std::move(value); }
174 inline void SetEmrManagedSlaveSecurityGroup(const char* value) { m_emrManagedSlaveSecurityGroupHasBeenSet = true; m_emrManagedSlaveSecurityGroup.assign(value); }
179
181
185 inline const Aws::String& GetServiceAccessSecurityGroup() const{ return m_serviceAccessSecurityGroup; }
186 inline bool ServiceAccessSecurityGroupHasBeenSet() const { return m_serviceAccessSecurityGroupHasBeenSet; }
187 inline void SetServiceAccessSecurityGroup(const Aws::String& value) { m_serviceAccessSecurityGroupHasBeenSet = true; m_serviceAccessSecurityGroup = value; }
188 inline void SetServiceAccessSecurityGroup(Aws::String&& value) { m_serviceAccessSecurityGroupHasBeenSet = true; m_serviceAccessSecurityGroup = std::move(value); }
189 inline void SetServiceAccessSecurityGroup(const char* value) { m_serviceAccessSecurityGroupHasBeenSet = true; m_serviceAccessSecurityGroup.assign(value); }
194
196
199 inline const Aws::Vector<Aws::String>& GetAdditionalMasterSecurityGroups() const{ return m_additionalMasterSecurityGroups; }
200 inline bool AdditionalMasterSecurityGroupsHasBeenSet() const { return m_additionalMasterSecurityGroupsHasBeenSet; }
201 inline void SetAdditionalMasterSecurityGroups(const Aws::Vector<Aws::String>& value) { m_additionalMasterSecurityGroupsHasBeenSet = true; m_additionalMasterSecurityGroups = value; }
202 inline void SetAdditionalMasterSecurityGroups(Aws::Vector<Aws::String>&& value) { m_additionalMasterSecurityGroupsHasBeenSet = true; m_additionalMasterSecurityGroups = std::move(value); }
205 inline Ec2InstanceAttributes& AddAdditionalMasterSecurityGroups(const Aws::String& value) { m_additionalMasterSecurityGroupsHasBeenSet = true; m_additionalMasterSecurityGroups.push_back(value); return *this; }
206 inline Ec2InstanceAttributes& AddAdditionalMasterSecurityGroups(Aws::String&& value) { m_additionalMasterSecurityGroupsHasBeenSet = true; m_additionalMasterSecurityGroups.push_back(std::move(value)); return *this; }
207 inline Ec2InstanceAttributes& AddAdditionalMasterSecurityGroups(const char* value) { m_additionalMasterSecurityGroupsHasBeenSet = true; m_additionalMasterSecurityGroups.push_back(value); return *this; }
209
211
215 inline const Aws::Vector<Aws::String>& GetAdditionalSlaveSecurityGroups() const{ return m_additionalSlaveSecurityGroups; }
216 inline bool AdditionalSlaveSecurityGroupsHasBeenSet() const { return m_additionalSlaveSecurityGroupsHasBeenSet; }
217 inline void SetAdditionalSlaveSecurityGroups(const Aws::Vector<Aws::String>& value) { m_additionalSlaveSecurityGroupsHasBeenSet = true; m_additionalSlaveSecurityGroups = value; }
218 inline void SetAdditionalSlaveSecurityGroups(Aws::Vector<Aws::String>&& value) { m_additionalSlaveSecurityGroupsHasBeenSet = true; m_additionalSlaveSecurityGroups = std::move(value); }
221 inline Ec2InstanceAttributes& AddAdditionalSlaveSecurityGroups(const Aws::String& value) { m_additionalSlaveSecurityGroupsHasBeenSet = true; m_additionalSlaveSecurityGroups.push_back(value); return *this; }
222 inline Ec2InstanceAttributes& AddAdditionalSlaveSecurityGroups(Aws::String&& value) { m_additionalSlaveSecurityGroupsHasBeenSet = true; m_additionalSlaveSecurityGroups.push_back(std::move(value)); return *this; }
223 inline Ec2InstanceAttributes& AddAdditionalSlaveSecurityGroups(const char* value) { m_additionalSlaveSecurityGroupsHasBeenSet = true; m_additionalSlaveSecurityGroups.push_back(value); return *this; }
225 private:
226
227 Aws::String m_ec2KeyName;
228 bool m_ec2KeyNameHasBeenSet = false;
229
230 Aws::String m_ec2SubnetId;
231 bool m_ec2SubnetIdHasBeenSet = false;
232
233 Aws::Vector<Aws::String> m_requestedEc2SubnetIds;
234 bool m_requestedEc2SubnetIdsHasBeenSet = false;
235
236 Aws::String m_ec2AvailabilityZone;
237 bool m_ec2AvailabilityZoneHasBeenSet = false;
238
239 Aws::Vector<Aws::String> m_requestedEc2AvailabilityZones;
240 bool m_requestedEc2AvailabilityZonesHasBeenSet = false;
241
242 Aws::String m_iamInstanceProfile;
243 bool m_iamInstanceProfileHasBeenSet = false;
244
245 Aws::String m_emrManagedMasterSecurityGroup;
246 bool m_emrManagedMasterSecurityGroupHasBeenSet = false;
247
248 Aws::String m_emrManagedSlaveSecurityGroup;
249 bool m_emrManagedSlaveSecurityGroupHasBeenSet = false;
250
251 Aws::String m_serviceAccessSecurityGroup;
252 bool m_serviceAccessSecurityGroupHasBeenSet = false;
253
254 Aws::Vector<Aws::String> m_additionalMasterSecurityGroups;
255 bool m_additionalMasterSecurityGroupsHasBeenSet = false;
256
257 Aws::Vector<Aws::String> m_additionalSlaveSecurityGroups;
258 bool m_additionalSlaveSecurityGroupsHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace EMR
263} // namespace Aws
void SetEmrManagedMasterSecurityGroup(Aws::String &&value)
const Aws::String & GetIamInstanceProfile() const
Ec2InstanceAttributes & WithServiceAccessSecurityGroup(const Aws::String &value)
Ec2InstanceAttributes & WithEc2SubnetId(const char *value)
void SetEc2KeyName(const Aws::String &value)
void SetAdditionalSlaveSecurityGroups(const Aws::Vector< Aws::String > &value)
void SetIamInstanceProfile(const Aws::String &value)
Ec2InstanceAttributes & WithEmrManagedMasterSecurityGroup(const char *value)
Ec2InstanceAttributes & WithEmrManagedMasterSecurityGroup(Aws::String &&value)
Ec2InstanceAttributes & WithRequestedEc2AvailabilityZones(const Aws::Vector< Aws::String > &value)
void SetEmrManagedSlaveSecurityGroup(const char *value)
const Aws::Vector< Aws::String > & GetRequestedEc2SubnetIds() const
const Aws::Vector< Aws::String > & GetAdditionalMasterSecurityGroups() const
const Aws::Vector< Aws::String > & GetAdditionalSlaveSecurityGroups() const
const Aws::Vector< Aws::String > & GetRequestedEc2AvailabilityZones() const
void SetServiceAccessSecurityGroup(const char *value)
void SetEc2AvailabilityZone(const Aws::String &value)
Ec2InstanceAttributes & WithAdditionalSlaveSecurityGroups(const Aws::Vector< Aws::String > &value)
Ec2InstanceAttributes & WithEmrManagedSlaveSecurityGroup(const Aws::String &value)
Ec2InstanceAttributes & AddRequestedEc2SubnetIds(const char *value)
Ec2InstanceAttributes & WithEmrManagedSlaveSecurityGroup(const char *value)
Ec2InstanceAttributes & AddAdditionalMasterSecurityGroups(Aws::String &&value)
AWS_EMR_API Ec2InstanceAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetServiceAccessSecurityGroup() const
Ec2InstanceAttributes & AddAdditionalSlaveSecurityGroups(Aws::String &&value)
Ec2InstanceAttributes & WithAdditionalMasterSecurityGroups(Aws::Vector< Aws::String > &&value)
Ec2InstanceAttributes & AddAdditionalSlaveSecurityGroups(const char *value)
Ec2InstanceAttributes & WithRequestedEc2SubnetIds(const Aws::Vector< Aws::String > &value)
Ec2InstanceAttributes & WithEmrManagedSlaveSecurityGroup(Aws::String &&value)
Ec2InstanceAttributes & WithIamInstanceProfile(const char *value)
Ec2InstanceAttributes & WithEc2SubnetId(const Aws::String &value)
Ec2InstanceAttributes & WithEc2AvailabilityZone(const char *value)
Ec2InstanceAttributes & WithEc2AvailabilityZone(Aws::String &&value)
Ec2InstanceAttributes & WithServiceAccessSecurityGroup(const char *value)
Ec2InstanceAttributes & WithAdditionalSlaveSecurityGroups(Aws::Vector< Aws::String > &&value)
Ec2InstanceAttributes & WithEc2AvailabilityZone(const Aws::String &value)
Ec2InstanceAttributes & WithIamInstanceProfile(const Aws::String &value)
Ec2InstanceAttributes & WithEc2KeyName(const char *value)
Ec2InstanceAttributes & WithServiceAccessSecurityGroup(Aws::String &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAdditionalMasterSecurityGroups(const Aws::Vector< Aws::String > &value)
Ec2InstanceAttributes & AddRequestedEc2AvailabilityZones(Aws::String &&value)
Ec2InstanceAttributes & WithEmrManagedMasterSecurityGroup(const Aws::String &value)
Ec2InstanceAttributes & AddRequestedEc2SubnetIds(Aws::String &&value)
Ec2InstanceAttributes & WithAdditionalMasterSecurityGroups(const Aws::Vector< Aws::String > &value)
Ec2InstanceAttributes & WithRequestedEc2SubnetIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetEc2AvailabilityZone() const
void SetEmrManagedMasterSecurityGroup(const Aws::String &value)
AWS_EMR_API Ec2InstanceAttributes(Aws::Utils::Json::JsonView jsonValue)
Ec2InstanceAttributes & WithEc2SubnetId(Aws::String &&value)
void SetRequestedEc2AvailabilityZones(Aws::Vector< Aws::String > &&value)
Ec2InstanceAttributes & WithEc2KeyName(Aws::String &&value)
void SetEmrManagedSlaveSecurityGroup(const Aws::String &value)
Ec2InstanceAttributes & WithRequestedEc2AvailabilityZones(Aws::Vector< Aws::String > &&value)
Ec2InstanceAttributes & AddAdditionalMasterSecurityGroups(const Aws::String &value)
void SetRequestedEc2SubnetIds(Aws::Vector< Aws::String > &&value)
void SetRequestedEc2SubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::String & GetEmrManagedSlaveSecurityGroup() const
void SetAdditionalSlaveSecurityGroups(Aws::Vector< Aws::String > &&value)
const Aws::String & GetEmrManagedMasterSecurityGroup() const
Ec2InstanceAttributes & AddRequestedEc2SubnetIds(const Aws::String &value)
Ec2InstanceAttributes & AddRequestedEc2AvailabilityZones(const Aws::String &value)
void SetEc2SubnetId(const Aws::String &value)
Ec2InstanceAttributes & AddRequestedEc2AvailabilityZones(const char *value)
void SetAdditionalMasterSecurityGroups(Aws::Vector< Aws::String > &&value)
void SetServiceAccessSecurityGroup(Aws::String &&value)
void SetEmrManagedSlaveSecurityGroup(Aws::String &&value)
Ec2InstanceAttributes & AddAdditionalMasterSecurityGroups(const char *value)
Ec2InstanceAttributes & WithIamInstanceProfile(Aws::String &&value)
Ec2InstanceAttributes & AddAdditionalSlaveSecurityGroups(const Aws::String &value)
Ec2InstanceAttributes & WithEc2KeyName(const Aws::String &value)
void SetEmrManagedMasterSecurityGroup(const char *value)
void SetServiceAccessSecurityGroup(const Aws::String &value)
void SetRequestedEc2AvailabilityZones(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue