/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Location and destination information about the source code files provided
* with the project request. The source code is uploaded to the new project source
* repository after project creation.See Also:
AWS API
* Reference
The location where the source code files provided with the project request * are stored. AWS CodeStar retrieves the files during project creation.
*/ inline const CodeSource& GetSource() const{ return m_source; } /** *The location where the source code files provided with the project request * are stored. AWS CodeStar retrieves the files during project creation.
*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *The location where the source code files provided with the project request * are stored. AWS CodeStar retrieves the files during project creation.
*/ inline void SetSource(const CodeSource& value) { m_sourceHasBeenSet = true; m_source = value; } /** *The location where the source code files provided with the project request * are stored. AWS CodeStar retrieves the files during project creation.
*/ inline void SetSource(CodeSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *The location where the source code files provided with the project request * are stored. AWS CodeStar retrieves the files during project creation.
*/ inline Code& WithSource(const CodeSource& value) { SetSource(value); return *this;} /** *The location where the source code files provided with the project request * are stored. AWS CodeStar retrieves the files during project creation.
*/ inline Code& WithSource(CodeSource&& value) { SetSource(std::move(value)); return *this;} /** *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.
*/ inline const CodeDestination& GetDestination() const{ return m_destination; } /** *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.
*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *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.
*/ inline void SetDestination(const CodeDestination& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *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.
*/ inline void SetDestination(CodeDestination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *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.
*/ inline Code& WithDestination(const CodeDestination& value) { SetDestination(value); return *this;} /** *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.
*/ inline Code& WithDestination(CodeDestination&& value) { SetDestination(std::move(value)); return *this;} private: CodeSource m_source; bool m_sourceHasBeenSet = false; CodeDestination m_destination; bool m_destinationHasBeenSet = false; }; } // namespace Model } // namespace CodeStar } // namespace Aws