/** * 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 #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FIS { namespace Model { /** *

Describes an experiment.

See Also:

AWS API * Reference

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

The ID of the experiment.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the experiment.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the experiment.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the experiment.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the experiment.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the experiment.

*/ inline Experiment& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the experiment.

*/ inline Experiment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the experiment.

*/ inline Experiment& WithId(const char* value) { SetId(value); return *this;} /** *

The ID of the experiment template.

*/ inline const Aws::String& GetExperimentTemplateId() const{ return m_experimentTemplateId; } /** *

The ID of the experiment template.

*/ inline bool ExperimentTemplateIdHasBeenSet() const { return m_experimentTemplateIdHasBeenSet; } /** *

The ID of the experiment template.

*/ inline void SetExperimentTemplateId(const Aws::String& value) { m_experimentTemplateIdHasBeenSet = true; m_experimentTemplateId = value; } /** *

The ID of the experiment template.

*/ inline void SetExperimentTemplateId(Aws::String&& value) { m_experimentTemplateIdHasBeenSet = true; m_experimentTemplateId = std::move(value); } /** *

The ID of the experiment template.

*/ inline void SetExperimentTemplateId(const char* value) { m_experimentTemplateIdHasBeenSet = true; m_experimentTemplateId.assign(value); } /** *

The ID of the experiment template.

*/ inline Experiment& WithExperimentTemplateId(const Aws::String& value) { SetExperimentTemplateId(value); return *this;} /** *

The ID of the experiment template.

*/ inline Experiment& WithExperimentTemplateId(Aws::String&& value) { SetExperimentTemplateId(std::move(value)); return *this;} /** *

The ID of the experiment template.

*/ inline Experiment& WithExperimentTemplateId(const char* value) { SetExperimentTemplateId(value); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that grants the FIS service * permission to perform service actions on your behalf.

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

The Amazon Resource Name (ARN) of an IAM role that grants the FIS service * permission to perform service actions on your behalf.

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

The Amazon Resource Name (ARN) of an IAM role that grants the FIS service * permission to perform service actions on your behalf.

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

The Amazon Resource Name (ARN) of an IAM role that grants the FIS service * permission to perform service actions on your behalf.

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

The Amazon Resource Name (ARN) of an IAM role that grants the FIS service * permission to perform service actions on your behalf.

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

The Amazon Resource Name (ARN) of an IAM role that grants the FIS service * permission to perform service actions on your behalf.

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

The Amazon Resource Name (ARN) of an IAM role that grants the FIS service * permission to perform service actions on your behalf.

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

The Amazon Resource Name (ARN) of an IAM role that grants the FIS service * permission to perform service actions on your behalf.

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

The state of the experiment.

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

The state of the experiment.

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

The state of the experiment.

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

The state of the experiment.

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

The state of the experiment.

*/ inline Experiment& WithState(const ExperimentState& value) { SetState(value); return *this;} /** *

The state of the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The actions for the experiment.

*/ inline const Aws::Map& GetActions() const{ return m_actions; } /** *

The actions for the experiment.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

The actions for the experiment.

*/ inline void SetActions(const Aws::Map& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

The actions for the experiment.

*/ inline void SetActions(Aws::Map&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

The actions for the experiment.

*/ inline Experiment& WithActions(const Aws::Map& value) { SetActions(value); return *this;} /** *

The actions for the experiment.

*/ inline Experiment& WithActions(Aws::Map&& value) { SetActions(std::move(value)); return *this;} /** *

The actions for the experiment.

*/ inline Experiment& AddActions(const Aws::String& key, const ExperimentAction& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this; } /** *

The actions for the experiment.

*/ inline Experiment& AddActions(Aws::String&& key, const ExperimentAction& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), value); return *this; } /** *

The actions for the experiment.

*/ inline Experiment& AddActions(const Aws::String& key, ExperimentAction&& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, std::move(value)); return *this; } /** *

The actions for the experiment.

*/ inline Experiment& AddActions(Aws::String&& key, ExperimentAction&& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), std::move(value)); return *this; } /** *

The actions for the experiment.

*/ inline Experiment& AddActions(const char* key, ExperimentAction&& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, std::move(value)); return *this; } /** *

The actions for the experiment.

*/ inline Experiment& AddActions(const char* key, const ExperimentAction& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this; } /** *

The stop conditions for the experiment.

*/ inline const Aws::Vector& GetStopConditions() const{ return m_stopConditions; } /** *

The stop conditions for the experiment.

*/ inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; } /** *

The stop conditions for the experiment.

*/ inline void SetStopConditions(const Aws::Vector& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = value; } /** *

The stop conditions for the experiment.

*/ inline void SetStopConditions(Aws::Vector&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = std::move(value); } /** *

The stop conditions for the experiment.

*/ inline Experiment& WithStopConditions(const Aws::Vector& value) { SetStopConditions(value); return *this;} /** *

The stop conditions for the experiment.

*/ inline Experiment& WithStopConditions(Aws::Vector&& value) { SetStopConditions(std::move(value)); return *this;} /** *

The stop conditions for the experiment.

*/ inline Experiment& AddStopConditions(const ExperimentStopCondition& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.push_back(value); return *this; } /** *

The stop conditions for the experiment.

*/ inline Experiment& AddStopConditions(ExperimentStopCondition&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.push_back(std::move(value)); return *this; } /** *

The time that the experiment was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The time that the experiment was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The time that the experiment was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The time that the experiment was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The time that the experiment was created.

*/ inline Experiment& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The time that the experiment was created.

*/ inline Experiment& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The time that the experiment started.

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

The time that the experiment started.

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

The time that the experiment started.

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

The time that the experiment started.

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

The time that the experiment started.

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

The time that the experiment started.

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

The time that the experiment ended.

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

The time that the experiment ended.

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

The time that the experiment ended.

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

The time that the experiment ended.

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

The time that the experiment ended.

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

The time that the experiment ended.

*/ inline Experiment& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The tags for the experiment.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags for the experiment.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags for the experiment.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags for the experiment.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags for the experiment.

*/ inline Experiment& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags for the experiment.

*/ inline Experiment& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags for the experiment.

*/ inline Experiment& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags for the experiment.

*/ inline Experiment& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags for the experiment.

*/ inline Experiment& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags for the experiment.

*/ inline Experiment& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags for the experiment.

*/ inline Experiment& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags for the experiment.

*/ inline Experiment& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags for the experiment.

*/ inline Experiment& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The configuration for experiment logging.

*/ inline const ExperimentLogConfiguration& GetLogConfiguration() const{ return m_logConfiguration; } /** *

The configuration for experiment logging.

*/ inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; } /** *

The configuration for experiment logging.

*/ inline void SetLogConfiguration(const ExperimentLogConfiguration& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; } /** *

The configuration for experiment logging.

*/ inline void SetLogConfiguration(ExperimentLogConfiguration&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); } /** *

The configuration for experiment logging.

*/ inline Experiment& WithLogConfiguration(const ExperimentLogConfiguration& value) { SetLogConfiguration(value); return *this;} /** *

The configuration for experiment logging.

*/ inline Experiment& WithLogConfiguration(ExperimentLogConfiguration&& value) { SetLogConfiguration(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_experimentTemplateId; bool m_experimentTemplateIdHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; ExperimentState m_state; bool m_stateHasBeenSet = false; Aws::Map m_targets; bool m_targetsHasBeenSet = false; Aws::Map m_actions; bool m_actionsHasBeenSet = false; Aws::Vector m_stopConditions; bool m_stopConditionsHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; ExperimentLogConfiguration m_logConfiguration; bool m_logConfigurationHasBeenSet = false; }; } // namespace Model } // namespace FIS } // namespace Aws