AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
55 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
56 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
57 inline RepositoryAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
58 inline RepositoryAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
59 inline RepositoryAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
61
63
66 inline const Aws::String& GetAssociationArn() const{ return m_associationArn; }
67 inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
68 inline void SetAssociationArn(const Aws::String& value) { m_associationArnHasBeenSet = true; m_associationArn = value; }
69 inline void SetAssociationArn(Aws::String&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::move(value); }
70 inline void SetAssociationArn(const char* value) { m_associationArnHasBeenSet = true; m_associationArn.assign(value); }
71 inline RepositoryAssociation& WithAssociationArn(const Aws::String& value) { SetAssociationArn(value); return *this;}
72 inline RepositoryAssociation& WithAssociationArn(Aws::String&& value) { SetAssociationArn(std::move(value)); return *this;}
73 inline RepositoryAssociation& WithAssociationArn(const char* value) { SetAssociationArn(value); return *this;}
75
77
85 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
86 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
87 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
88 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
89 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
90 inline RepositoryAssociation& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
91 inline RepositoryAssociation& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
92 inline RepositoryAssociation& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
94
96
99 inline const Aws::String& GetName() const{ return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
102 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 inline RepositoryAssociation& WithName(const Aws::String& value) { SetName(value); return *this;}
105 inline RepositoryAssociation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
106 inline RepositoryAssociation& WithName(const char* value) { SetName(value); return *this;}
108
110
117 inline const Aws::String& GetOwner() const{ return m_owner; }
118 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
119 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
120 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
121 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
122 inline RepositoryAssociation& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
123 inline RepositoryAssociation& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
124 inline RepositoryAssociation& WithOwner(const char* value) { SetOwner(value); return *this;}
126
128
131 inline const ProviderType& GetProviderType() const{ return m_providerType; }
132 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
133 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
134 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
135 inline RepositoryAssociation& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
136 inline RepositoryAssociation& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
138
140
164 inline const RepositoryAssociationState& GetState() const{ return m_state; }
165 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
166 inline void SetState(const RepositoryAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
167 inline void SetState(RepositoryAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
168 inline RepositoryAssociation& WithState(const RepositoryAssociationState& value) { SetState(value); return *this;}
169 inline RepositoryAssociation& WithState(RepositoryAssociationState&& value) { SetState(std::move(value)); return *this;}
171
173
176 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
177 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
178 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
179 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
180 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
181 inline RepositoryAssociation& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
182 inline RepositoryAssociation& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
183 inline RepositoryAssociation& WithStateReason(const char* value) { SetStateReason(value); return *this;}
185
187
191 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
192 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
193 inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
194 inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
198
200
204 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
205 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
206 inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; }
207 inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); }
209 inline RepositoryAssociation& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
211
213
221 inline const KMSKeyDetails& GetKMSKeyDetails() const{ return m_kMSKeyDetails; }
222 inline bool KMSKeyDetailsHasBeenSet() const { return m_kMSKeyDetailsHasBeenSet; }
223 inline void SetKMSKeyDetails(const KMSKeyDetails& value) { m_kMSKeyDetailsHasBeenSet = true; m_kMSKeyDetails = value; }
224 inline void SetKMSKeyDetails(KMSKeyDetails&& value) { m_kMSKeyDetailsHasBeenSet = true; m_kMSKeyDetails = std::move(value); }
225 inline RepositoryAssociation& WithKMSKeyDetails(const KMSKeyDetails& value) { SetKMSKeyDetails(value); return *this;}
226 inline RepositoryAssociation& WithKMSKeyDetails(KMSKeyDetails&& value) { SetKMSKeyDetails(std::move(value)); return *this;}
228
230
231 inline const S3RepositoryDetails& GetS3RepositoryDetails() const{ return m_s3RepositoryDetails; }
232 inline bool S3RepositoryDetailsHasBeenSet() const { return m_s3RepositoryDetailsHasBeenSet; }
233 inline void SetS3RepositoryDetails(const S3RepositoryDetails& value) { m_s3RepositoryDetailsHasBeenSet = true; m_s3RepositoryDetails = value; }
234 inline void SetS3RepositoryDetails(S3RepositoryDetails&& value) { m_s3RepositoryDetailsHasBeenSet = true; m_s3RepositoryDetails = std::move(value); }
238 private:
239
240 Aws::String m_associationId;
241 bool m_associationIdHasBeenSet = false;
242
243 Aws::String m_associationArn;
244 bool m_associationArnHasBeenSet = false;
245
246 Aws::String m_connectionArn;
247 bool m_connectionArnHasBeenSet = false;
248
249 Aws::String m_name;
250 bool m_nameHasBeenSet = false;
251
252 Aws::String m_owner;
253 bool m_ownerHasBeenSet = false;
254
255 ProviderType m_providerType;
256 bool m_providerTypeHasBeenSet = false;
257
259 bool m_stateHasBeenSet = false;
260
261 Aws::String m_stateReason;
262 bool m_stateReasonHasBeenSet = false;
263
264 Aws::Utils::DateTime m_lastUpdatedTimeStamp;
265 bool m_lastUpdatedTimeStampHasBeenSet = false;
266
267 Aws::Utils::DateTime m_createdTimeStamp;
268 bool m_createdTimeStampHasBeenSet = false;
269
270 KMSKeyDetails m_kMSKeyDetails;
271 bool m_kMSKeyDetailsHasBeenSet = false;
272
273 S3RepositoryDetails m_s3RepositoryDetails;
274 bool m_s3RepositoryDetailsHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace CodeGuruReviewer
279} // namespace Aws
RepositoryAssociation & WithLastUpdatedTimeStamp(const Aws::Utils::DateTime &value)
const RepositoryAssociationState & GetState() const
RepositoryAssociation & WithName(const Aws::String &value)
RepositoryAssociation & WithAssociationArn(const char *value)
const Aws::Utils::DateTime & GetLastUpdatedTimeStamp() const
RepositoryAssociation & WithAssociationId(const Aws::String &value)
RepositoryAssociation & WithState(RepositoryAssociationState &&value)
RepositoryAssociation & WithAssociationArn(Aws::String &&value)
RepositoryAssociation & WithStateReason(const Aws::String &value)
RepositoryAssociation & WithOwner(const char *value)
void SetState(const RepositoryAssociationState &value)
RepositoryAssociation & WithStateReason(Aws::String &&value)
RepositoryAssociation & WithKMSKeyDetails(const KMSKeyDetails &value)
RepositoryAssociation & WithS3RepositoryDetails(const S3RepositoryDetails &value)
RepositoryAssociation & WithConnectionArn(const char *value)
void SetS3RepositoryDetails(const S3RepositoryDetails &value)
RepositoryAssociation & WithName(Aws::String &&value)
RepositoryAssociation & WithAssociationId(Aws::String &&value)
RepositoryAssociation & WithKMSKeyDetails(KMSKeyDetails &&value)
void SetState(RepositoryAssociationState &&value)
void SetLastUpdatedTimeStamp(Aws::Utils::DateTime &&value)
RepositoryAssociation & WithState(const RepositoryAssociationState &value)
RepositoryAssociation & WithCreatedTimeStamp(const Aws::Utils::DateTime &value)
RepositoryAssociation & WithStateReason(const char *value)
RepositoryAssociation & WithProviderType(ProviderType &&value)
RepositoryAssociation & WithName(const char *value)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
RepositoryAssociation & WithCreatedTimeStamp(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreatedTimeStamp() const
RepositoryAssociation & WithS3RepositoryDetails(S3RepositoryDetails &&value)
void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime &value)
RepositoryAssociation & WithConnectionArn(const Aws::String &value)
RepositoryAssociation & WithLastUpdatedTimeStamp(Aws::Utils::DateTime &&value)
RepositoryAssociation & WithOwner(Aws::String &&value)
AWS_CODEGURUREVIEWER_API RepositoryAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
const S3RepositoryDetails & GetS3RepositoryDetails() const
RepositoryAssociation & WithOwner(const Aws::String &value)
void SetCreatedTimeStamp(const Aws::Utils::DateTime &value)
RepositoryAssociation & WithConnectionArn(Aws::String &&value)
RepositoryAssociation & WithAssociationArn(const Aws::String &value)
RepositoryAssociation & WithAssociationId(const char *value)
AWS_CODEGURUREVIEWER_API RepositoryAssociation(Aws::Utils::Json::JsonView jsonValue)
RepositoryAssociation & WithProviderType(const ProviderType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue