/** * 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 CodeStar { namespace Model { /** *

The toolchain template file provided with the project request. AWS CodeStar * uses the template to provision the toolchain stack in AWS * CloudFormation.

See Also:

AWS * API Reference

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

The Amazon S3 location where the toolchain template file provided with the * project request is stored. AWS CodeStar retrieves the file during project * creation.

*/ inline const ToolchainSource& GetSource() const{ return m_source; } /** *

The Amazon S3 location where the toolchain template file provided with the * project request is stored. AWS CodeStar retrieves the file during project * creation.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The Amazon S3 location where the toolchain template file provided with the * project request is stored. AWS CodeStar retrieves the file during project * creation.

*/ inline void SetSource(const ToolchainSource& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The Amazon S3 location where the toolchain template file provided with the * project request is stored. AWS CodeStar retrieves the file during project * creation.

*/ inline void SetSource(ToolchainSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The Amazon S3 location where the toolchain template file provided with the * project request is stored. AWS CodeStar retrieves the file during project * creation.

*/ inline Toolchain& WithSource(const ToolchainSource& value) { SetSource(value); return *this;} /** *

The Amazon S3 location where the toolchain template file provided with the * project request is stored. AWS CodeStar retrieves the file during project * creation.

*/ inline Toolchain& WithSource(ToolchainSource&& value) { SetSource(std::move(value)); return *this;} /** *

The service role ARN for AWS CodeStar to use for the toolchain template * during stack provisioning.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The service role ARN for AWS CodeStar to use for the toolchain template * during stack provisioning.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The service role ARN for AWS CodeStar to use for the toolchain template * during stack provisioning.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The service role ARN for AWS CodeStar to use for the toolchain template * during stack provisioning.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The service role ARN for AWS CodeStar to use for the toolchain template * during stack provisioning.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The service role ARN for AWS CodeStar to use for the toolchain template * during stack provisioning.

*/ inline Toolchain& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The service role ARN for AWS CodeStar to use for the toolchain template * during stack provisioning.

*/ inline Toolchain& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The service role ARN for AWS CodeStar to use for the toolchain template * during stack provisioning.

*/ inline Toolchain& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline const Aws::Map& GetStackParameters() const{ return m_stackParameters; } /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline bool StackParametersHasBeenSet() const { return m_stackParametersHasBeenSet; } /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline void SetStackParameters(const Aws::Map& value) { m_stackParametersHasBeenSet = true; m_stackParameters = value; } /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline void SetStackParameters(Aws::Map&& value) { m_stackParametersHasBeenSet = true; m_stackParameters = std::move(value); } /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline Toolchain& WithStackParameters(const Aws::Map& value) { SetStackParameters(value); return *this;} /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline Toolchain& WithStackParameters(Aws::Map&& value) { SetStackParameters(std::move(value)); return *this;} /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline Toolchain& AddStackParameters(const Aws::String& key, const Aws::String& value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(key, value); return *this; } /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline Toolchain& AddStackParameters(Aws::String&& key, const Aws::String& value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(std::move(key), value); return *this; } /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline Toolchain& AddStackParameters(const Aws::String& key, Aws::String&& value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(key, std::move(value)); return *this; } /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline Toolchain& AddStackParameters(Aws::String&& key, Aws::String&& value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline Toolchain& AddStackParameters(const char* key, Aws::String&& value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(key, std::move(value)); return *this; } /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline Toolchain& AddStackParameters(Aws::String&& key, const char* value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(std::move(key), value); return *this; } /** *

The list of parameter overrides to be passed into the toolchain template * during stack provisioning, if any.

*/ inline Toolchain& AddStackParameters(const char* key, const char* value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(key, value); return *this; } private: ToolchainSource m_source; bool m_sourceHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Map m_stackParameters; bool m_stackParametersHasBeenSet = false; }; } // namespace Model } // namespace CodeStar } // namespace Aws