/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppRunner { namespace Model { /** *

Describes a source code repository.

See Also:

AWS * API Reference

*/ class CodeRepository { public: AWS_APPRUNNER_API CodeRepository(); AWS_APPRUNNER_API CodeRepository(Aws::Utils::Json::JsonView jsonValue); AWS_APPRUNNER_API CodeRepository& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The location of the repository that contains the source code.

*/ inline const Aws::String& GetRepositoryUrl() const{ return m_repositoryUrl; } /** *

The location of the repository that contains the source code.

*/ inline bool RepositoryUrlHasBeenSet() const { return m_repositoryUrlHasBeenSet; } /** *

The location of the repository that contains the source code.

*/ inline void SetRepositoryUrl(const Aws::String& value) { m_repositoryUrlHasBeenSet = true; m_repositoryUrl = value; } /** *

The location of the repository that contains the source code.

*/ inline void SetRepositoryUrl(Aws::String&& value) { m_repositoryUrlHasBeenSet = true; m_repositoryUrl = std::move(value); } /** *

The location of the repository that contains the source code.

*/ inline void SetRepositoryUrl(const char* value) { m_repositoryUrlHasBeenSet = true; m_repositoryUrl.assign(value); } /** *

The location of the repository that contains the source code.

*/ inline CodeRepository& WithRepositoryUrl(const Aws::String& value) { SetRepositoryUrl(value); return *this;} /** *

The location of the repository that contains the source code.

*/ inline CodeRepository& WithRepositoryUrl(Aws::String&& value) { SetRepositoryUrl(std::move(value)); return *this;} /** *

The location of the repository that contains the source code.

*/ inline CodeRepository& WithRepositoryUrl(const char* value) { SetRepositoryUrl(value); return *this;} /** *

The version that should be used within the source code repository.

*/ inline const SourceCodeVersion& GetSourceCodeVersion() const{ return m_sourceCodeVersion; } /** *

The version that should be used within the source code repository.

*/ inline bool SourceCodeVersionHasBeenSet() const { return m_sourceCodeVersionHasBeenSet; } /** *

The version that should be used within the source code repository.

*/ inline void SetSourceCodeVersion(const SourceCodeVersion& value) { m_sourceCodeVersionHasBeenSet = true; m_sourceCodeVersion = value; } /** *

The version that should be used within the source code repository.

*/ inline void SetSourceCodeVersion(SourceCodeVersion&& value) { m_sourceCodeVersionHasBeenSet = true; m_sourceCodeVersion = std::move(value); } /** *

The version that should be used within the source code repository.

*/ inline CodeRepository& WithSourceCodeVersion(const SourceCodeVersion& value) { SetSourceCodeVersion(value); return *this;} /** *

The version that should be used within the source code repository.

*/ inline CodeRepository& WithSourceCodeVersion(SourceCodeVersion&& value) { SetSourceCodeVersion(std::move(value)); return *this;} /** *

Configuration for building and running the service from a source code * repository.

CodeConfiguration is required only for * CreateService request.

*/ inline const CodeConfiguration& GetCodeConfiguration() const{ return m_codeConfiguration; } /** *

Configuration for building and running the service from a source code * repository.

CodeConfiguration is required only for * CreateService request.

*/ inline bool CodeConfigurationHasBeenSet() const { return m_codeConfigurationHasBeenSet; } /** *

Configuration for building and running the service from a source code * repository.

CodeConfiguration is required only for * CreateService request.

*/ inline void SetCodeConfiguration(const CodeConfiguration& value) { m_codeConfigurationHasBeenSet = true; m_codeConfiguration = value; } /** *

Configuration for building and running the service from a source code * repository.

CodeConfiguration is required only for * CreateService request.

*/ inline void SetCodeConfiguration(CodeConfiguration&& value) { m_codeConfigurationHasBeenSet = true; m_codeConfiguration = std::move(value); } /** *

Configuration for building and running the service from a source code * repository.

CodeConfiguration is required only for * CreateService request.

*/ inline CodeRepository& WithCodeConfiguration(const CodeConfiguration& value) { SetCodeConfiguration(value); return *this;} /** *

Configuration for building and running the service from a source code * repository.

CodeConfiguration is required only for * CreateService request.

*/ inline CodeRepository& WithCodeConfiguration(CodeConfiguration&& value) { SetCodeConfiguration(std::move(value)); return *this;} private: Aws::String m_repositoryUrl; bool m_repositoryUrlHasBeenSet = false; SourceCodeVersion m_sourceCodeVersion; bool m_sourceCodeVersionHasBeenSet = false; CodeConfiguration m_codeConfiguration; bool m_codeConfigurationHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws