/** * 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 FIS { namespace Model { /** */ class UpdateExperimentTemplateRequest : public FISRequest { public: AWS_FIS_API UpdateExperimentTemplateRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateExperimentTemplate"; } AWS_FIS_API Aws::String SerializePayload() const override; /** *

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 UpdateExperimentTemplateRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the experiment template.

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

The ID of the experiment template.

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

A description for the template.

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

A description for the template.

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

A description for the template.

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

A description for the template.

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

A description for the template.

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

A description for the template.

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

A description for the template.

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

A description for the template.

*/ inline UpdateExperimentTemplateRequest& WithDescription(const char* value) { SetDescription(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 UpdateExperimentTemplateRequest& WithStopConditions(const Aws::Vector& value) { SetStopConditions(value); return *this;} /** *

The stop conditions for the experiment.

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

The stop conditions for the experiment.

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

The stop conditions for the experiment.

*/ inline UpdateExperimentTemplateRequest& AddStopConditions(UpdateExperimentTemplateStopConditionInput&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.push_back(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 UpdateExperimentTemplateRequest& WithTargets(const Aws::Map& value) { SetTargets(value); return *this;} /** *

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

*/ inline UpdateExperimentTemplateRequest& AddActions(const char* key, const UpdateExperimentTemplateActionInputItem& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, 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 UpdateExperimentTemplateRequest& 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 UpdateExperimentTemplateRequest& 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 UpdateExperimentTemplateRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The configuration for experiment logging.

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

The configuration for experiment logging.

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

The configuration for experiment logging.

*/ inline UpdateExperimentTemplateRequest& WithLogConfiguration(const UpdateExperimentTemplateLogConfigurationInput& value) { SetLogConfiguration(value); return *this;} /** *

The configuration for experiment logging.

*/ inline UpdateExperimentTemplateRequest& WithLogConfiguration(UpdateExperimentTemplateLogConfigurationInput&& 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::Vector m_stopConditions; bool m_stopConditionsHasBeenSet = false; Aws::Map m_targets; bool m_targetsHasBeenSet = false; Aws::Map m_actions; bool m_actionsHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; UpdateExperimentTemplateLogConfigurationInput m_logConfiguration; bool m_logConfigurationHasBeenSet = false; }; } // namespace Model } // namespace FIS } // namespace Aws