/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an experiment.See Also:
AWS API
* Reference
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::MapThe targets for the experiment.
*/ inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; } /** *The targets for the experiment.
*/ inline void SetTargets(const Aws::MapThe targets for the experiment.
*/ inline void SetTargets(Aws::MapThe targets for the experiment.
*/ inline Experiment& WithTargets(const Aws::MapThe targets for the experiment.
*/ inline Experiment& WithTargets(Aws::MapThe 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::MapThe actions for the experiment.
*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *The actions for the experiment.
*/ inline void SetActions(const Aws::MapThe actions for the experiment.
*/ inline void SetActions(Aws::MapThe actions for the experiment.
*/ inline Experiment& WithActions(const Aws::MapThe actions for the experiment.
*/ inline Experiment& WithActions(Aws::MapThe 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::VectorThe stop conditions for the experiment.
*/ inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; } /** *The stop conditions for the experiment.
*/ inline void SetStopConditions(const Aws::VectorThe stop conditions for the experiment.
*/ inline void SetStopConditions(Aws::VectorThe stop conditions for the experiment.
*/ inline Experiment& WithStopConditions(const Aws::VectorThe stop conditions for the experiment.
*/ inline Experiment& WithStopConditions(Aws::VectorThe 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::MapThe tags for the experiment.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags for the experiment.
*/ inline void SetTags(const Aws::MapThe tags for the experiment.
*/ inline void SetTags(Aws::MapThe tags for the experiment.
*/ inline Experiment& WithTags(const Aws::MapThe tags for the experiment.
*/ inline Experiment& WithTags(Aws::MapThe 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