/** * 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 FIS { namespace Model { /** */ class CreateExperimentTemplateRequest : public FISRequest { public: AWS_FIS_API CreateExperimentTemplateRequest(); // 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 "CreateExperimentTemplate"; } AWS_FIS_API Aws::String SerializePayload() const override; /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateExperimentTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateExperimentTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateExperimentTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A description for the experiment template.

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

A description for the experiment template.

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

A description for the experiment template.

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

A description for the experiment template.

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

A description for the experiment template.

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

A description for the experiment template.

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

A description for the experiment template.

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

A description for the experiment template.

*/ inline CreateExperimentTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The stop conditions.

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

The stop conditions.

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

The stop conditions.

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

The stop conditions.

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

The stop conditions.

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

The stop conditions.

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

The stop conditions.

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

The stop conditions.

*/ inline CreateExperimentTemplateRequest& AddStopConditions(CreateExperimentTemplateStopConditionInput&& 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 CreateExperimentTemplateRequest& WithTargets(const Aws::Map& value) { SetTargets(value); return *this;} /** *

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The targets for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

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

The actions for the experiment.

*/ inline CreateExperimentTemplateRequest& AddActions(const char* key, const CreateExperimentTemplateActionInput& 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 CreateExperimentTemplateRequest& 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 CreateExperimentTemplateRequest& 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 CreateExperimentTemplateRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The tags to apply to the experiment template.

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

The configuration for experiment logging.

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

The configuration for experiment logging.

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

The configuration for experiment logging.

*/ inline CreateExperimentTemplateRequest& WithLogConfiguration(const CreateExperimentTemplateLogConfigurationInput& value) { SetLogConfiguration(value); return *this;} /** *

The configuration for experiment logging.

*/ inline CreateExperimentTemplateRequest& WithLogConfiguration(CreateExperimentTemplateLogConfigurationInput&& value) { SetLogConfiguration(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = 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; Aws::Map m_tags; bool m_tagsHasBeenSet = false; CreateExperimentTemplateLogConfigurationInput m_logConfiguration; bool m_logConfigurationHasBeenSet = false; }; } // namespace Model } // namespace FIS } // namespace Aws