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

Describes the configuration that App Runner uses to build and run an App * Runner service from a source code repository.

See Also:

AWS * API Reference

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

The source of the App Runner configuration. Values are interpreted as * follows:

  • REPOSITORY – App Runner reads * configuration values from the apprunner.yaml file in the source * code repository and ignores CodeConfigurationValues.

  • *

    API – App Runner uses configuration values provided in * CodeConfigurationValues and ignores the apprunner.yaml * file in the source code repository.

*/ inline const ConfigurationSource& GetConfigurationSource() const{ return m_configurationSource; } /** *

The source of the App Runner configuration. Values are interpreted as * follows:

  • REPOSITORY – App Runner reads * configuration values from the apprunner.yaml file in the source * code repository and ignores CodeConfigurationValues.

  • *

    API – App Runner uses configuration values provided in * CodeConfigurationValues and ignores the apprunner.yaml * file in the source code repository.

*/ inline bool ConfigurationSourceHasBeenSet() const { return m_configurationSourceHasBeenSet; } /** *

The source of the App Runner configuration. Values are interpreted as * follows:

  • REPOSITORY – App Runner reads * configuration values from the apprunner.yaml file in the source * code repository and ignores CodeConfigurationValues.

  • *

    API – App Runner uses configuration values provided in * CodeConfigurationValues and ignores the apprunner.yaml * file in the source code repository.

*/ inline void SetConfigurationSource(const ConfigurationSource& value) { m_configurationSourceHasBeenSet = true; m_configurationSource = value; } /** *

The source of the App Runner configuration. Values are interpreted as * follows:

  • REPOSITORY – App Runner reads * configuration values from the apprunner.yaml file in the source * code repository and ignores CodeConfigurationValues.

  • *

    API – App Runner uses configuration values provided in * CodeConfigurationValues and ignores the apprunner.yaml * file in the source code repository.

*/ inline void SetConfigurationSource(ConfigurationSource&& value) { m_configurationSourceHasBeenSet = true; m_configurationSource = std::move(value); } /** *

The source of the App Runner configuration. Values are interpreted as * follows:

  • REPOSITORY – App Runner reads * configuration values from the apprunner.yaml file in the source * code repository and ignores CodeConfigurationValues.

  • *

    API – App Runner uses configuration values provided in * CodeConfigurationValues and ignores the apprunner.yaml * file in the source code repository.

*/ inline CodeConfiguration& WithConfigurationSource(const ConfigurationSource& value) { SetConfigurationSource(value); return *this;} /** *

The source of the App Runner configuration. Values are interpreted as * follows:

  • REPOSITORY – App Runner reads * configuration values from the apprunner.yaml file in the source * code repository and ignores CodeConfigurationValues.

  • *

    API – App Runner uses configuration values provided in * CodeConfigurationValues and ignores the apprunner.yaml * file in the source code repository.

*/ inline CodeConfiguration& WithConfigurationSource(ConfigurationSource&& value) { SetConfigurationSource(std::move(value)); return *this;} /** *

The basic configuration for building and running the App Runner service. Use * it to quickly launch an App Runner service without providing a * apprunner.yaml file in the source code repository (or ignoring the * file if it exists).

*/ inline const CodeConfigurationValues& GetCodeConfigurationValues() const{ return m_codeConfigurationValues; } /** *

The basic configuration for building and running the App Runner service. Use * it to quickly launch an App Runner service without providing a * apprunner.yaml file in the source code repository (or ignoring the * file if it exists).

*/ inline bool CodeConfigurationValuesHasBeenSet() const { return m_codeConfigurationValuesHasBeenSet; } /** *

The basic configuration for building and running the App Runner service. Use * it to quickly launch an App Runner service without providing a * apprunner.yaml file in the source code repository (or ignoring the * file if it exists).

*/ inline void SetCodeConfigurationValues(const CodeConfigurationValues& value) { m_codeConfigurationValuesHasBeenSet = true; m_codeConfigurationValues = value; } /** *

The basic configuration for building and running the App Runner service. Use * it to quickly launch an App Runner service without providing a * apprunner.yaml file in the source code repository (or ignoring the * file if it exists).

*/ inline void SetCodeConfigurationValues(CodeConfigurationValues&& value) { m_codeConfigurationValuesHasBeenSet = true; m_codeConfigurationValues = std::move(value); } /** *

The basic configuration for building and running the App Runner service. Use * it to quickly launch an App Runner service without providing a * apprunner.yaml file in the source code repository (or ignoring the * file if it exists).

*/ inline CodeConfiguration& WithCodeConfigurationValues(const CodeConfigurationValues& value) { SetCodeConfigurationValues(value); return *this;} /** *

The basic configuration for building and running the App Runner service. Use * it to quickly launch an App Runner service without providing a * apprunner.yaml file in the source code repository (or ignoring the * file if it exists).

*/ inline CodeConfiguration& WithCodeConfigurationValues(CodeConfigurationValues&& value) { SetCodeConfigurationValues(std::move(value)); return *this;} private: ConfigurationSource m_configurationSource; bool m_configurationSourceHasBeenSet = false; CodeConfigurationValues m_codeConfigurationValues; bool m_codeConfigurationValuesHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws