AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Repository.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/model/CodeCommitRepository.h>
9#include <aws/codeguru-reviewer/model/ThirdPartySourceRepository.h>
10#include <aws/codeguru-reviewer/model/S3Repository.h>
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:
40 AWS_CODEGURUREVIEWER_API Repository();
41 AWS_CODEGURUREVIEWER_API Repository(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEGURUREVIEWER_API Repository& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const CodeCommitRepository& GetCodeCommit() const{ return m_codeCommit; }
51 inline bool CodeCommitHasBeenSet() const { return m_codeCommitHasBeenSet; }
52 inline void SetCodeCommit(const CodeCommitRepository& value) { m_codeCommitHasBeenSet = true; m_codeCommit = value; }
53 inline void SetCodeCommit(CodeCommitRepository&& value) { m_codeCommitHasBeenSet = true; m_codeCommit = std::move(value); }
54 inline Repository& WithCodeCommit(const CodeCommitRepository& value) { SetCodeCommit(value); return *this;}
55 inline Repository& WithCodeCommit(CodeCommitRepository&& value) { SetCodeCommit(std::move(value)); return *this;}
57
59
62 inline const ThirdPartySourceRepository& GetBitbucket() const{ return m_bitbucket; }
63 inline bool BitbucketHasBeenSet() const { return m_bitbucketHasBeenSet; }
64 inline void SetBitbucket(const ThirdPartySourceRepository& value) { m_bitbucketHasBeenSet = true; m_bitbucket = value; }
65 inline void SetBitbucket(ThirdPartySourceRepository&& value) { m_bitbucketHasBeenSet = true; m_bitbucket = std::move(value); }
66 inline Repository& WithBitbucket(const ThirdPartySourceRepository& value) { SetBitbucket(value); return *this;}
67 inline Repository& WithBitbucket(ThirdPartySourceRepository&& value) { SetBitbucket(std::move(value)); return *this;}
69
71
74 inline const ThirdPartySourceRepository& GetGitHubEnterpriseServer() const{ return m_gitHubEnterpriseServer; }
75 inline bool GitHubEnterpriseServerHasBeenSet() const { return m_gitHubEnterpriseServerHasBeenSet; }
76 inline void SetGitHubEnterpriseServer(const ThirdPartySourceRepository& value) { m_gitHubEnterpriseServerHasBeenSet = true; m_gitHubEnterpriseServer = value; }
77 inline void SetGitHubEnterpriseServer(ThirdPartySourceRepository&& value) { m_gitHubEnterpriseServerHasBeenSet = true; m_gitHubEnterpriseServer = std::move(value); }
81
83
84 inline const S3Repository& GetS3Bucket() const{ return m_s3Bucket; }
85 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
86 inline void SetS3Bucket(const S3Repository& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
87 inline void SetS3Bucket(S3Repository&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
88 inline Repository& WithS3Bucket(const S3Repository& value) { SetS3Bucket(value); return *this;}
89 inline Repository& WithS3Bucket(S3Repository&& value) { SetS3Bucket(std::move(value)); return *this;}
91 private:
92
93 CodeCommitRepository m_codeCommit;
94 bool m_codeCommitHasBeenSet = false;
95
97 bool m_bitbucketHasBeenSet = false;
98
99 ThirdPartySourceRepository m_gitHubEnterpriseServer;
100 bool m_gitHubEnterpriseServerHasBeenSet = false;
101
102 S3Repository m_s3Bucket;
103 bool m_s3BucketHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace CodeGuruReviewer
108} // namespace Aws
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBitbucket(ThirdPartySourceRepository &&value)
Definition Repository.h:65
const S3Repository & GetS3Bucket() const
Definition Repository.h:84
void SetGitHubEnterpriseServer(ThirdPartySourceRepository &&value)
Definition Repository.h:77
const ThirdPartySourceRepository & GetGitHubEnterpriseServer() const
Definition Repository.h:74
const CodeCommitRepository & GetCodeCommit() const
Definition Repository.h:50
Repository & WithBitbucket(ThirdPartySourceRepository &&value)
Definition Repository.h:67
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:55
void SetGitHubEnterpriseServer(const ThirdPartySourceRepository &value)
Definition Repository.h:76
void SetS3Bucket(S3Repository &&value)
Definition Repository.h:87
void SetCodeCommit(CodeCommitRepository &&value)
Definition Repository.h:53
Repository & WithS3Bucket(S3Repository &&value)
Definition Repository.h:89
void SetCodeCommit(const CodeCommitRepository &value)
Definition Repository.h:52
void SetS3Bucket(const S3Repository &value)
Definition Repository.h:86
AWS_CODEGURUREVIEWER_API Repository()
const ThirdPartySourceRepository & GetBitbucket() const
Definition Repository.h:62
void SetBitbucket(const ThirdPartySourceRepository &value)
Definition Repository.h:64
Repository & WithBitbucket(const ThirdPartySourceRepository &value)
Definition Repository.h:66
Repository & WithCodeCommit(const CodeCommitRepository &value)
Definition Repository.h:54
Repository & WithGitHubEnterpriseServer(const ThirdPartySourceRepository &value)
Definition Repository.h:78
Repository & WithGitHubEnterpriseServer(ThirdPartySourceRepository &&value)
Definition Repository.h:79
Repository & WithS3Bucket(const S3Repository &value)
Definition Repository.h:88
Aws::Utils::Json::JsonValue JsonValue