AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Repository.h
Go to the documentation of this file.
1
6#pragma once
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 CodeGuruReviewer
24{
25namespace Model
26{
27
38 {
39 public:
44
45
49 inline const CodeCommitRepository& GetCodeCommit() const{ return m_codeCommit; }
50
54 inline bool CodeCommitHasBeenSet() const { return m_codeCommitHasBeenSet; }
55
59 inline void SetCodeCommit(const CodeCommitRepository& value) { m_codeCommitHasBeenSet = true; m_codeCommit = value; }
60
64 inline void SetCodeCommit(CodeCommitRepository&& value) { m_codeCommitHasBeenSet = true; m_codeCommit = std::move(value); }
65
69 inline Repository& WithCodeCommit(const CodeCommitRepository& value) { SetCodeCommit(value); return *this;}
70
74 inline Repository& WithCodeCommit(CodeCommitRepository&& value) { SetCodeCommit(std::move(value)); return *this;}
75
76
80 inline const ThirdPartySourceRepository& GetBitbucket() const{ return m_bitbucket; }
81
85 inline bool BitbucketHasBeenSet() const { return m_bitbucketHasBeenSet; }
86
90 inline void SetBitbucket(const ThirdPartySourceRepository& value) { m_bitbucketHasBeenSet = true; m_bitbucket = value; }
91
95 inline void SetBitbucket(ThirdPartySourceRepository&& value) { m_bitbucketHasBeenSet = true; m_bitbucket = std::move(value); }
96
100 inline Repository& WithBitbucket(const ThirdPartySourceRepository& value) { SetBitbucket(value); return *this;}
101
105 inline Repository& WithBitbucket(ThirdPartySourceRepository&& value) { SetBitbucket(std::move(value)); return *this;}
106
107
111 inline const ThirdPartySourceRepository& GetGitHubEnterpriseServer() const{ return m_gitHubEnterpriseServer; }
112
116 inline bool GitHubEnterpriseServerHasBeenSet() const { return m_gitHubEnterpriseServerHasBeenSet; }
117
121 inline void SetGitHubEnterpriseServer(const ThirdPartySourceRepository& value) { m_gitHubEnterpriseServerHasBeenSet = true; m_gitHubEnterpriseServer = value; }
122
126 inline void SetGitHubEnterpriseServer(ThirdPartySourceRepository&& value) { m_gitHubEnterpriseServerHasBeenSet = true; m_gitHubEnterpriseServer = std::move(value); }
127
132
137
138
139
140 inline const S3Repository& GetS3Bucket() const{ return m_s3Bucket; }
141
142
143 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
144
145
146 inline void SetS3Bucket(const S3Repository& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
147
148
149 inline void SetS3Bucket(S3Repository&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
150
151
152 inline Repository& WithS3Bucket(const S3Repository& value) { SetS3Bucket(value); return *this;}
153
154
155 inline Repository& WithS3Bucket(S3Repository&& value) { SetS3Bucket(std::move(value)); return *this;}
156
157 private:
158
159 CodeCommitRepository m_codeCommit;
160 bool m_codeCommitHasBeenSet = false;
161
162 ThirdPartySourceRepository m_bitbucket;
163 bool m_bitbucketHasBeenSet = false;
164
165 ThirdPartySourceRepository m_gitHubEnterpriseServer;
166 bool m_gitHubEnterpriseServerHasBeenSet = false;
167
168 S3Repository m_s3Bucket;
169 bool m_s3BucketHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace CodeGuruReviewer
174} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBitbucket(ThirdPartySourceRepository &&value)
Definition: Repository.h:95
const S3Repository & GetS3Bucket() const
Definition: Repository.h:140
void SetGitHubEnterpriseServer(ThirdPartySourceRepository &&value)
Definition: Repository.h:126
const ThirdPartySourceRepository & GetGitHubEnterpriseServer() const
Definition: Repository.h:111
const CodeCommitRepository & GetCodeCommit() const
Definition: Repository.h:49
Repository & WithBitbucket(ThirdPartySourceRepository &&value)
Definition: Repository.h:105
AWS_CODEGURUREVIEWER_API Repository & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUREVIEWER_API Repository(Aws::Utils::Json::JsonView jsonValue)
Repository & WithCodeCommit(CodeCommitRepository &&value)
Definition: Repository.h:74
void SetGitHubEnterpriseServer(const ThirdPartySourceRepository &value)
Definition: Repository.h:121
void SetS3Bucket(S3Repository &&value)
Definition: Repository.h:149
void SetCodeCommit(CodeCommitRepository &&value)
Definition: Repository.h:64
Repository & WithS3Bucket(S3Repository &&value)
Definition: Repository.h:155
void SetCodeCommit(const CodeCommitRepository &value)
Definition: Repository.h:59
void SetS3Bucket(const S3Repository &value)
Definition: Repository.h:146
AWS_CODEGURUREVIEWER_API Repository()
const ThirdPartySourceRepository & GetBitbucket() const
Definition: Repository.h:80
void SetBitbucket(const ThirdPartySourceRepository &value)
Definition: Repository.h:90
Repository & WithBitbucket(const ThirdPartySourceRepository &value)
Definition: Repository.h:100
Repository & WithCodeCommit(const CodeCommitRepository &value)
Definition: Repository.h:69
Repository & WithGitHubEnterpriseServer(const ThirdPartySourceRepository &value)
Definition: Repository.h:131
Repository & WithGitHubEnterpriseServer(ThirdPartySourceRepository &&value)
Definition: Repository.h:136
Repository & WithS3Bucket(const S3Repository &value)
Definition: Repository.h:152