AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EnvironmentAccountConnection.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/proton/model/EnvironmentAccountConnectionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Proton
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PROTON_API EnvironmentAccountConnection() = default;
40 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 EnvironmentAccountConnection& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = std::forward<CodebuildRoleArnT>(value); }
65 template<typename CodebuildRoleArnT = Aws::String>
66 EnvironmentAccountConnection& WithCodebuildRoleArn(CodebuildRoleArnT&& value) { SetCodebuildRoleArn(std::forward<CodebuildRoleArnT>(value)); return *this;}
68
70
81 inline const Aws::String& GetComponentRoleArn() const { return m_componentRoleArn; }
82 inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; }
83 template<typename ComponentRoleArnT = Aws::String>
84 void SetComponentRoleArn(ComponentRoleArnT&& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = std::forward<ComponentRoleArnT>(value); }
85 template<typename ComponentRoleArnT = Aws::String>
86 EnvironmentAccountConnection& WithComponentRoleArn(ComponentRoleArnT&& value) { SetComponentRoleArn(std::forward<ComponentRoleArnT>(value)); return *this;}
88
90
94 inline const Aws::String& GetEnvironmentAccountId() const { return m_environmentAccountId; }
95 inline bool EnvironmentAccountIdHasBeenSet() const { return m_environmentAccountIdHasBeenSet; }
96 template<typename EnvironmentAccountIdT = Aws::String>
97 void SetEnvironmentAccountId(EnvironmentAccountIdT&& value) { m_environmentAccountIdHasBeenSet = true; m_environmentAccountId = std::forward<EnvironmentAccountIdT>(value); }
98 template<typename EnvironmentAccountIdT = Aws::String>
99 EnvironmentAccountConnection& WithEnvironmentAccountId(EnvironmentAccountIdT&& value) { SetEnvironmentAccountId(std::forward<EnvironmentAccountIdT>(value)); return *this;}
101
103
107 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
108 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
109 template<typename EnvironmentNameT = Aws::String>
110 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
111 template<typename EnvironmentNameT = Aws::String>
112 EnvironmentAccountConnection& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
114
116
119 inline const Aws::String& GetId() const { return m_id; }
120 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
121 template<typename IdT = Aws::String>
122 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
123 template<typename IdT = Aws::String>
124 EnvironmentAccountConnection& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
132 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
133 template<typename LastModifiedAtT = Aws::Utils::DateTime>
134 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
135 template<typename LastModifiedAtT = Aws::Utils::DateTime>
136 EnvironmentAccountConnection& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(value)); return *this;}
138
140
144 inline const Aws::String& GetManagementAccountId() const { return m_managementAccountId; }
145 inline bool ManagementAccountIdHasBeenSet() const { return m_managementAccountIdHasBeenSet; }
146 template<typename ManagementAccountIdT = Aws::String>
147 void SetManagementAccountId(ManagementAccountIdT&& value) { m_managementAccountIdHasBeenSet = true; m_managementAccountId = std::forward<ManagementAccountIdT>(value); }
148 template<typename ManagementAccountIdT = Aws::String>
149 EnvironmentAccountConnection& WithManagementAccountId(ManagementAccountIdT&& value) { SetManagementAccountId(std::forward<ManagementAccountIdT>(value)); return *this;}
151
153
156 inline const Aws::Utils::DateTime& GetRequestedAt() const { return m_requestedAt; }
157 inline bool RequestedAtHasBeenSet() const { return m_requestedAtHasBeenSet; }
158 template<typename RequestedAtT = Aws::Utils::DateTime>
159 void SetRequestedAt(RequestedAtT&& value) { m_requestedAtHasBeenSet = true; m_requestedAt = std::forward<RequestedAtT>(value); }
160 template<typename RequestedAtT = Aws::Utils::DateTime>
161 EnvironmentAccountConnection& WithRequestedAt(RequestedAtT&& value) { SetRequestedAt(std::forward<RequestedAtT>(value)); return *this;}
163
165
169 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
170 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
171 template<typename RoleArnT = Aws::String>
172 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
173 template<typename RoleArnT = Aws::String>
174 EnvironmentAccountConnection& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
176
178
181 inline EnvironmentAccountConnectionStatus GetStatus() const { return m_status; }
182 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
183 inline void SetStatus(EnvironmentAccountConnectionStatus value) { m_statusHasBeenSet = true; m_status = value; }
186 private:
187
188 Aws::String m_arn;
189 bool m_arnHasBeenSet = false;
190
191 Aws::String m_codebuildRoleArn;
192 bool m_codebuildRoleArnHasBeenSet = false;
193
194 Aws::String m_componentRoleArn;
195 bool m_componentRoleArnHasBeenSet = false;
196
197 Aws::String m_environmentAccountId;
198 bool m_environmentAccountIdHasBeenSet = false;
199
200 Aws::String m_environmentName;
201 bool m_environmentNameHasBeenSet = false;
202
203 Aws::String m_id;
204 bool m_idHasBeenSet = false;
205
206 Aws::Utils::DateTime m_lastModifiedAt{};
207 bool m_lastModifiedAtHasBeenSet = false;
208
209 Aws::String m_managementAccountId;
210 bool m_managementAccountIdHasBeenSet = false;
211
212 Aws::Utils::DateTime m_requestedAt{};
213 bool m_requestedAtHasBeenSet = false;
214
215 Aws::String m_roleArn;
216 bool m_roleArnHasBeenSet = false;
217
219 bool m_statusHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace Proton
224} // 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