/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the action for an experiment.See Also:
AWS
* API Reference
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::MapThe parameters for the action.
*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *The parameters for the action.
*/ inline void SetParameters(const Aws::MapThe parameters for the action.
*/ inline void SetParameters(Aws::MapThe parameters for the action.
*/ inline ExperimentAction& WithParameters(const Aws::MapThe parameters for the action.
*/ inline ExperimentAction& WithParameters(Aws::MapThe 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::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 ExperimentAction& WithTargets(const Aws::MapThe targets for the action.
*/ inline ExperimentAction& WithTargets(Aws::MapThe 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::VectorThe 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::VectorThe name of the action that must be completed before this action starts.
*/ inline void SetStartAfter(Aws::VectorThe name of the action that must be completed before this action starts.
*/ inline ExperimentAction& WithStartAfter(const Aws::VectorThe name of the action that must be completed before this action starts.
*/ inline ExperimentAction& WithStartAfter(Aws::VectorThe 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