AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/emr-containers/model/EndpointState.h>
10#include <aws/emr-containers/model/Certificate.h>
11#include <aws/emr-containers/model/ConfigurationOverrides.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/emr-containers/model/FailureReason.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace EMRContainers
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_EMRCONTAINERS_API Endpoint() = default;
43 AWS_EMRCONTAINERS_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
44 AWS_EMRCONTAINERS_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetId() const { return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 Endpoint& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template<typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 Endpoint& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
76 inline const Aws::String& GetArn() const { return m_arn; }
77 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
78 template<typename ArnT = Aws::String>
79 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
80 template<typename ArnT = Aws::String>
81 Endpoint& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
83
85
88 inline const Aws::String& GetVirtualClusterId() const { return m_virtualClusterId; }
89 inline bool VirtualClusterIdHasBeenSet() const { return m_virtualClusterIdHasBeenSet; }
90 template<typename VirtualClusterIdT = Aws::String>
91 void SetVirtualClusterId(VirtualClusterIdT&& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = std::forward<VirtualClusterIdT>(value); }
92 template<typename VirtualClusterIdT = Aws::String>
93 Endpoint& WithVirtualClusterId(VirtualClusterIdT&& value) { SetVirtualClusterId(std::forward<VirtualClusterIdT>(value)); return *this;}
95
97
100 inline const Aws::String& GetType() const { return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 template<typename TypeT = Aws::String>
103 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
104 template<typename TypeT = Aws::String>
105 Endpoint& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
107
109
112 inline EndpointState GetState() const { return m_state; }
113 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
114 inline void SetState(EndpointState value) { m_stateHasBeenSet = true; m_state = value; }
115 inline Endpoint& WithState(EndpointState value) { SetState(value); return *this;}
117
119
122 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
123 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
124 template<typename ReleaseLabelT = Aws::String>
125 void SetReleaseLabel(ReleaseLabelT&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::forward<ReleaseLabelT>(value); }
126 template<typename ReleaseLabelT = Aws::String>
127 Endpoint& WithReleaseLabel(ReleaseLabelT&& value) { SetReleaseLabel(std::forward<ReleaseLabelT>(value)); return *this;}
129
131
134 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
135 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
136 template<typename ExecutionRoleArnT = Aws::String>
137 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
138 template<typename ExecutionRoleArnT = Aws::String>
139 Endpoint& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
141
143
147 inline const Certificate& GetCertificateAuthority() const { return m_certificateAuthority; }
148 inline bool CertificateAuthorityHasBeenSet() const { return m_certificateAuthorityHasBeenSet; }
149 template<typename CertificateAuthorityT = Certificate>
150 void SetCertificateAuthority(CertificateAuthorityT&& value) { m_certificateAuthorityHasBeenSet = true; m_certificateAuthority = std::forward<CertificateAuthorityT>(value); }
151 template<typename CertificateAuthorityT = Certificate>
152 Endpoint& WithCertificateAuthority(CertificateAuthorityT&& value) { SetCertificateAuthority(std::forward<CertificateAuthorityT>(value)); return *this;}
154
156
160 inline const ConfigurationOverrides& GetConfigurationOverrides() const { return m_configurationOverrides; }
161 inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; }
162 template<typename ConfigurationOverridesT = ConfigurationOverrides>
163 void SetConfigurationOverrides(ConfigurationOverridesT&& value) { m_configurationOverridesHasBeenSet = true; m_configurationOverrides = std::forward<ConfigurationOverridesT>(value); }
164 template<typename ConfigurationOverridesT = ConfigurationOverrides>
165 Endpoint& WithConfigurationOverrides(ConfigurationOverridesT&& value) { SetConfigurationOverrides(std::forward<ConfigurationOverridesT>(value)); return *this;}
167
169
172 inline const Aws::String& GetServerUrl() const { return m_serverUrl; }
173 inline bool ServerUrlHasBeenSet() const { return m_serverUrlHasBeenSet; }
174 template<typename ServerUrlT = Aws::String>
175 void SetServerUrl(ServerUrlT&& value) { m_serverUrlHasBeenSet = true; m_serverUrl = std::forward<ServerUrlT>(value); }
176 template<typename ServerUrlT = Aws::String>
177 Endpoint& WithServerUrl(ServerUrlT&& value) { SetServerUrl(std::forward<ServerUrlT>(value)); return *this;}
179
181
184 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
185 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
186 template<typename CreatedAtT = Aws::Utils::DateTime>
187 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
188 template<typename CreatedAtT = Aws::Utils::DateTime>
189 Endpoint& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
191
193
196 inline const Aws::String& GetSecurityGroup() const { return m_securityGroup; }
197 inline bool SecurityGroupHasBeenSet() const { return m_securityGroupHasBeenSet; }
198 template<typename SecurityGroupT = Aws::String>
199 void SetSecurityGroup(SecurityGroupT&& value) { m_securityGroupHasBeenSet = true; m_securityGroup = std::forward<SecurityGroupT>(value); }
200 template<typename SecurityGroupT = Aws::String>
201 Endpoint& WithSecurityGroup(SecurityGroupT&& value) { SetSecurityGroup(std::forward<SecurityGroupT>(value)); return *this;}
203
205
208 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
209 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
210 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
211 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
212 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
213 Endpoint& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
214 template<typename SubnetIdsT = Aws::String>
215 Endpoint& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
217
219
222 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
223 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
224 template<typename StateDetailsT = Aws::String>
225 void SetStateDetails(StateDetailsT&& value) { m_stateDetailsHasBeenSet = true; m_stateDetails = std::forward<StateDetailsT>(value); }
226 template<typename StateDetailsT = Aws::String>
227 Endpoint& WithStateDetails(StateDetailsT&& value) { SetStateDetails(std::forward<StateDetailsT>(value)); return *this;}
229
231
234 inline FailureReason GetFailureReason() const { return m_failureReason; }
235 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
236 inline void SetFailureReason(FailureReason value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
237 inline Endpoint& WithFailureReason(FailureReason value) { SetFailureReason(value); return *this;}
239
241
244 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
245 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
246 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
247 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
248 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
249 Endpoint& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
250 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
251 Endpoint& AddTags(TagsKeyT&& key, TagsValueT&& value) {
252 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
253 }
255 private:
256
257 Aws::String m_id;
258 bool m_idHasBeenSet = false;
259
260 Aws::String m_name;
261 bool m_nameHasBeenSet = false;
262
263 Aws::String m_arn;
264 bool m_arnHasBeenSet = false;
265
266 Aws::String m_virtualClusterId;
267 bool m_virtualClusterIdHasBeenSet = false;
268
269 Aws::String m_type;
270 bool m_typeHasBeenSet = false;
271
273 bool m_stateHasBeenSet = false;
274
275 Aws::String m_releaseLabel;
276 bool m_releaseLabelHasBeenSet = false;
277
278 Aws::String m_executionRoleArn;
279 bool m_executionRoleArnHasBeenSet = false;
280
281 Certificate m_certificateAuthority;
282 bool m_certificateAuthorityHasBeenSet = false;
283
284 ConfigurationOverrides m_configurationOverrides;
285 bool m_configurationOverridesHasBeenSet = false;
286
287 Aws::String m_serverUrl;
288 bool m_serverUrlHasBeenSet = false;
289
290 Aws::Utils::DateTime m_createdAt{};
291 bool m_createdAtHasBeenSet = false;
292
293 Aws::String m_securityGroup;
294 bool m_securityGroupHasBeenSet = false;
295
296 Aws::Vector<Aws::String> m_subnetIds;
297 bool m_subnetIdsHasBeenSet = false;
298
299 Aws::String m_stateDetails;
300 bool m_stateDetailsHasBeenSet = false;
301
302 FailureReason m_failureReason{FailureReason::NOT_SET};
303 bool m_failureReasonHasBeenSet = false;
304
306 bool m_tagsHasBeenSet = false;
307 };
308
309} // namespace Model
310} // namespace EMRContainers
311} // namespace Aws
Endpoint & AddSubnetIds(SubnetIdsT &&value)
Definition Endpoint.h:215
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Endpoint.h:244
Endpoint & WithName(NameT &&value)
Definition Endpoint.h:69
const Aws::String & GetName() const
Definition Endpoint.h:64
bool CertificateAuthorityHasBeenSet() const
Definition Endpoint.h:148
const Aws::String & GetExecutionRoleArn() const
Definition Endpoint.h:134
void SetSubnetIds(SubnetIdsT &&value)
Definition Endpoint.h:211
Endpoint & WithTags(TagsT &&value)
Definition Endpoint.h:249
void SetSecurityGroup(SecurityGroupT &&value)
Definition Endpoint.h:199
const Aws::String & GetReleaseLabel() const
Definition Endpoint.h:122
const Aws::String & GetArn() const
Definition Endpoint.h:76
Endpoint & WithFailureReason(FailureReason value)
Definition Endpoint.h:237
const Aws::String & GetServerUrl() const
Definition Endpoint.h:172
const Aws::String & GetVirtualClusterId() const
Definition Endpoint.h:88
Endpoint & WithVirtualClusterId(VirtualClusterIdT &&value)
Definition Endpoint.h:93
Endpoint & WithCreatedAt(CreatedAtT &&value)
Definition Endpoint.h:189
const Aws::String & GetStateDetails() const
Definition Endpoint.h:222
Endpoint & WithReleaseLabel(ReleaseLabelT &&value)
Definition Endpoint.h:127
AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStateDetails(StateDetailsT &&value)
Definition Endpoint.h:225
const Aws::String & GetSecurityGroup() const
Definition Endpoint.h:196
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
Definition Endpoint.h:163
void SetFailureReason(FailureReason value)
Definition Endpoint.h:236
Endpoint & WithConfigurationOverrides(ConfigurationOverridesT &&value)
Definition Endpoint.h:165
Endpoint & WithSubnetIds(SubnetIdsT &&value)
Definition Endpoint.h:213
Endpoint & WithStateDetails(StateDetailsT &&value)
Definition Endpoint.h:227
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition Endpoint.h:208
Endpoint & WithServerUrl(ServerUrlT &&value)
Definition Endpoint.h:177
AWS_EMRCONTAINERS_API Endpoint()=default
Endpoint & WithArn(ArnT &&value)
Definition Endpoint.h:81
const Certificate & GetCertificateAuthority() const
Definition Endpoint.h:147
AWS_EMRCONTAINERS_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetType() const
Definition Endpoint.h:100
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Endpoint.h:184
void SetCreatedAt(CreatedAtT &&value)
Definition Endpoint.h:187
void SetVirtualClusterId(VirtualClusterIdT &&value)
Definition Endpoint.h:91
Endpoint & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Endpoint.h:251
FailureReason GetFailureReason() const
Definition Endpoint.h:234
Endpoint & WithSecurityGroup(SecurityGroupT &&value)
Definition Endpoint.h:201
void SetReleaseLabel(ReleaseLabelT &&value)
Definition Endpoint.h:125
Endpoint & WithType(TypeT &&value)
Definition Endpoint.h:105
AWS_EMRCONTAINERS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
bool ConfigurationOverridesHasBeenSet() const
Definition Endpoint.h:161
Endpoint & WithState(EndpointState value)
Definition Endpoint.h:115
Endpoint & WithExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Endpoint.h:139
Endpoint & WithId(IdT &&value)
Definition Endpoint.h:57
void SetName(NameT &&value)
Definition Endpoint.h:67
const ConfigurationOverrides & GetConfigurationOverrides() const
Definition Endpoint.h:160
void SetState(EndpointState value)
Definition Endpoint.h:114
void SetCertificateAuthority(CertificateAuthorityT &&value)
Definition Endpoint.h:150
void SetServerUrl(ServerUrlT &&value)
Definition Endpoint.h:175
Endpoint & WithCertificateAuthority(CertificateAuthorityT &&value)
Definition Endpoint.h:152
const Aws::String & GetId() const
Definition Endpoint.h:52
EndpointState GetState() const
Definition Endpoint.h:112
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Endpoint.h:137
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue