/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an associated Amazon Web Services CodeCommit repository or
* an associated repository that is managed by Amazon Web Services CodeStar
* Connections (for example, Bitbucket). This Repository
object is not
* used if your source code is in an associated GitHub repository.See
* Also:
AWS
* API Reference
Information about an Amazon Web Services CodeCommit repository.
*/ inline const CodeCommitRepository& GetCodeCommit() const{ return m_codeCommit; } /** *Information about an Amazon Web Services CodeCommit repository.
*/ inline bool CodeCommitHasBeenSet() const { return m_codeCommitHasBeenSet; } /** *Information about an Amazon Web Services CodeCommit repository.
*/ inline void SetCodeCommit(const CodeCommitRepository& value) { m_codeCommitHasBeenSet = true; m_codeCommit = value; } /** *Information about an Amazon Web Services CodeCommit repository.
*/ inline void SetCodeCommit(CodeCommitRepository&& value) { m_codeCommitHasBeenSet = true; m_codeCommit = std::move(value); } /** *Information about an Amazon Web Services CodeCommit repository.
*/ inline Repository& WithCodeCommit(const CodeCommitRepository& value) { SetCodeCommit(value); return *this;} /** *Information about an Amazon Web Services CodeCommit repository.
*/ inline Repository& WithCodeCommit(CodeCommitRepository&& value) { SetCodeCommit(std::move(value)); return *this;} /** *Information about a Bitbucket repository.
*/ inline const ThirdPartySourceRepository& GetBitbucket() const{ return m_bitbucket; } /** *Information about a Bitbucket repository.
*/ inline bool BitbucketHasBeenSet() const { return m_bitbucketHasBeenSet; } /** *Information about a Bitbucket repository.
*/ inline void SetBitbucket(const ThirdPartySourceRepository& value) { m_bitbucketHasBeenSet = true; m_bitbucket = value; } /** *Information about a Bitbucket repository.
*/ inline void SetBitbucket(ThirdPartySourceRepository&& value) { m_bitbucketHasBeenSet = true; m_bitbucket = std::move(value); } /** *Information about a Bitbucket repository.
*/ inline Repository& WithBitbucket(const ThirdPartySourceRepository& value) { SetBitbucket(value); return *this;} /** *Information about a Bitbucket repository.
*/ inline Repository& WithBitbucket(ThirdPartySourceRepository&& value) { SetBitbucket(std::move(value)); return *this;} /** *Information about a GitHub Enterprise Server repository.
*/ inline const ThirdPartySourceRepository& GetGitHubEnterpriseServer() const{ return m_gitHubEnterpriseServer; } /** *Information about a GitHub Enterprise Server repository.
*/ inline bool GitHubEnterpriseServerHasBeenSet() const { return m_gitHubEnterpriseServerHasBeenSet; } /** *Information about a GitHub Enterprise Server repository.
*/ inline void SetGitHubEnterpriseServer(const ThirdPartySourceRepository& value) { m_gitHubEnterpriseServerHasBeenSet = true; m_gitHubEnterpriseServer = value; } /** *Information about a GitHub Enterprise Server repository.
*/ inline void SetGitHubEnterpriseServer(ThirdPartySourceRepository&& value) { m_gitHubEnterpriseServerHasBeenSet = true; m_gitHubEnterpriseServer = std::move(value); } /** *Information about a GitHub Enterprise Server repository.
*/ inline Repository& WithGitHubEnterpriseServer(const ThirdPartySourceRepository& value) { SetGitHubEnterpriseServer(value); return *this;} /** *Information about a GitHub Enterprise Server repository.
*/ inline Repository& WithGitHubEnterpriseServer(ThirdPartySourceRepository&& value) { SetGitHubEnterpriseServer(std::move(value)); return *this;} inline const S3Repository& GetS3Bucket() const{ return m_s3Bucket; } inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; } inline void SetS3Bucket(const S3Repository& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; } inline void SetS3Bucket(S3Repository&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); } inline Repository& WithS3Bucket(const S3Repository& value) { SetS3Bucket(value); return *this;} inline Repository& WithS3Bucket(S3Repository&& value) { SetS3Bucket(std::move(value)); return *this;} private: CodeCommitRepository m_codeCommit; bool m_codeCommitHasBeenSet = false; ThirdPartySourceRepository m_bitbucket; bool m_bitbucketHasBeenSet = false; ThirdPartySourceRepository m_gitHubEnterpriseServer; bool m_gitHubEnterpriseServerHasBeenSet = false; S3Repository m_s3Bucket; bool m_s3BucketHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws