AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
StopExperimentRunRequest.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/ExperimentRunResult.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 StopExperimentRunRequest() = 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 "StopExperimentRun"; }
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 StopExperimentRunRequest& 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 StopExperimentRunRequest& 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 }
79 inline StopExperimentRunRequest& WithRun(int value) {
80 SetRun(value);
81 return *this;
82 }
84
86
90 inline const ExperimentRunResult& GetResult() const { return m_result; }
91 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
92 template <typename ResultT = ExperimentRunResult>
93 void SetResult(ResultT&& value) {
94 m_resultHasBeenSet = true;
95 m_result = std::forward<ResultT>(value);
96 }
97 template <typename ResultT = ExperimentRunResult>
99 SetResult(std::forward<ResultT>(value));
100 return *this;
101 }
103
105
108 inline const DeploymentParameters& GetDeploymentParameters() const { return m_deploymentParameters; }
109 inline bool DeploymentParametersHasBeenSet() const { return m_deploymentParametersHasBeenSet; }
110 template <typename DeploymentParametersT = DeploymentParameters>
111 void SetDeploymentParameters(DeploymentParametersT&& value) {
112 m_deploymentParametersHasBeenSet = true;
113 m_deploymentParameters = std::forward<DeploymentParametersT>(value);
114 }
115 template <typename DeploymentParametersT = DeploymentParameters>
116 StopExperimentRunRequest& WithDeploymentParameters(DeploymentParametersT&& value) {
117 SetDeploymentParameters(std::forward<DeploymentParametersT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_applicationIdentifier;
123
124 Aws::String m_experimentDefinitionIdentifier;
125
126 int m_run{0};
127
128 ExperimentRunResult m_result;
129
130 DeploymentParameters m_deploymentParameters;
131 bool m_applicationIdentifierHasBeenSet = false;
132 bool m_experimentDefinitionIdentifierHasBeenSet = false;
133 bool m_runHasBeenSet = false;
134 bool m_resultHasBeenSet = false;
135 bool m_deploymentParametersHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace AppConfig
140} // namespace Aws
StopExperimentRunRequest & WithApplicationIdentifier(ApplicationIdentifierT &&value)
void SetDeploymentParameters(DeploymentParametersT &&value)
StopExperimentRunRequest & WithDeploymentParameters(DeploymentParametersT &&value)
StopExperimentRunRequest & WithResult(ResultT &&value)
StopExperimentRunRequest & WithExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT &&value)
const DeploymentParameters & GetDeploymentParameters() const
void SetApplicationIdentifier(ApplicationIdentifierT &&value)
AWS_APPCONFIG_API StopExperimentRunRequest()=default
virtual const char * GetServiceRequestName() const override
void SetExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT &&value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String