AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
UpdateExperimentRunRequest.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/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AppConfig {
17namespace Model {
18
22 public:
23 AWS_APPCONFIG_API UpdateExperimentRunRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateExperimentRun"; }
30
31 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetApplicationIdentifier() const { return m_applicationIdentifier; }
38 inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; }
39 template <typename ApplicationIdentifierT = Aws::String>
40 void SetApplicationIdentifier(ApplicationIdentifierT&& value) {
41 m_applicationIdentifierHasBeenSet = true;
42 m_applicationIdentifier = std::forward<ApplicationIdentifierT>(value);
43 }
44 template <typename ApplicationIdentifierT = Aws::String>
45 UpdateExperimentRunRequest& WithApplicationIdentifier(ApplicationIdentifierT&& value) {
46 SetApplicationIdentifier(std::forward<ApplicationIdentifierT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetExperimentDefinitionIdentifier() const { return m_experimentDefinitionIdentifier; }
56 inline bool ExperimentDefinitionIdentifierHasBeenSet() const { return m_experimentDefinitionIdentifierHasBeenSet; }
57 template <typename ExperimentDefinitionIdentifierT = Aws::String>
58 void SetExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT&& value) {
59 m_experimentDefinitionIdentifierHasBeenSet = true;
60 m_experimentDefinitionIdentifier = std::forward<ExperimentDefinitionIdentifierT>(value);
61 }
62 template <typename ExperimentDefinitionIdentifierT = Aws::String>
63 UpdateExperimentRunRequest& WithExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT&& value) {
64 SetExperimentDefinitionIdentifier(std::forward<ExperimentDefinitionIdentifierT>(value));
65 return *this;
66 }
68
70
73 inline int GetRun() const { return m_run; }
74 inline bool RunHasBeenSet() const { return m_runHasBeenSet; }
75 inline void SetRun(int value) {
76 m_runHasBeenSet = true;
77 m_run = value;
78 }
80 SetRun(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 template <typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) {
93 m_descriptionHasBeenSet = true;
94 m_description = std::forward<DescriptionT>(value);
95 }
96 template <typename DescriptionT = Aws::String>
98 SetDescription(std::forward<DescriptionT>(value));
99 return *this;
100 }
102
104
108 inline double GetExposurePercentage() const { return m_exposurePercentage; }
109 inline bool ExposurePercentageHasBeenSet() const { return m_exposurePercentageHasBeenSet; }
110 inline void SetExposurePercentage(double value) {
111 m_exposurePercentageHasBeenSet = true;
112 m_exposurePercentage = value;
113 }
116 return *this;
117 }
119
121
125 inline const TreatmentOverrides& GetTreatmentOverrides() const { return m_treatmentOverrides; }
126 inline bool TreatmentOverridesHasBeenSet() const { return m_treatmentOverridesHasBeenSet; }
127 template <typename TreatmentOverridesT = TreatmentOverrides>
128 void SetTreatmentOverrides(TreatmentOverridesT&& value) {
129 m_treatmentOverridesHasBeenSet = true;
130 m_treatmentOverrides = std::forward<TreatmentOverridesT>(value);
131 }
132 template <typename TreatmentOverridesT = TreatmentOverrides>
134 SetTreatmentOverrides(std::forward<TreatmentOverridesT>(value));
135 return *this;
136 }
138
140
143 inline const DeploymentParameters& GetDeploymentParameters() const { return m_deploymentParameters; }
144 inline bool DeploymentParametersHasBeenSet() const { return m_deploymentParametersHasBeenSet; }
145 template <typename DeploymentParametersT = DeploymentParameters>
146 void SetDeploymentParameters(DeploymentParametersT&& value) {
147 m_deploymentParametersHasBeenSet = true;
148 m_deploymentParameters = std::forward<DeploymentParametersT>(value);
149 }
150 template <typename DeploymentParametersT = DeploymentParameters>
151 UpdateExperimentRunRequest& WithDeploymentParameters(DeploymentParametersT&& value) {
152 SetDeploymentParameters(std::forward<DeploymentParametersT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_applicationIdentifier;
158
159 Aws::String m_experimentDefinitionIdentifier;
160
161 int m_run{0};
162
163 Aws::String m_description;
164
165 double m_exposurePercentage{0.0};
166
167 TreatmentOverrides m_treatmentOverrides;
168
169 DeploymentParameters m_deploymentParameters;
170 bool m_applicationIdentifierHasBeenSet = false;
171 bool m_experimentDefinitionIdentifierHasBeenSet = false;
172 bool m_runHasBeenSet = false;
173 bool m_descriptionHasBeenSet = false;
174 bool m_exposurePercentageHasBeenSet = false;
175 bool m_treatmentOverridesHasBeenSet = false;
176 bool m_deploymentParametersHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace AppConfig
181} // namespace Aws
UpdateExperimentRunRequest & WithDescription(DescriptionT &&value)
UpdateExperimentRunRequest & WithExposurePercentage(double value)
void SetExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT &&value)
UpdateExperimentRunRequest & WithApplicationIdentifier(ApplicationIdentifierT &&value)
const DeploymentParameters & GetDeploymentParameters() const
AWS_APPCONFIG_API Aws::String SerializePayload() const override
UpdateExperimentRunRequest & WithDeploymentParameters(DeploymentParametersT &&value)
UpdateExperimentRunRequest & WithExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT &&value)
AWS_APPCONFIG_API UpdateExperimentRunRequest()=default
void SetApplicationIdentifier(ApplicationIdentifierT &&value)
UpdateExperimentRunRequest & WithTreatmentOverrides(TreatmentOverridesT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String