AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RepositoryAssociation.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeguru-reviewer/model/ProviderType.h>
10#include <aws/codeguru-reviewer/model/RepositoryAssociationState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/codeguru-reviewer/model/KMSKeyDetails.h>
13#include <aws/codeguru-reviewer/model/S3RepositoryDetails.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeGuruReviewer
27{
28namespace Model
29{
30
40 {
41 public:
42 AWS_CODEGURUREVIEWER_API RepositoryAssociation() = default;
43 AWS_CODEGURUREVIEWER_API RepositoryAssociation(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODEGURUREVIEWER_API RepositoryAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetAssociationId() const { return m_associationId; }
53 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
54 template<typename AssociationIdT = Aws::String>
55 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
56 template<typename AssociationIdT = Aws::String>
57 RepositoryAssociation& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
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) { m_associationArnHasBeenSet = true; m_associationArn = std::forward<AssociationArnT>(value); }
68 template<typename AssociationArnT = Aws::String>
69 RepositoryAssociation& WithAssociationArn(AssociationArnT&& value) { SetAssociationArn(std::forward<AssociationArnT>(value)); return *this;}
71
73
81 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
82 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
83 template<typename ConnectionArnT = Aws::String>
84 void SetConnectionArn(ConnectionArnT&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
85 template<typename ConnectionArnT = Aws::String>
86 RepositoryAssociation& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
88
90
93 inline const Aws::String& GetName() const { return m_name; }
94 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 template<typename NameT = Aws::String>
96 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
97 template<typename NameT = Aws::String>
98 RepositoryAssociation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
100
102
109 inline const Aws::String& GetOwner() const { return m_owner; }
110 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
111 template<typename OwnerT = Aws::String>
112 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
113 template<typename OwnerT = Aws::String>
114 RepositoryAssociation& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
116
118
121 inline ProviderType GetProviderType() const { return m_providerType; }
122 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
123 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
126
128
152 inline RepositoryAssociationState GetState() const { return m_state; }
153 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
154 inline void SetState(RepositoryAssociationState value) { m_stateHasBeenSet = true; m_state = value; }
157
159
162 inline const Aws::String& GetStateReason() const { return m_stateReason; }
163 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
164 template<typename StateReasonT = Aws::String>
165 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
166 template<typename StateReasonT = Aws::String>
167 RepositoryAssociation& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
169
171
175 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const { return m_lastUpdatedTimeStamp; }
176 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
177 template<typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
178 void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::forward<LastUpdatedTimeStampT>(value); }
179 template<typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
180 RepositoryAssociation& WithLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) { SetLastUpdatedTimeStamp(std::forward<LastUpdatedTimeStampT>(value)); return *this;}
182
184
188 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const { return m_createdTimeStamp; }
189 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
190 template<typename CreatedTimeStampT = Aws::Utils::DateTime>
191 void SetCreatedTimeStamp(CreatedTimeStampT&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::forward<CreatedTimeStampT>(value); }
192 template<typename CreatedTimeStampT = Aws::Utils::DateTime>
193 RepositoryAssociation& WithCreatedTimeStamp(CreatedTimeStampT&& value) { SetCreatedTimeStamp(std::forward<CreatedTimeStampT>(value)); return *this;}
195
197
205 inline const KMSKeyDetails& GetKMSKeyDetails() const { return m_kMSKeyDetails; }
206 inline bool KMSKeyDetailsHasBeenSet() const { return m_kMSKeyDetailsHasBeenSet; }
207 template<typename KMSKeyDetailsT = KMSKeyDetails>
208 void SetKMSKeyDetails(KMSKeyDetailsT&& value) { m_kMSKeyDetailsHasBeenSet = true; m_kMSKeyDetails = std::forward<KMSKeyDetailsT>(value); }
209 template<typename KMSKeyDetailsT = KMSKeyDetails>
210 RepositoryAssociation& WithKMSKeyDetails(KMSKeyDetailsT&& value) { SetKMSKeyDetails(std::forward<KMSKeyDetailsT>(value)); return *this;}
212
214
215 inline const S3RepositoryDetails& GetS3RepositoryDetails() const { return m_s3RepositoryDetails; }
216 inline bool S3RepositoryDetailsHasBeenSet() const { return m_s3RepositoryDetailsHasBeenSet; }
217 template<typename S3RepositoryDetailsT = S3RepositoryDetails>
218 void SetS3RepositoryDetails(S3RepositoryDetailsT&& value) { m_s3RepositoryDetailsHasBeenSet = true; m_s3RepositoryDetails = std::forward<S3RepositoryDetailsT>(value); }
219 template<typename S3RepositoryDetailsT = S3RepositoryDetails>
220 RepositoryAssociation& WithS3RepositoryDetails(S3RepositoryDetailsT&& value) { SetS3RepositoryDetails(std::forward<S3RepositoryDetailsT>(value)); return *this;}
222 private:
223
224 Aws::String m_associationId;
225 bool m_associationIdHasBeenSet = false;
226
227 Aws::String m_associationArn;
228 bool m_associationArnHasBeenSet = false;
229
230 Aws::String m_connectionArn;
231 bool m_connectionArnHasBeenSet = false;
232
233 Aws::String m_name;
234 bool m_nameHasBeenSet = false;
235
236 Aws::String m_owner;
237 bool m_ownerHasBeenSet = false;
238
239 ProviderType m_providerType{ProviderType::NOT_SET};
240 bool m_providerTypeHasBeenSet = false;
241
243 bool m_stateHasBeenSet = false;
244
245 Aws::String m_stateReason;
246 bool m_stateReasonHasBeenSet = false;
247
248 Aws::Utils::DateTime m_lastUpdatedTimeStamp{};
249 bool m_lastUpdatedTimeStampHasBeenSet = false;
250
251 Aws::Utils::DateTime m_createdTimeStamp{};
252 bool m_createdTimeStampHasBeenSet = false;
253
254 KMSKeyDetails m_kMSKeyDetails;
255 bool m_kMSKeyDetailsHasBeenSet = false;
256
257 S3RepositoryDetails m_s3RepositoryDetails;
258 bool m_s3RepositoryDetailsHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace CodeGuruReviewer
263} // namespace Aws
AWS_CODEGURUREVIEWER_API RepositoryAssociation()=default
void SetS3RepositoryDetails(S3RepositoryDetailsT &&value)
RepositoryAssociation & WithName(NameT &&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