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

Describes an experiment template.

See Also:

AWS * API Reference

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

The ID of the experiment template.

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

The ID of the experiment template.

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

The ID of the experiment template.

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

The ID of the experiment template.

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

The ID of the experiment template.

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

The ID of the experiment template.

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

The ID of the experiment template.

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

The ID of the experiment template.

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

The description for the experiment template.

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

The description for the experiment template.

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

The description for the experiment template.

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

The description for the experiment template.

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

The description for the experiment template.

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

The description for the experiment template.

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

The description for the experiment template.

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

The description for the experiment template.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

*/ inline ExperimentTemplate& AddTargets(const char* key, const ExperimentTemplateTarget& 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 ExperimentTemplate& WithActions(const Aws::Map& value) { SetActions(value); return *this;} /** *

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

*/ inline ExperimentTemplate& AddActions(const char* key, const ExperimentTemplateAction& 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 ExperimentTemplate& WithStopConditions(const Aws::Vector& value) { SetStopConditions(value); return *this;} /** *

The stop conditions for the experiment.

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

The stop conditions for the experiment.

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

The stop conditions for the experiment.

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

The time the experiment template was created.

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

The time the experiment template was created.

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

The time the experiment template was created.

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

The time the experiment template was created.

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

The time the experiment template was created.

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

The time the experiment template was created.

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

The time the experiment template was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *

The time the experiment template was last updated.

*/ inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; } /** *

The time the experiment template was last updated.

*/ inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; } /** *

The time the experiment template was last updated.

*/ inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); } /** *

The time the experiment template was last updated.

*/ inline ExperimentTemplate& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;} /** *

The time the experiment template was last updated.

*/ inline ExperimentTemplate& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role.

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

The Amazon Resource Name (ARN) of an IAM role.

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

The Amazon Resource Name (ARN) of an IAM role.

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

The Amazon Resource Name (ARN) of an IAM role.

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

The Amazon Resource Name (ARN) of an IAM role.

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

The Amazon Resource Name (ARN) of an IAM role.

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

The Amazon Resource Name (ARN) of an IAM role.

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

The Amazon Resource Name (ARN) of an IAM role.

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

The tags for the experiment template.

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

The tags for the experiment template.

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

The tags for the experiment template.

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

The tags for the experiment template.

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

The tags for the experiment template.

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

The tags for the experiment template.

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

The tags for the experiment template.

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

The tags for the experiment template.

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

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

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

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

The tags for the experiment template.

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

The tags for the experiment template.

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

The configuration for experiment logging.

*/ inline const ExperimentTemplateLogConfiguration& 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 ExperimentTemplateLogConfiguration& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; } /** *

The configuration for experiment logging.

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

The configuration for experiment logging.

*/ inline ExperimentTemplate& WithLogConfiguration(const ExperimentTemplateLogConfiguration& value) { SetLogConfiguration(value); return *this;} /** *

The configuration for experiment logging.

*/ inline ExperimentTemplate& WithLogConfiguration(ExperimentTemplateLogConfiguration&& value) { SetLogConfiguration(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = 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_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; ExperimentTemplateLogConfiguration m_logConfiguration; bool m_logConfigurationHasBeenSet = false; }; } // namespace Model } // namespace FIS } // namespace Aws