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

Describes the action for an experiment.

See Also:

AWS * API Reference

*/ class ExperimentAction { public: AWS_FIS_API ExperimentAction(); AWS_FIS_API ExperimentAction(Aws::Utils::Json::JsonView jsonValue); AWS_FIS_API ExperimentAction& 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 ExperimentAction& WithActionId(const Aws::String& value) { SetActionId(value); return *this;} /** *

The ID of the action.

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

The ID of the action.

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

The description for the action.

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

The description for the action.

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

The description for the action.

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

The description for the action.

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

The description for the action.

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

The description for the action.

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

The description for the action.

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

The description for the action.

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

The parameters for the action.

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

The parameters for the action.

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

The parameters for the action.

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

The parameters for the action.

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

The parameters for the action.

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

The parameters for the action.

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

The parameters for the action.

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

The parameters for the action.

*/ inline ExperimentAction& 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.

*/ inline ExperimentAction& 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.

*/ inline ExperimentAction& 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.

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

The parameters for the action.

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

The parameters for the action.

*/ inline ExperimentAction& 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 ExperimentAction& WithTargets(const Aws::Map& value) { SetTargets(value); return *this;} /** *

The targets for the action.

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

The targets for the action.

*/ inline ExperimentAction& 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 ExperimentAction& 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 ExperimentAction& 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 ExperimentAction& 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 ExperimentAction& 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 ExperimentAction& 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 ExperimentAction& 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 this action starts.

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

The name of the action that must be completed before this action starts.

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

The name of the action that must be completed before this action starts.

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

The name of the action that must be completed before this action starts.

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

The name of the action that must be completed before this action starts.

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

The name of the action that must be completed before this action starts.

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

The name of the action that must be completed before this action starts.

*/ inline ExperimentAction& 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 this action starts.

*/ inline ExperimentAction& 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 this action starts.

*/ inline ExperimentAction& AddStartAfter(const char* value) { m_startAfterHasBeenSet = true; m_startAfter.push_back(value); return *this; } /** *

The state of the action.

*/ inline const ExperimentActionState& GetState() const{ return m_state; } /** *

The state of the action.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the action.

*/ inline void SetState(const ExperimentActionState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the action.

*/ inline void SetState(ExperimentActionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the action.

*/ inline ExperimentAction& WithState(const ExperimentActionState& value) { SetState(value); return *this;} /** *

The state of the action.

*/ inline ExperimentAction& WithState(ExperimentActionState&& value) { SetState(std::move(value)); return *this;} /** *

The time that the action started.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time that the action started.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The time that the action started.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The time that the action started.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The time that the action started.

*/ inline ExperimentAction& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time that the action started.

*/ inline ExperimentAction& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The time that the action ended.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The time that the action ended.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The time that the action ended.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The time that the action ended.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The time that the action ended.

*/ inline ExperimentAction& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The time that the action ended.

*/ inline ExperimentAction& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(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; ExperimentActionState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; }; } // namespace Model } // namespace FIS } // namespace Aws