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