/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies an action for an experiment template. For more information,
* see Actions
* in the Fault Injection Simulator User Guide.See Also:
* AWS
* API Reference
The ID of the action. The format of the action ID is: * aws:service-name:action-type.
*/ inline const Aws::String& GetActionId() const{ return m_actionId; } /** *The ID of the action. The format of the action ID is: * aws:service-name:action-type.
*/ inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; } /** *The ID of the action. The format of the action ID is: * aws:service-name:action-type.
*/ inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; } /** *The ID of the action. The format of the action ID is: * aws:service-name:action-type.
*/ inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); } /** *The ID of the action. The format of the action ID is: * aws:service-name:action-type.
*/ inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); } /** *The ID of the action. The format of the action ID is: * aws:service-name:action-type.
*/ inline CreateExperimentTemplateActionInput& WithActionId(const Aws::String& value) { SetActionId(value); return *this;} /** *The ID of the action. The format of the action ID is: * aws:service-name:action-type.
*/ inline CreateExperimentTemplateActionInput& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;} /** *The ID of the action. The format of the action ID is: * aws:service-name:action-type.
*/ inline CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description for the action.
*/ inline CreateExperimentTemplateActionInput& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description for the action.
*/ inline CreateExperimentTemplateActionInput& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The parameters for the action, if applicable.
*/ inline const Aws::MapThe 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::MapThe parameters for the action, if applicable.
*/ inline void SetParameters(Aws::MapThe parameters for the action, if applicable.
*/ inline CreateExperimentTemplateActionInput& WithParameters(const Aws::MapThe parameters for the action, if applicable.
*/ inline CreateExperimentTemplateActionInput& WithParameters(Aws::MapThe parameters for the action, if applicable.
*/ inline CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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::MapThe targets for the action.
*/ inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; } /** *The targets for the action.
*/ inline void SetTargets(const Aws::MapThe targets for the action.
*/ inline void SetTargets(Aws::MapThe targets for the action.
*/ inline CreateExperimentTemplateActionInput& WithTargets(const Aws::MapThe targets for the action.
*/ inline CreateExperimentTemplateActionInput& WithTargets(Aws::MapThe targets for the action.
*/ inline CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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::VectorThe 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::VectorThe 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::VectorThe 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 CreateExperimentTemplateActionInput& WithStartAfter(const Aws::VectorThe 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 CreateExperimentTemplateActionInput& WithStartAfter(Aws::VectorThe 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateActionInput& 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