AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/UpdateExperimentTemplateReportConfigurationInput.h>
15#include <aws/fis/model/UpdateExperimentTemplateStopConditionInput.h>
16#include <aws/fis/model/UpdateExperimentTemplateTargetInput.h>
17#include <aws/fis/model/UpdateExperimentTemplateActionInputItem.h>
18#include <utility>
19
20namespace Aws
21{
22namespace FIS
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_FIS_API UpdateExperimentTemplateRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateExperimentTemplate"; }
39
40 AWS_FIS_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 UpdateExperimentTemplateRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 UpdateExperimentTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::Vector<UpdateExperimentTemplateStopConditionInput>& GetStopConditions() const { return m_stopConditions; }
72 inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; }
73 template<typename StopConditionsT = Aws::Vector<UpdateExperimentTemplateStopConditionInput>>
74 void SetStopConditions(StopConditionsT&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = std::forward<StopConditionsT>(value); }
75 template<typename StopConditionsT = Aws::Vector<UpdateExperimentTemplateStopConditionInput>>
76 UpdateExperimentTemplateRequest& WithStopConditions(StopConditionsT&& value) { SetStopConditions(std::forward<StopConditionsT>(value)); return *this;}
77 template<typename StopConditionsT = UpdateExperimentTemplateStopConditionInput>
78 UpdateExperimentTemplateRequest& AddStopConditions(StopConditionsT&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.emplace_back(std::forward<StopConditionsT>(value)); return *this; }
80
82
86 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
87 template<typename TargetsT = Aws::Map<Aws::String, UpdateExperimentTemplateTargetInput>>
88 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
89 template<typename TargetsT = Aws::Map<Aws::String, UpdateExperimentTemplateTargetInput>>
90 UpdateExperimentTemplateRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
91 template<typename TargetsKeyT = Aws::String, typename TargetsValueT = UpdateExperimentTemplateTargetInput>
92 UpdateExperimentTemplateRequest& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
93 m_targetsHasBeenSet = true; m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value)); return *this;
94 }
96
98
102 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
103 template<typename ActionsT = Aws::Map<Aws::String, UpdateExperimentTemplateActionInputItem>>
104 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
105 template<typename ActionsT = Aws::Map<Aws::String, UpdateExperimentTemplateActionInputItem>>
106 UpdateExperimentTemplateRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
107 template<typename ActionsKeyT = Aws::String, typename ActionsValueT = UpdateExperimentTemplateActionInputItem>
108 UpdateExperimentTemplateRequest& AddActions(ActionsKeyT&& key, ActionsValueT&& value) {
109 m_actionsHasBeenSet = true; m_actions.emplace(std::forward<ActionsKeyT>(key), std::forward<ActionsValueT>(value)); return *this;
110 }
112
114
118 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
119 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
120 template<typename RoleArnT = Aws::String>
121 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
122 template<typename RoleArnT = Aws::String>
123 UpdateExperimentTemplateRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
125
127
130 inline const UpdateExperimentTemplateLogConfigurationInput& GetLogConfiguration() const { return m_logConfiguration; }
131 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
132 template<typename LogConfigurationT = UpdateExperimentTemplateLogConfigurationInput>
133 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
134 template<typename LogConfigurationT = UpdateExperimentTemplateLogConfigurationInput>
135 UpdateExperimentTemplateRequest& WithLogConfiguration(LogConfigurationT&& value) { SetLogConfiguration(std::forward<LogConfigurationT>(value)); return *this;}
137
139
142 inline const UpdateExperimentTemplateExperimentOptionsInput& GetExperimentOptions() const { return m_experimentOptions; }
143 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
144 template<typename ExperimentOptionsT = UpdateExperimentTemplateExperimentOptionsInput>
145 void SetExperimentOptions(ExperimentOptionsT&& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = std::forward<ExperimentOptionsT>(value); }
146 template<typename ExperimentOptionsT = UpdateExperimentTemplateExperimentOptionsInput>
147 UpdateExperimentTemplateRequest& WithExperimentOptions(ExperimentOptionsT&& value) { SetExperimentOptions(std::forward<ExperimentOptionsT>(value)); return *this;}
149
151
154 inline const UpdateExperimentTemplateReportConfigurationInput& GetExperimentReportConfiguration() const { return m_experimentReportConfiguration; }
155 inline bool ExperimentReportConfigurationHasBeenSet() const { return m_experimentReportConfigurationHasBeenSet; }
156 template<typename ExperimentReportConfigurationT = UpdateExperimentTemplateReportConfigurationInput>
157 void SetExperimentReportConfiguration(ExperimentReportConfigurationT&& value) { m_experimentReportConfigurationHasBeenSet = true; m_experimentReportConfiguration = std::forward<ExperimentReportConfigurationT>(value); }
158 template<typename ExperimentReportConfigurationT = UpdateExperimentTemplateReportConfigurationInput>
159 UpdateExperimentTemplateRequest& WithExperimentReportConfiguration(ExperimentReportConfigurationT&& value) { SetExperimentReportConfiguration(std::forward<ExperimentReportConfigurationT>(value)); return *this;}
161 private:
162
163 Aws::String m_id;
164 bool m_idHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
170 bool m_stopConditionsHasBeenSet = false;
171
173 bool m_targetsHasBeenSet = false;
174
176 bool m_actionsHasBeenSet = false;
177
178 Aws::String m_roleArn;
179 bool m_roleArnHasBeenSet = false;
180
182 bool m_logConfigurationHasBeenSet = false;
183
185 bool m_experimentOptionsHasBeenSet = false;
186
187 UpdateExperimentTemplateReportConfigurationInput m_experimentReportConfiguration;
188 bool m_experimentReportConfigurationHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace FIS
193} // namespace Aws
void SetExperimentReportConfiguration(ExperimentReportConfigurationT &&value)
UpdateExperimentTemplateRequest & AddActions(ActionsKeyT &&key, ActionsValueT &&value)
const Aws::Map< Aws::String, UpdateExperimentTemplateActionInputItem > & GetActions() const
const UpdateExperimentTemplateLogConfigurationInput & GetLogConfiguration() const
const Aws::Map< Aws::String, UpdateExperimentTemplateTargetInput > & GetTargets() const
AWS_FIS_API Aws::String SerializePayload() const override
UpdateExperimentTemplateRequest & WithExperimentOptions(ExperimentOptionsT &&value)
UpdateExperimentTemplateRequest & WithLogConfiguration(LogConfigurationT &&value)
const UpdateExperimentTemplateReportConfigurationInput & GetExperimentReportConfiguration() const
UpdateExperimentTemplateRequest & WithStopConditions(StopConditionsT &&value)
UpdateExperimentTemplateRequest & WithId(IdT &&value)
const Aws::Vector< UpdateExperimentTemplateStopConditionInput > & GetStopConditions() const
UpdateExperimentTemplateRequest & WithActions(ActionsT &&value)
UpdateExperimentTemplateRequest & WithRoleArn(RoleArnT &&value)
UpdateExperimentTemplateRequest & WithDescription(DescriptionT &&value)
UpdateExperimentTemplateRequest & AddStopConditions(StopConditionsT &&value)
UpdateExperimentTemplateRequest & WithTargets(TargetsT &&value)
const UpdateExperimentTemplateExperimentOptionsInput & GetExperimentOptions() const
UpdateExperimentTemplateRequest & WithExperimentReportConfiguration(ExperimentReportConfigurationT &&value)
UpdateExperimentTemplateRequest & AddTargets(TargetsKeyT &&key, TargetsValueT &&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