AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
StartExperimentRunRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/appconfig/model/DeploymentParameters.h>
10#include <aws/appconfig/model/TreatmentOverrides.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppConfig {
18namespace Model {
19
23 public:
24 AWS_APPCONFIG_API StartExperimentRunRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartExperimentRun"; }
31
32 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetApplicationIdentifier() const { return m_applicationIdentifier; }
39 inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; }
40 template <typename ApplicationIdentifierT = Aws::String>
41 void SetApplicationIdentifier(ApplicationIdentifierT&& value) {
42 m_applicationIdentifierHasBeenSet = true;
43 m_applicationIdentifier = std::forward<ApplicationIdentifierT>(value);
44 }
45 template <typename ApplicationIdentifierT = Aws::String>
46 StartExperimentRunRequest& WithApplicationIdentifier(ApplicationIdentifierT&& value) {
47 SetApplicationIdentifier(std::forward<ApplicationIdentifierT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetExperimentDefinitionIdentifier() const { return m_experimentDefinitionIdentifier; }
57 inline bool ExperimentDefinitionIdentifierHasBeenSet() const { return m_experimentDefinitionIdentifierHasBeenSet; }
58 template <typename ExperimentDefinitionIdentifierT = Aws::String>
59 void SetExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT&& value) {
60 m_experimentDefinitionIdentifierHasBeenSet = true;
61 m_experimentDefinitionIdentifier = std::forward<ExperimentDefinitionIdentifierT>(value);
62 }
63 template <typename ExperimentDefinitionIdentifierT = Aws::String>
64 StartExperimentRunRequest& WithExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT&& value) {
65 SetExperimentDefinitionIdentifier(std::forward<ExperimentDefinitionIdentifierT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
93 inline double GetExposurePercentage() const { return m_exposurePercentage; }
94 inline bool ExposurePercentageHasBeenSet() const { return m_exposurePercentageHasBeenSet; }
95 inline void SetExposurePercentage(double value) {
96 m_exposurePercentageHasBeenSet = true;
97 m_exposurePercentage = value;
98 }
101 return *this;
102 }
104
106
110 inline const TreatmentOverrides& GetTreatmentOverrides() const { return m_treatmentOverrides; }
111 inline bool TreatmentOverridesHasBeenSet() const { return m_treatmentOverridesHasBeenSet; }
112 template <typename TreatmentOverridesT = TreatmentOverrides>
113 void SetTreatmentOverrides(TreatmentOverridesT&& value) {
114 m_treatmentOverridesHasBeenSet = true;
115 m_treatmentOverrides = std::forward<TreatmentOverridesT>(value);
116 }
117 template <typename TreatmentOverridesT = TreatmentOverrides>
118 StartExperimentRunRequest& WithTreatmentOverrides(TreatmentOverridesT&& value) {
119 SetTreatmentOverrides(std::forward<TreatmentOverridesT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 void SetTags(TagsT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags = std::forward<TagsT>(value);
134 }
135 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 SetTags(std::forward<TagsT>(value));
138 return *this;
139 }
140 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
141 StartExperimentRunRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
144 return *this;
145 }
147
149
153 inline const DeploymentParameters& GetDeploymentParameters() const { return m_deploymentParameters; }
154 inline bool DeploymentParametersHasBeenSet() const { return m_deploymentParametersHasBeenSet; }
155 template <typename DeploymentParametersT = DeploymentParameters>
156 void SetDeploymentParameters(DeploymentParametersT&& value) {
157 m_deploymentParametersHasBeenSet = true;
158 m_deploymentParameters = std::forward<DeploymentParametersT>(value);
159 }
160 template <typename DeploymentParametersT = DeploymentParameters>
161 StartExperimentRunRequest& WithDeploymentParameters(DeploymentParametersT&& value) {
162 SetDeploymentParameters(std::forward<DeploymentParametersT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_applicationIdentifier;
168
169 Aws::String m_experimentDefinitionIdentifier;
170
171 Aws::String m_description;
172
173 double m_exposurePercentage{0.0};
174
175 TreatmentOverrides m_treatmentOverrides;
176
178
179 DeploymentParameters m_deploymentParameters;
180 bool m_applicationIdentifierHasBeenSet = false;
181 bool m_experimentDefinitionIdentifierHasBeenSet = false;
182 bool m_descriptionHasBeenSet = false;
183 bool m_exposurePercentageHasBeenSet = false;
184 bool m_treatmentOverridesHasBeenSet = false;
185 bool m_tagsHasBeenSet = false;
186 bool m_deploymentParametersHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace AppConfig
191} // namespace Aws
const DeploymentParameters & GetDeploymentParameters() const
void SetExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_APPCONFIG_API StartExperimentRunRequest()=default
virtual const char * GetServiceRequestName() const override
StartExperimentRunRequest & WithTreatmentOverrides(TreatmentOverridesT &&value)
StartExperimentRunRequest & WithTags(TagsT &&value)
void SetApplicationIdentifier(ApplicationIdentifierT &&value)
StartExperimentRunRequest & WithDescription(DescriptionT &&value)
StartExperimentRunRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
StartExperimentRunRequest & WithDeploymentParameters(DeploymentParametersT &&value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
StartExperimentRunRequest & WithExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT &&value)
StartExperimentRunRequest & WithExposurePercentage(double value)
StartExperimentRunRequest & WithApplicationIdentifier(ApplicationIdentifierT &&value)
void SetDeploymentParameters(DeploymentParametersT &&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