AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateExperimentTemplateRequest.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/fis/FISRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/fis/model/UpdateExperimentTemplateLogConfigurationInput.h>
13#include <aws/fis/model/UpdateExperimentTemplateExperimentOptionsInput.h>
14#include <aws/fis/model/UpdateExperimentTemplateStopConditionInput.h>
15#include <aws/fis/model/UpdateExperimentTemplateTargetInput.h>
16#include <aws/fis/model/UpdateExperimentTemplateActionInputItem.h>
17#include <utility>
18
19namespace Aws
20{
21namespace FIS
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateExperimentTemplate"; }
38
39 AWS_FIS_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline UpdateExperimentTemplateRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline UpdateExperimentTemplateRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline UpdateExperimentTemplateRequest& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline UpdateExperimentTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline UpdateExperimentTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline UpdateExperimentTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
74 inline const Aws::Vector<UpdateExperimentTemplateStopConditionInput>& GetStopConditions() const{ return m_stopConditions; }
75 inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; }
76 inline void SetStopConditions(const Aws::Vector<UpdateExperimentTemplateStopConditionInput>& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = value; }
77 inline void SetStopConditions(Aws::Vector<UpdateExperimentTemplateStopConditionInput>&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = std::move(value); }
80 inline UpdateExperimentTemplateRequest& AddStopConditions(const UpdateExperimentTemplateStopConditionInput& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.push_back(value); return *this; }
81 inline UpdateExperimentTemplateRequest& AddStopConditions(UpdateExperimentTemplateStopConditionInput&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.push_back(std::move(value)); return *this; }
83
85
89 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
90 inline void SetTargets(const Aws::Map<Aws::String, UpdateExperimentTemplateTargetInput>& value) { m_targetsHasBeenSet = true; m_targets = value; }
91 inline void SetTargets(Aws::Map<Aws::String, UpdateExperimentTemplateTargetInput>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
94 inline UpdateExperimentTemplateRequest& AddTargets(const Aws::String& key, const UpdateExperimentTemplateTargetInput& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
95 inline UpdateExperimentTemplateRequest& AddTargets(Aws::String&& key, const UpdateExperimentTemplateTargetInput& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; }
96 inline UpdateExperimentTemplateRequest& AddTargets(const Aws::String& key, UpdateExperimentTemplateTargetInput&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
97 inline UpdateExperimentTemplateRequest& AddTargets(Aws::String&& key, UpdateExperimentTemplateTargetInput&& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), std::move(value)); return *this; }
98 inline UpdateExperimentTemplateRequest& AddTargets(const char* key, UpdateExperimentTemplateTargetInput&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
99 inline UpdateExperimentTemplateRequest& AddTargets(const char* key, const UpdateExperimentTemplateTargetInput& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
101
103
107 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
108 inline void SetActions(const Aws::Map<Aws::String, UpdateExperimentTemplateActionInputItem>& value) { m_actionsHasBeenSet = true; m_actions = value; }
109 inline void SetActions(Aws::Map<Aws::String, UpdateExperimentTemplateActionInputItem>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
112 inline UpdateExperimentTemplateRequest& AddActions(const Aws::String& key, const UpdateExperimentTemplateActionInputItem& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this; }
113 inline UpdateExperimentTemplateRequest& AddActions(Aws::String&& key, const UpdateExperimentTemplateActionInputItem& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), value); return *this; }
114 inline UpdateExperimentTemplateRequest& AddActions(const Aws::String& key, UpdateExperimentTemplateActionInputItem&& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, std::move(value)); return *this; }
115 inline UpdateExperimentTemplateRequest& AddActions(Aws::String&& key, UpdateExperimentTemplateActionInputItem&& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), std::move(value)); return *this; }
116 inline UpdateExperimentTemplateRequest& AddActions(const char* key, UpdateExperimentTemplateActionInputItem&& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, std::move(value)); return *this; }
117 inline UpdateExperimentTemplateRequest& AddActions(const char* key, const UpdateExperimentTemplateActionInputItem& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this; }
119
121
125 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
126 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
127 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
128 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
129 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
130 inline UpdateExperimentTemplateRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
131 inline UpdateExperimentTemplateRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
132 inline UpdateExperimentTemplateRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
134
136
139 inline const UpdateExperimentTemplateLogConfigurationInput& GetLogConfiguration() const{ return m_logConfiguration; }
140 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
141 inline void SetLogConfiguration(const UpdateExperimentTemplateLogConfigurationInput& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; }
142 inline void SetLogConfiguration(UpdateExperimentTemplateLogConfigurationInput&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); }
146
148
151 inline const UpdateExperimentTemplateExperimentOptionsInput& GetExperimentOptions() const{ return m_experimentOptions; }
152 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
153 inline void SetExperimentOptions(const UpdateExperimentTemplateExperimentOptionsInput& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = value; }
154 inline void SetExperimentOptions(UpdateExperimentTemplateExperimentOptionsInput&& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = std::move(value); }
158 private:
159
160 Aws::String m_id;
161 bool m_idHasBeenSet = false;
162
163 Aws::String m_description;
164 bool m_descriptionHasBeenSet = false;
165
167 bool m_stopConditionsHasBeenSet = false;
168
170 bool m_targetsHasBeenSet = false;
171
173 bool m_actionsHasBeenSet = false;
174
175 Aws::String m_roleArn;
176 bool m_roleArnHasBeenSet = false;
177
179 bool m_logConfigurationHasBeenSet = false;
180
182 bool m_experimentOptionsHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace FIS
187} // namespace Aws
UpdateExperimentTemplateRequest & AddActions(const Aws::String &key, const UpdateExperimentTemplateActionInputItem &value)
void SetTargets(Aws::Map< Aws::String, UpdateExperimentTemplateTargetInput > &&value)
UpdateExperimentTemplateRequest & AddActions(Aws::String &&key, const UpdateExperimentTemplateActionInputItem &value)
UpdateExperimentTemplateRequest & WithRoleArn(const Aws::String &value)
void SetExperimentOptions(const UpdateExperimentTemplateExperimentOptionsInput &value)
UpdateExperimentTemplateRequest & WithDescription(const Aws::String &value)
UpdateExperimentTemplateRequest & WithActions(Aws::Map< Aws::String, UpdateExperimentTemplateActionInputItem > &&value)
const Aws::Map< Aws::String, UpdateExperimentTemplateActionInputItem > & GetActions() const
UpdateExperimentTemplateRequest & AddTargets(Aws::String &&key, UpdateExperimentTemplateTargetInput &&value)
void SetStopConditions(Aws::Vector< UpdateExperimentTemplateStopConditionInput > &&value)
UpdateExperimentTemplateRequest & AddActions(const char *key, const UpdateExperimentTemplateActionInputItem &value)
const UpdateExperimentTemplateLogConfigurationInput & GetLogConfiguration() const
const Aws::Map< Aws::String, UpdateExperimentTemplateTargetInput > & GetTargets() const
void SetLogConfiguration(UpdateExperimentTemplateLogConfigurationInput &&value)
UpdateExperimentTemplateRequest & WithExperimentOptions(UpdateExperimentTemplateExperimentOptionsInput &&value)
AWS_FIS_API Aws::String SerializePayload() const override
UpdateExperimentTemplateRequest & WithRoleArn(const char *value)
UpdateExperimentTemplateRequest & AddTargets(const char *key, UpdateExperimentTemplateTargetInput &&value)
UpdateExperimentTemplateRequest & WithStopConditions(const Aws::Vector< UpdateExperimentTemplateStopConditionInput > &value)
UpdateExperimentTemplateRequest & AddActions(const char *key, UpdateExperimentTemplateActionInputItem &&value)
UpdateExperimentTemplateRequest & AddStopConditions(UpdateExperimentTemplateStopConditionInput &&value)
void SetActions(Aws::Map< Aws::String, UpdateExperimentTemplateActionInputItem > &&value)
UpdateExperimentTemplateRequest & AddActions(Aws::String &&key, UpdateExperimentTemplateActionInputItem &&value)
UpdateExperimentTemplateRequest & WithId(const Aws::String &value)
const Aws::Vector< UpdateExperimentTemplateStopConditionInput > & GetStopConditions() const
UpdateExperimentTemplateRequest & AddActions(const Aws::String &key, UpdateExperimentTemplateActionInputItem &&value)
void SetStopConditions(const Aws::Vector< UpdateExperimentTemplateStopConditionInput > &value)
UpdateExperimentTemplateRequest & WithRoleArn(Aws::String &&value)
UpdateExperimentTemplateRequest & WithDescription(Aws::String &&value)
void SetExperimentOptions(UpdateExperimentTemplateExperimentOptionsInput &&value)
UpdateExperimentTemplateRequest & WithDescription(const char *value)
UpdateExperimentTemplateRequest & AddTargets(const char *key, const UpdateExperimentTemplateTargetInput &value)
UpdateExperimentTemplateRequest & AddTargets(const Aws::String &key, UpdateExperimentTemplateTargetInput &&value)
UpdateExperimentTemplateRequest & WithLogConfiguration(UpdateExperimentTemplateLogConfigurationInput &&value)
UpdateExperimentTemplateRequest & WithLogConfiguration(const UpdateExperimentTemplateLogConfigurationInput &value)
void SetLogConfiguration(const UpdateExperimentTemplateLogConfigurationInput &value)
UpdateExperimentTemplateRequest & WithTargets(const Aws::Map< Aws::String, UpdateExperimentTemplateTargetInput > &value)
UpdateExperimentTemplateRequest & WithStopConditions(Aws::Vector< UpdateExperimentTemplateStopConditionInput > &&value)
void SetActions(const Aws::Map< Aws::String, UpdateExperimentTemplateActionInputItem > &value)
UpdateExperimentTemplateRequest & WithActions(const Aws::Map< Aws::String, UpdateExperimentTemplateActionInputItem > &value)
UpdateExperimentTemplateRequest & WithId(Aws::String &&value)
UpdateExperimentTemplateRequest & WithExperimentOptions(const UpdateExperimentTemplateExperimentOptionsInput &value)
UpdateExperimentTemplateRequest & AddTargets(Aws::String &&key, const UpdateExperimentTemplateTargetInput &value)
UpdateExperimentTemplateRequest & AddStopConditions(const UpdateExperimentTemplateStopConditionInput &value)
UpdateExperimentTemplateRequest & WithTargets(Aws::Map< Aws::String, UpdateExperimentTemplateTargetInput > &&value)
UpdateExperimentTemplateRequest & WithId(const char *value)
const UpdateExperimentTemplateExperimentOptionsInput & GetExperimentOptions() const
void SetTargets(const Aws::Map< Aws::String, UpdateExperimentTemplateTargetInput > &value)
UpdateExperimentTemplateRequest & AddTargets(const Aws::String &key, const UpdateExperimentTemplateTargetInput &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector