AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
RepositoryAssociation.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/model/KMSKeyDetails.h>
9#include <aws/codeguru-reviewer/model/ProviderType.h>
10#include <aws/codeguru-reviewer/model/RepositoryAssociationState.h>
11#include <aws/codeguru-reviewer/model/S3RepositoryDetails.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeGuruReviewer {
25namespace Model {
26
36 public:
37 AWS_CODEGURUREVIEWER_API RepositoryAssociation() = default;
38 AWS_CODEGURUREVIEWER_API RepositoryAssociation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUREVIEWER_API RepositoryAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetAssociationId() const { return m_associationId; }
47 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
48 template <typename AssociationIdT = Aws::String>
49 void SetAssociationId(AssociationIdT&& value) {
50 m_associationIdHasBeenSet = true;
51 m_associationId = std::forward<AssociationIdT>(value);
52 }
53 template <typename AssociationIdT = Aws::String>
54 RepositoryAssociation& WithAssociationId(AssociationIdT&& value) {
55 SetAssociationId(std::forward<AssociationIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetAssociationArn() const { return m_associationArn; }
65 inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
66 template <typename AssociationArnT = Aws::String>
67 void SetAssociationArn(AssociationArnT&& value) {
68 m_associationArnHasBeenSet = true;
69 m_associationArn = std::forward<AssociationArnT>(value);
70 }
71 template <typename AssociationArnT = Aws::String>
72 RepositoryAssociation& WithAssociationArn(AssociationArnT&& value) {
73 SetAssociationArn(std::forward<AssociationArnT>(value));
74 return *this;
75 }
77
79
87 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
88 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
89 template <typename ConnectionArnT = Aws::String>
90 void SetConnectionArn(ConnectionArnT&& value) {
91 m_connectionArnHasBeenSet = true;
92 m_connectionArn = std::forward<ConnectionArnT>(value);
93 }
94 template <typename ConnectionArnT = Aws::String>
95 RepositoryAssociation& WithConnectionArn(ConnectionArnT&& value) {
96 SetConnectionArn(std::forward<ConnectionArnT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetName() const { return m_name; }
106 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 template <typename NameT = Aws::String>
108 void SetName(NameT&& value) {
109 m_nameHasBeenSet = true;
110 m_name = std::forward<NameT>(value);
111 }
112 template <typename NameT = Aws::String>
114 SetName(std::forward<NameT>(value));
115 return *this;
116 }
118
120
127 inline const Aws::String& GetOwner() const { return m_owner; }
128 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
129 template <typename OwnerT = Aws::String>
130 void SetOwner(OwnerT&& value) {
131 m_ownerHasBeenSet = true;
132 m_owner = std::forward<OwnerT>(value);
133 }
134 template <typename OwnerT = Aws::String>
136 SetOwner(std::forward<OwnerT>(value));
137 return *this;
138 }
140
142
145 inline ProviderType GetProviderType() const { return m_providerType; }
146 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
147 inline void SetProviderType(ProviderType value) {
148 m_providerTypeHasBeenSet = true;
149 m_providerType = value;
150 }
152 SetProviderType(value);
153 return *this;
154 }
156
158
182 inline RepositoryAssociationState GetState() const { return m_state; }
183 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
185 m_stateHasBeenSet = true;
186 m_state = value;
187 }
189 SetState(value);
190 return *this;
191 }
193
195
198 inline const Aws::String& GetStateReason() const { return m_stateReason; }
199 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
200 template <typename StateReasonT = Aws::String>
201 void SetStateReason(StateReasonT&& value) {
202 m_stateReasonHasBeenSet = true;
203 m_stateReason = std::forward<StateReasonT>(value);
204 }
205 template <typename StateReasonT = Aws::String>
206 RepositoryAssociation& WithStateReason(StateReasonT&& value) {
207 SetStateReason(std::forward<StateReasonT>(value));
208 return *this;
209 }
211
213
217 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const { return m_lastUpdatedTimeStamp; }
218 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
219 template <typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
220 void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) {
221 m_lastUpdatedTimeStampHasBeenSet = true;
222 m_lastUpdatedTimeStamp = std::forward<LastUpdatedTimeStampT>(value);
223 }
224 template <typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
225 RepositoryAssociation& WithLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) {
226 SetLastUpdatedTimeStamp(std::forward<LastUpdatedTimeStampT>(value));
227 return *this;
228 }
230
232
236 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const { return m_createdTimeStamp; }
237 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
238 template <typename CreatedTimeStampT = Aws::Utils::DateTime>
239 void SetCreatedTimeStamp(CreatedTimeStampT&& value) {
240 m_createdTimeStampHasBeenSet = true;
241 m_createdTimeStamp = std::forward<CreatedTimeStampT>(value);
242 }
243 template <typename CreatedTimeStampT = Aws::Utils::DateTime>
244 RepositoryAssociation& WithCreatedTimeStamp(CreatedTimeStampT&& value) {
245 SetCreatedTimeStamp(std::forward<CreatedTimeStampT>(value));
246 return *this;
247 }
249
251
259 inline const KMSKeyDetails& GetKMSKeyDetails() const { return m_kMSKeyDetails; }
260 inline bool KMSKeyDetailsHasBeenSet() const { return m_kMSKeyDetailsHasBeenSet; }
261 template <typename KMSKeyDetailsT = KMSKeyDetails>
262 void SetKMSKeyDetails(KMSKeyDetailsT&& value) {
263 m_kMSKeyDetailsHasBeenSet = true;
264 m_kMSKeyDetails = std::forward<KMSKeyDetailsT>(value);
265 }
266 template <typename KMSKeyDetailsT = KMSKeyDetails>
267 RepositoryAssociation& WithKMSKeyDetails(KMSKeyDetailsT&& value) {
268 SetKMSKeyDetails(std::forward<KMSKeyDetailsT>(value));
269 return *this;
270 }
272
274
275 inline const S3RepositoryDetails& GetS3RepositoryDetails() const { return m_s3RepositoryDetails; }
276 inline bool S3RepositoryDetailsHasBeenSet() const { return m_s3RepositoryDetailsHasBeenSet; }
277 template <typename S3RepositoryDetailsT = S3RepositoryDetails>
278 void SetS3RepositoryDetails(S3RepositoryDetailsT&& value) {
279 m_s3RepositoryDetailsHasBeenSet = true;
280 m_s3RepositoryDetails = std::forward<S3RepositoryDetailsT>(value);
281 }
282 template <typename S3RepositoryDetailsT = S3RepositoryDetails>
283 RepositoryAssociation& WithS3RepositoryDetails(S3RepositoryDetailsT&& value) {
284 SetS3RepositoryDetails(std::forward<S3RepositoryDetailsT>(value));
285 return *this;
286 }
288 private:
289 Aws::String m_associationId;
290
291 Aws::String m_associationArn;
292
293 Aws::String m_connectionArn;
294
295 Aws::String m_name;
296
297 Aws::String m_owner;
298
299 ProviderType m_providerType{ProviderType::NOT_SET};
300
302
303 Aws::String m_stateReason;
304
305 Aws::Utils::DateTime m_lastUpdatedTimeStamp{};
306
307 Aws::Utils::DateTime m_createdTimeStamp{};
308
309 KMSKeyDetails m_kMSKeyDetails;
310
311 S3RepositoryDetails m_s3RepositoryDetails;
312 bool m_associationIdHasBeenSet = false;
313 bool m_associationArnHasBeenSet = false;
314 bool m_connectionArnHasBeenSet = false;
315 bool m_nameHasBeenSet = false;
316 bool m_ownerHasBeenSet = false;
317 bool m_providerTypeHasBeenSet = false;
318 bool m_stateHasBeenSet = false;
319 bool m_stateReasonHasBeenSet = false;
320 bool m_lastUpdatedTimeStampHasBeenSet = false;
321 bool m_createdTimeStampHasBeenSet = false;
322 bool m_kMSKeyDetailsHasBeenSet = false;
323 bool m_s3RepositoryDetailsHasBeenSet = false;
324};
325
326} // namespace Model
327} // namespace CodeGuruReviewer
328} // namespace Aws
AWS_CODEGURUREVIEWER_API RepositoryAssociation()=default
void SetS3RepositoryDetails(S3RepositoryDetailsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimeStamp() const
RepositoryAssociation & WithOwner(OwnerT &&value)
RepositoryAssociation & WithProviderType(ProviderType value)
RepositoryAssociation & WithCreatedTimeStamp(CreatedTimeStampT &&value)
RepositoryAssociation & WithConnectionArn(ConnectionArnT &&value)
void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT &&value)
RepositoryAssociation & WithAssociationId(AssociationIdT &&value)
RepositoryAssociation & WithState(RepositoryAssociationState value)
RepositoryAssociation & WithLastUpdatedTimeStamp(LastUpdatedTimeStampT &&value)
RepositoryAssociation & WithStateReason(StateReasonT &&value)
RepositoryAssociation & WithAssociationArn(AssociationArnT &&value)
RepositoryAssociation & WithS3RepositoryDetails(S3RepositoryDetailsT &&value)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedTimeStamp() const
AWS_CODEGURUREVIEWER_API RepositoryAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositoryAssociation & WithKMSKeyDetails(KMSKeyDetailsT &&value)
const S3RepositoryDetails & GetS3RepositoryDetails() const
AWS_CODEGURUREVIEWER_API RepositoryAssociation(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue