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

Input information used for an action execution.

See Also:

AWS * API Reference

*/ class ActionExecutionInput { public: AWS_CODEPIPELINE_API ActionExecutionInput(); AWS_CODEPIPELINE_API ActionExecutionInput(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API ActionExecutionInput& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; inline const ActionTypeId& GetActionTypeId() const{ return m_actionTypeId; } inline bool ActionTypeIdHasBeenSet() const { return m_actionTypeIdHasBeenSet; } inline void SetActionTypeId(const ActionTypeId& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = value; } inline void SetActionTypeId(ActionTypeId&& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = std::move(value); } inline ActionExecutionInput& WithActionTypeId(const ActionTypeId& value) { SetActionTypeId(value); return *this;} inline ActionExecutionInput& WithActionTypeId(ActionTypeId&& value) { SetActionTypeId(std::move(value)); return *this;} /** *

Configuration data for an action execution.

*/ inline const Aws::Map& GetConfiguration() const{ return m_configuration; } /** *

Configuration data for an action execution.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

Configuration data for an action execution.

*/ inline void SetConfiguration(const Aws::Map& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

Configuration data for an action execution.

*/ inline void SetConfiguration(Aws::Map&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

Configuration data for an action execution.

*/ inline ActionExecutionInput& WithConfiguration(const Aws::Map& value) { SetConfiguration(value); return *this;} /** *

Configuration data for an action execution.

*/ inline ActionExecutionInput& WithConfiguration(Aws::Map&& value) { SetConfiguration(std::move(value)); return *this;} /** *

Configuration data for an action execution.

*/ inline ActionExecutionInput& AddConfiguration(const Aws::String& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; } /** *

Configuration data for an action execution.

*/ inline ActionExecutionInput& AddConfiguration(Aws::String&& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; } /** *

Configuration data for an action execution.

*/ inline ActionExecutionInput& AddConfiguration(const Aws::String& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; } /** *

Configuration data for an action execution.

*/ inline ActionExecutionInput& AddConfiguration(Aws::String&& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), std::move(value)); return *this; } /** *

Configuration data for an action execution.

*/ inline ActionExecutionInput& AddConfiguration(const char* key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; } /** *

Configuration data for an action execution.

*/ inline ActionExecutionInput& AddConfiguration(Aws::String&& key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; } /** *

Configuration data for an action execution.

*/ inline ActionExecutionInput& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline const Aws::Map& GetResolvedConfiguration() const{ return m_resolvedConfiguration; } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline bool ResolvedConfigurationHasBeenSet() const { return m_resolvedConfigurationHasBeenSet; } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline void SetResolvedConfiguration(const Aws::Map& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration = value; } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline void SetResolvedConfiguration(Aws::Map&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration = std::move(value); } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline ActionExecutionInput& WithResolvedConfiguration(const Aws::Map& value) { SetResolvedConfiguration(value); return *this;} /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline ActionExecutionInput& WithResolvedConfiguration(Aws::Map&& value) { SetResolvedConfiguration(std::move(value)); return *this;} /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline ActionExecutionInput& AddResolvedConfiguration(const Aws::String& key, const Aws::String& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(key, value); return *this; } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline ActionExecutionInput& AddResolvedConfiguration(Aws::String&& key, const Aws::String& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(std::move(key), value); return *this; } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline ActionExecutionInput& AddResolvedConfiguration(const Aws::String& key, Aws::String&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(key, std::move(value)); return *this; } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline ActionExecutionInput& AddResolvedConfiguration(Aws::String&& key, Aws::String&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(std::move(key), std::move(value)); return *this; } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline ActionExecutionInput& AddResolvedConfiguration(const char* key, Aws::String&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(key, std::move(value)); return *this; } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline ActionExecutionInput& AddResolvedConfiguration(Aws::String&& key, const char* value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(std::move(key), value); return *this; } /** *

Configuration data for an action execution with all variable references * replaced with their real values for the execution.

*/ inline ActionExecutionInput& AddResolvedConfiguration(const char* key, const char* value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(key, value); return *this; } /** *

The ARN of the IAM service role that performs the declared action. This is * assumed through the roleArn for the pipeline.

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

The ARN of the IAM service role that performs the declared action. This is * assumed through the roleArn for the pipeline.

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

The ARN of the IAM service role that performs the declared action. This is * assumed through the roleArn for the pipeline.

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

The ARN of the IAM service role that performs the declared action. This is * assumed through the roleArn for the pipeline.

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

The ARN of the IAM service role that performs the declared action. This is * assumed through the roleArn for the pipeline.

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

The ARN of the IAM service role that performs the declared action. This is * assumed through the roleArn for the pipeline.

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

The ARN of the IAM service role that performs the declared action. This is * assumed through the roleArn for the pipeline.

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

The ARN of the IAM service role that performs the declared action. This is * assumed through the roleArn for the pipeline.

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

The Amazon Web Services Region for the action, such as us-east-1.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The Amazon Web Services Region for the action, such as us-east-1.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The Amazon Web Services Region for the action, such as us-east-1.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The Amazon Web Services Region for the action, such as us-east-1.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The Amazon Web Services Region for the action, such as us-east-1.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

The Amazon Web Services Region for the action, such as us-east-1.

*/ inline ActionExecutionInput& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The Amazon Web Services Region for the action, such as us-east-1.

*/ inline ActionExecutionInput& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Region for the action, such as us-east-1.

*/ inline ActionExecutionInput& WithRegion(const char* value) { SetRegion(value); return *this;} /** *

Details of input artifacts of the action that correspond to the action * execution.

*/ inline const Aws::Vector& GetInputArtifacts() const{ return m_inputArtifacts; } /** *

Details of input artifacts of the action that correspond to the action * execution.

*/ inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; } /** *

Details of input artifacts of the action that correspond to the action * execution.

*/ inline void SetInputArtifacts(const Aws::Vector& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = value; } /** *

Details of input artifacts of the action that correspond to the action * execution.

*/ inline void SetInputArtifacts(Aws::Vector&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = std::move(value); } /** *

Details of input artifacts of the action that correspond to the action * execution.

*/ inline ActionExecutionInput& WithInputArtifacts(const Aws::Vector& value) { SetInputArtifacts(value); return *this;} /** *

Details of input artifacts of the action that correspond to the action * execution.

*/ inline ActionExecutionInput& WithInputArtifacts(Aws::Vector&& value) { SetInputArtifacts(std::move(value)); return *this;} /** *

Details of input artifacts of the action that correspond to the action * execution.

*/ inline ActionExecutionInput& AddInputArtifacts(const ArtifactDetail& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(value); return *this; } /** *

Details of input artifacts of the action that correspond to the action * execution.

*/ inline ActionExecutionInput& AddInputArtifacts(ArtifactDetail&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(std::move(value)); return *this; } /** *

The variable namespace associated with the action. All variables produced as * output by this action fall under this namespace.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The variable namespace associated with the action. All variables produced as * output by this action fall under this namespace.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The variable namespace associated with the action. All variables produced as * output by this action fall under this namespace.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

The variable namespace associated with the action. All variables produced as * output by this action fall under this namespace.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

The variable namespace associated with the action. All variables produced as * output by this action fall under this namespace.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

The variable namespace associated with the action. All variables produced as * output by this action fall under this namespace.

*/ inline ActionExecutionInput& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The variable namespace associated with the action. All variables produced as * output by this action fall under this namespace.

*/ inline ActionExecutionInput& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The variable namespace associated with the action. All variables produced as * output by this action fall under this namespace.

*/ inline ActionExecutionInput& WithNamespace(const char* value) { SetNamespace(value); return *this;} private: ActionTypeId m_actionTypeId; bool m_actionTypeIdHasBeenSet = false; Aws::Map m_configuration; bool m_configurationHasBeenSet = false; Aws::Map m_resolvedConfiguration; bool m_resolvedConfigurationHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::Vector m_inputArtifacts; bool m_inputArtifactsHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws