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

Specifies an action for an experiment template.

See Also:

AWS * API Reference

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

The ID of the action.

*/ inline const Aws::String& GetActionId() const{ return m_actionId; } /** *

The ID of the action.

*/ inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; } /** *

The ID of the action.

*/ inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; } /** *

The ID of the action.

*/ inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); } /** *

The ID of the action.

*/ inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); } /** *

The ID of the action.

*/ inline UpdateExperimentTemplateActionInputItem& WithActionId(const Aws::String& value) { SetActionId(value); return *this;} /** *

The ID of the action.

*/ inline UpdateExperimentTemplateActionInputItem& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;} /** *

The ID of the action.

*/ inline UpdateExperimentTemplateActionInputItem& WithActionId(const char* value) { SetActionId(value); return *this;} /** *

A description for the action.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the action.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the action.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the action.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the action.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the action.

*/ inline UpdateExperimentTemplateActionInputItem& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the action.

*/ inline UpdateExperimentTemplateActionInputItem& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the action.

*/ inline UpdateExperimentTemplateActionInputItem& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The parameters for the action, if applicable.

*/ inline const Aws::Map& GetParameters() const{ return m_parameters; } /** *

The parameters for the action, if applicable.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

The parameters for the action, if applicable.

*/ inline void SetParameters(const Aws::Map& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

The parameters for the action, if applicable.

*/ inline void SetParameters(Aws::Map&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

The parameters for the action, if applicable.

*/ inline UpdateExperimentTemplateActionInputItem& WithParameters(const Aws::Map& value) { SetParameters(value); return *this;} /** *

The parameters for the action, if applicable.

*/ inline UpdateExperimentTemplateActionInputItem& WithParameters(Aws::Map&& value) { SetParameters(std::move(value)); return *this;} /** *

The parameters for the action, if applicable.

*/ inline UpdateExperimentTemplateActionInputItem& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

The parameters for the action, if applicable.

*/ inline UpdateExperimentTemplateActionInputItem& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

The parameters for the action, if applicable.

*/ inline UpdateExperimentTemplateActionInputItem& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

The parameters for the action, if applicable.

*/ inline UpdateExperimentTemplateActionInputItem& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The parameters for the action, if applicable.

*/ inline UpdateExperimentTemplateActionInputItem& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

The parameters for the action, if applicable.

*/ inline UpdateExperimentTemplateActionInputItem& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

The parameters for the action, if applicable.

*/ inline UpdateExperimentTemplateActionInputItem& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

The targets for the action.

*/ inline const Aws::Map& GetTargets() const{ return m_targets; } /** *

The targets for the action.

*/ inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; } /** *

The targets for the action.

*/ inline void SetTargets(const Aws::Map& value) { m_targetsHasBeenSet = true; m_targets = value; } /** *

The targets for the action.

*/ inline void SetTargets(Aws::Map&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); } /** *

The targets for the action.

*/ inline UpdateExperimentTemplateActionInputItem& WithTargets(const Aws::Map& value) { SetTargets(value); return *this;} /** *

The targets for the action.

*/ inline UpdateExperimentTemplateActionInputItem& WithTargets(Aws::Map&& value) { SetTargets(std::move(value)); return *this;} /** *

The targets for the action.

*/ inline UpdateExperimentTemplateActionInputItem& AddTargets(const Aws::String& key, const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; } /** *

The targets for the action.

*/ inline UpdateExperimentTemplateActionInputItem& AddTargets(Aws::String&& key, const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; } /** *

The targets for the action.

*/ inline UpdateExperimentTemplateActionInputItem& AddTargets(const Aws::String& key, Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; } /** *

The targets for the action.

*/ inline UpdateExperimentTemplateActionInputItem& AddTargets(Aws::String&& key, Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), std::move(value)); return *this; } /** *

The targets for the action.

*/ inline UpdateExperimentTemplateActionInputItem& AddTargets(const char* key, Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; } /** *

The targets for the action.

*/ inline UpdateExperimentTemplateActionInputItem& AddTargets(Aws::String&& key, const char* value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; } /** *

The targets for the action.

*/ inline UpdateExperimentTemplateActionInputItem& AddTargets(const char* key, const char* value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; } /** *

The name of the action that must be completed before the current action * starts. Omit this parameter to run the action at the start of the * experiment.

*/ inline const Aws::Vector& GetStartAfter() const{ return m_startAfter; } /** *

The name of the action that must be completed before the current action * starts. Omit this parameter to run the action at the start of the * experiment.

*/ inline bool StartAfterHasBeenSet() const { return m_startAfterHasBeenSet; } /** *

The name of the action that must be completed before the current action * starts. Omit this parameter to run the action at the start of the * experiment.

*/ inline void SetStartAfter(const Aws::Vector& value) { m_startAfterHasBeenSet = true; m_startAfter = value; } /** *

The name of the action that must be completed before the current action * starts. Omit this parameter to run the action at the start of the * experiment.

*/ inline void SetStartAfter(Aws::Vector&& value) { m_startAfterHasBeenSet = true; m_startAfter = std::move(value); } /** *

The name of the action that must be completed before the current action * starts. Omit this parameter to run the action at the start of the * experiment.

*/ inline UpdateExperimentTemplateActionInputItem& WithStartAfter(const Aws::Vector& value) { SetStartAfter(value); return *this;} /** *

The name of the action that must be completed before the current action * starts. Omit this parameter to run the action at the start of the * experiment.

*/ inline UpdateExperimentTemplateActionInputItem& WithStartAfter(Aws::Vector&& value) { SetStartAfter(std::move(value)); return *this;} /** *

The name of the action that must be completed before the current action * starts. Omit this parameter to run the action at the start of the * experiment.

*/ inline UpdateExperimentTemplateActionInputItem& AddStartAfter(const Aws::String& value) { m_startAfterHasBeenSet = true; m_startAfter.push_back(value); return *this; } /** *

The name of the action that must be completed before the current action * starts. Omit this parameter to run the action at the start of the * experiment.

*/ inline UpdateExperimentTemplateActionInputItem& AddStartAfter(Aws::String&& value) { m_startAfterHasBeenSet = true; m_startAfter.push_back(std::move(value)); return *this; } /** *

The name of the action that must be completed before the current action * starts. Omit this parameter to run the action at the start of the * experiment.

*/ inline UpdateExperimentTemplateActionInputItem& AddStartAfter(const char* value) { m_startAfterHasBeenSet = true; m_startAfter.push_back(value); return *this; } private: Aws::String m_actionId; bool m_actionIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_parameters; bool m_parametersHasBeenSet = false; Aws::Map m_targets; bool m_targetsHasBeenSet = false; Aws::Vector m_startAfter; bool m_startAfterHasBeenSet = false; }; } // namespace Model } // namespace FIS } // namespace Aws