AWS SDK for C++  1.9.19
AWS SDK for C++
Repository.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CodeGuruReviewer
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
47  inline const CodeCommitRepository& GetCodeCommit() const{ return m_codeCommit; }
48 
52  inline bool CodeCommitHasBeenSet() const { return m_codeCommitHasBeenSet; }
53 
57  inline void SetCodeCommit(const CodeCommitRepository& value) { m_codeCommitHasBeenSet = true; m_codeCommit = value; }
58 
62  inline void SetCodeCommit(CodeCommitRepository&& value) { m_codeCommitHasBeenSet = true; m_codeCommit = std::move(value); }
63 
67  inline Repository& WithCodeCommit(const CodeCommitRepository& value) { SetCodeCommit(value); return *this;}
68 
72  inline Repository& WithCodeCommit(CodeCommitRepository&& value) { SetCodeCommit(std::move(value)); return *this;}
73 
74 
78  inline const ThirdPartySourceRepository& GetBitbucket() const{ return m_bitbucket; }
79 
83  inline bool BitbucketHasBeenSet() const { return m_bitbucketHasBeenSet; }
84 
88  inline void SetBitbucket(const ThirdPartySourceRepository& value) { m_bitbucketHasBeenSet = true; m_bitbucket = value; }
89 
93  inline void SetBitbucket(ThirdPartySourceRepository&& value) { m_bitbucketHasBeenSet = true; m_bitbucket = std::move(value); }
94 
98  inline Repository& WithBitbucket(const ThirdPartySourceRepository& value) { SetBitbucket(value); return *this;}
99 
103  inline Repository& WithBitbucket(ThirdPartySourceRepository&& value) { SetBitbucket(std::move(value)); return *this;}
104 
105 
109  inline const ThirdPartySourceRepository& GetGitHubEnterpriseServer() const{ return m_gitHubEnterpriseServer; }
110 
114  inline bool GitHubEnterpriseServerHasBeenSet() const { return m_gitHubEnterpriseServerHasBeenSet; }
115 
119  inline void SetGitHubEnterpriseServer(const ThirdPartySourceRepository& value) { m_gitHubEnterpriseServerHasBeenSet = true; m_gitHubEnterpriseServer = value; }
120 
124  inline void SetGitHubEnterpriseServer(ThirdPartySourceRepository&& value) { m_gitHubEnterpriseServerHasBeenSet = true; m_gitHubEnterpriseServer = std::move(value); }
125 
129  inline Repository& WithGitHubEnterpriseServer(const ThirdPartySourceRepository& value) { SetGitHubEnterpriseServer(value); return *this;}
130 
134  inline Repository& WithGitHubEnterpriseServer(ThirdPartySourceRepository&& value) { SetGitHubEnterpriseServer(std::move(value)); return *this;}
135 
136  private:
137 
138  CodeCommitRepository m_codeCommit;
139  bool m_codeCommitHasBeenSet;
140 
141  ThirdPartySourceRepository m_bitbucket;
142  bool m_bitbucketHasBeenSet;
143 
144  ThirdPartySourceRepository m_gitHubEnterpriseServer;
145  bool m_gitHubEnterpriseServerHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace CodeGuruReviewer
150 } // namespace Aws
Aws::CodeGuruReviewer::Model::Repository::SetGitHubEnterpriseServer
void SetGitHubEnterpriseServer(ThirdPartySourceRepository &&value)
Definition: Repository.h:124
Aws::CodeGuruReviewer::Model::Repository::WithCodeCommit
Repository & WithCodeCommit(CodeCommitRepository &&value)
Definition: Repository.h:72
Aws::CodeGuruReviewer::Model::Repository::GetGitHubEnterpriseServer
const ThirdPartySourceRepository & GetGitHubEnterpriseServer() const
Definition: Repository.h:109
Aws::CodeGuruReviewer::Model::Repository::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeGuruReviewer::Model::Repository::SetCodeCommit
void SetCodeCommit(CodeCommitRepository &&value)
Definition: Repository.h:62
AWS_CODEGURUREVIEWER_API
#define AWS_CODEGURUREVIEWER_API
Definition: CodeGuruReviewer_EXPORTS.h:28
Aws::CodeGuruReviewer::Model::Repository::Repository
Repository()
CodeCommitRepository.h
Aws::CodeGuruReviewer::Model::Repository::SetBitbucket
void SetBitbucket(const ThirdPartySourceRepository &value)
Definition: Repository.h:88
Aws::CodeGuruReviewer::Model::Repository::SetCodeCommit
void SetCodeCommit(const CodeCommitRepository &value)
Definition: Repository.h:57
CodeGuruReviewer_EXPORTS.h
Aws::CodeGuruReviewer::Model::Repository::WithGitHubEnterpriseServer
Repository & WithGitHubEnterpriseServer(const ThirdPartySourceRepository &value)
Definition: Repository.h:129
Aws::CodeGuruReviewer::Model::Repository::GitHubEnterpriseServerHasBeenSet
bool GitHubEnterpriseServerHasBeenSet() const
Definition: Repository.h:114
Aws::CodeGuruReviewer::Model::Repository::WithBitbucket
Repository & WithBitbucket(const ThirdPartySourceRepository &value)
Definition: Repository.h:98
Aws::CodeGuruReviewer::Model::Repository::SetBitbucket
void SetBitbucket(ThirdPartySourceRepository &&value)
Definition: Repository.h:93
ThirdPartySourceRepository.h
Aws::CodeGuruReviewer::Model::Repository::WithCodeCommit
Repository & WithCodeCommit(const CodeCommitRepository &value)
Definition: Repository.h:67
Aws::CodeGuruReviewer::Model::Repository::Repository
Repository(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeGuruReviewer::Model::Repository::SetGitHubEnterpriseServer
void SetGitHubEnterpriseServer(const ThirdPartySourceRepository &value)
Definition: Repository.h:119
Aws::CodeGuruReviewer::Model::Repository
Definition: Repository.h:36
Aws::CodeGuruReviewer::Model::Repository::WithGitHubEnterpriseServer
Repository & WithGitHubEnterpriseServer(ThirdPartySourceRepository &&value)
Definition: Repository.h:134
Aws::CodeGuruReviewer::Model::Repository::CodeCommitHasBeenSet
bool CodeCommitHasBeenSet() const
Definition: Repository.h:52
Aws::CodeGuruReviewer::Model::Repository::GetBitbucket
const ThirdPartySourceRepository & GetBitbucket() const
Definition: Repository.h:78
Aws::CodeGuruReviewer::Model::Repository::operator=
Repository & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruReviewer::Model::ThirdPartySourceRepository
Definition: ThirdPartySourceRepository.h:33
Aws::CodeGuruReviewer::Model::Repository::WithBitbucket
Repository & WithBitbucket(ThirdPartySourceRepository &&value)
Definition: Repository.h:103
Aws::CodeGuruReviewer::Model::CodeCommitRepository
Definition: CodeCommitRepository.h:34
Aws::CodeGuruReviewer::Model::Repository::BitbucketHasBeenSet
bool BitbucketHasBeenSet() const
Definition: Repository.h:83
Aws::CodeGuruReviewer::Model::Repository::GetCodeCommit
const CodeCommitRepository & GetCodeCommit() const
Definition: Repository.h:47