AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
EnvironmentAccountConnection.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/Proton_EXPORTS.h>
10#include <aws/proton/model/EnvironmentAccountConnectionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Proton {
22namespace Model {
23
31 public:
32 AWS_PROTON_API EnvironmentAccountConnection() = default;
35 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetCodebuildRoleArn() const { return m_codebuildRoleArn; }
62 inline bool CodebuildRoleArnHasBeenSet() const { return m_codebuildRoleArnHasBeenSet; }
63 template <typename CodebuildRoleArnT = Aws::String>
64 void SetCodebuildRoleArn(CodebuildRoleArnT&& value) {
65 m_codebuildRoleArnHasBeenSet = true;
66 m_codebuildRoleArn = std::forward<CodebuildRoleArnT>(value);
67 }
68 template <typename CodebuildRoleArnT = Aws::String>
70 SetCodebuildRoleArn(std::forward<CodebuildRoleArnT>(value));
71 return *this;
72 }
74
76
87 inline const Aws::String& GetComponentRoleArn() const { return m_componentRoleArn; }
88 inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; }
89 template <typename ComponentRoleArnT = Aws::String>
90 void SetComponentRoleArn(ComponentRoleArnT&& value) {
91 m_componentRoleArnHasBeenSet = true;
92 m_componentRoleArn = std::forward<ComponentRoleArnT>(value);
93 }
94 template <typename ComponentRoleArnT = Aws::String>
96 SetComponentRoleArn(std::forward<ComponentRoleArnT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetEnvironmentAccountId() const { return m_environmentAccountId; }
107 inline bool EnvironmentAccountIdHasBeenSet() const { return m_environmentAccountIdHasBeenSet; }
108 template <typename EnvironmentAccountIdT = Aws::String>
109 void SetEnvironmentAccountId(EnvironmentAccountIdT&& value) {
110 m_environmentAccountIdHasBeenSet = true;
111 m_environmentAccountId = std::forward<EnvironmentAccountIdT>(value);
112 }
113 template <typename EnvironmentAccountIdT = Aws::String>
115 SetEnvironmentAccountId(std::forward<EnvironmentAccountIdT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
126 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
127 template <typename EnvironmentNameT = Aws::String>
128 void SetEnvironmentName(EnvironmentNameT&& value) {
129 m_environmentNameHasBeenSet = true;
130 m_environmentName = std::forward<EnvironmentNameT>(value);
131 }
132 template <typename EnvironmentNameT = Aws::String>
134 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetId() const { return m_id; }
144 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
145 template <typename IdT = Aws::String>
146 void SetId(IdT&& value) {
147 m_idHasBeenSet = true;
148 m_id = std::forward<IdT>(value);
149 }
150 template <typename IdT = Aws::String>
152 SetId(std::forward<IdT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
162 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
163 template <typename LastModifiedAtT = Aws::Utils::DateTime>
164 void SetLastModifiedAt(LastModifiedAtT&& value) {
165 m_lastModifiedAtHasBeenSet = true;
166 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
167 }
168 template <typename LastModifiedAtT = Aws::Utils::DateTime>
170 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetManagementAccountId() const { return m_managementAccountId; }
181 inline bool ManagementAccountIdHasBeenSet() const { return m_managementAccountIdHasBeenSet; }
182 template <typename ManagementAccountIdT = Aws::String>
183 void SetManagementAccountId(ManagementAccountIdT&& value) {
184 m_managementAccountIdHasBeenSet = true;
185 m_managementAccountId = std::forward<ManagementAccountIdT>(value);
186 }
187 template <typename ManagementAccountIdT = Aws::String>
189 SetManagementAccountId(std::forward<ManagementAccountIdT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::Utils::DateTime& GetRequestedAt() const { return m_requestedAt; }
199 inline bool RequestedAtHasBeenSet() const { return m_requestedAtHasBeenSet; }
200 template <typename RequestedAtT = Aws::Utils::DateTime>
201 void SetRequestedAt(RequestedAtT&& value) {
202 m_requestedAtHasBeenSet = true;
203 m_requestedAt = std::forward<RequestedAtT>(value);
204 }
205 template <typename RequestedAtT = Aws::Utils::DateTime>
207 SetRequestedAt(std::forward<RequestedAtT>(value));
208 return *this;
209 }
211
213
217 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
218 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
219 template <typename RoleArnT = Aws::String>
220 void SetRoleArn(RoleArnT&& value) {
221 m_roleArnHasBeenSet = true;
222 m_roleArn = std::forward<RoleArnT>(value);
223 }
224 template <typename RoleArnT = Aws::String>
226 SetRoleArn(std::forward<RoleArnT>(value));
227 return *this;
228 }
230
232
235 inline EnvironmentAccountConnectionStatus GetStatus() const { return m_status; }
236 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
238 m_statusHasBeenSet = true;
239 m_status = value;
240 }
242 SetStatus(value);
243 return *this;
244 }
246 private:
247 Aws::String m_arn;
248
249 Aws::String m_codebuildRoleArn;
250
251 Aws::String m_componentRoleArn;
252
253 Aws::String m_environmentAccountId;
254
255 Aws::String m_environmentName;
256
257 Aws::String m_id;
258
259 Aws::Utils::DateTime m_lastModifiedAt{};
260
261 Aws::String m_managementAccountId;
262
263 Aws::Utils::DateTime m_requestedAt{};
264
265 Aws::String m_roleArn;
266
268 bool m_arnHasBeenSet = false;
269 bool m_codebuildRoleArnHasBeenSet = false;
270 bool m_componentRoleArnHasBeenSet = false;
271 bool m_environmentAccountIdHasBeenSet = false;
272 bool m_environmentNameHasBeenSet = false;
273 bool m_idHasBeenSet = false;
274 bool m_lastModifiedAtHasBeenSet = false;
275 bool m_managementAccountIdHasBeenSet = false;
276 bool m_requestedAtHasBeenSet = false;
277 bool m_roleArnHasBeenSet = false;
278 bool m_statusHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace Proton
283} // namespace Aws
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentAccountConnection & WithManagementAccountId(ManagementAccountIdT &&value)
EnvironmentAccountConnection & WithRoleArn(RoleArnT &&value)
EnvironmentAccountConnection & WithId(IdT &&value)
EnvironmentAccountConnection & WithEnvironmentAccountId(EnvironmentAccountIdT &&value)
EnvironmentAccountConnection & WithLastModifiedAt(LastModifiedAtT &&value)
EnvironmentAccountConnection & WithArn(ArnT &&value)
void SetStatus(EnvironmentAccountConnectionStatus value)
EnvironmentAccountConnection & WithStatus(EnvironmentAccountConnectionStatus value)
EnvironmentAccountConnectionStatus GetStatus() const
EnvironmentAccountConnection & WithCodebuildRoleArn(CodebuildRoleArnT &&value)
AWS_PROTON_API EnvironmentAccountConnection(Aws::Utils::Json::JsonView jsonValue)
EnvironmentAccountConnection & WithEnvironmentName(EnvironmentNameT &&value)
AWS_PROTON_API EnvironmentAccountConnection()=default
AWS_PROTON_API EnvironmentAccountConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
EnvironmentAccountConnection & WithRequestedAt(RequestedAtT &&value)
EnvironmentAccountConnection & WithComponentRoleArn(ComponentRoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue