/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit
* or GitHub. After AWS CodeStar provisions the new repository, the source code
* files provided with the project request are placed in the
* repository.See Also:
AWS
* API Reference
Information about the AWS CodeCommit repository to be created in AWS * CodeStar. This is where the source code files provided with the project request * will be uploaded after project creation.
*/ inline const CodeCommitCodeDestination& GetCodeCommit() const{ return m_codeCommit; } /** *Information about the AWS CodeCommit repository to be created in AWS * CodeStar. This is where the source code files provided with the project request * will be uploaded after project creation.
*/ inline bool CodeCommitHasBeenSet() const { return m_codeCommitHasBeenSet; } /** *Information about the AWS CodeCommit repository to be created in AWS * CodeStar. This is where the source code files provided with the project request * will be uploaded after project creation.
*/ inline void SetCodeCommit(const CodeCommitCodeDestination& value) { m_codeCommitHasBeenSet = true; m_codeCommit = value; } /** *Information about the AWS CodeCommit repository to be created in AWS * CodeStar. This is where the source code files provided with the project request * will be uploaded after project creation.
*/ inline void SetCodeCommit(CodeCommitCodeDestination&& value) { m_codeCommitHasBeenSet = true; m_codeCommit = std::move(value); } /** *Information about the AWS CodeCommit repository to be created in AWS * CodeStar. This is where the source code files provided with the project request * will be uploaded after project creation.
*/ inline CodeDestination& WithCodeCommit(const CodeCommitCodeDestination& value) { SetCodeCommit(value); return *this;} /** *Information about the AWS CodeCommit repository to be created in AWS * CodeStar. This is where the source code files provided with the project request * will be uploaded after project creation.
*/ inline CodeDestination& WithCodeCommit(CodeCommitCodeDestination&& value) { SetCodeCommit(std::move(value)); return *this;} /** *Information about the GitHub repository to be created in AWS CodeStar. This * is where the source code files provided with the project request will be * uploaded after project creation.
*/ inline const GitHubCodeDestination& GetGitHub() const{ return m_gitHub; } /** *Information about the GitHub repository to be created in AWS CodeStar. This * is where the source code files provided with the project request will be * uploaded after project creation.
*/ inline bool GitHubHasBeenSet() const { return m_gitHubHasBeenSet; } /** *Information about the GitHub repository to be created in AWS CodeStar. This * is where the source code files provided with the project request will be * uploaded after project creation.
*/ inline void SetGitHub(const GitHubCodeDestination& value) { m_gitHubHasBeenSet = true; m_gitHub = value; } /** *Information about the GitHub repository to be created in AWS CodeStar. This * is where the source code files provided with the project request will be * uploaded after project creation.
*/ inline void SetGitHub(GitHubCodeDestination&& value) { m_gitHubHasBeenSet = true; m_gitHub = std::move(value); } /** *Information about the GitHub repository to be created in AWS CodeStar. This * is where the source code files provided with the project request will be * uploaded after project creation.
*/ inline CodeDestination& WithGitHub(const GitHubCodeDestination& value) { SetGitHub(value); return *this;} /** *Information about the GitHub repository to be created in AWS CodeStar. This * is where the source code files provided with the project request will be * uploaded after project creation.
*/ inline CodeDestination& WithGitHub(GitHubCodeDestination&& value) { SetGitHub(std::move(value)); return *this;} private: CodeCommitCodeDestination m_codeCommit; bool m_codeCommitHasBeenSet; GitHubCodeDestination m_gitHub; bool m_gitHubHasBeenSet; }; } // namespace Model } // namespace CodeStar } // namespace Aws