AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StopExperimentRequest.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/evidently/CloudWatchEvidentlyRequest.h>
9#include <aws/evidently/model/ExperimentStopDesiredState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchEvidently
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHEVIDENTLY_API StopExperimentRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StopExperiment"; }
32
33 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
34
35
37
41 inline ExperimentStopDesiredState GetDesiredState() const { return m_desiredState; }
42 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
43 inline void SetDesiredState(ExperimentStopDesiredState value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
46
48
51 inline const Aws::String& GetExperiment() const { return m_experiment; }
52 inline bool ExperimentHasBeenSet() const { return m_experimentHasBeenSet; }
53 template<typename ExperimentT = Aws::String>
54 void SetExperiment(ExperimentT&& value) { m_experimentHasBeenSet = true; m_experiment = std::forward<ExperimentT>(value); }
55 template<typename ExperimentT = Aws::String>
56 StopExperimentRequest& WithExperiment(ExperimentT&& value) { SetExperiment(std::forward<ExperimentT>(value)); return *this;}
58
60
63 inline const Aws::String& GetProject() const { return m_project; }
64 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
65 template<typename ProjectT = Aws::String>
66 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
67 template<typename ProjectT = Aws::String>
68 StopExperimentRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
70
72
75 inline const Aws::String& GetReason() const { return m_reason; }
76 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
77 template<typename ReasonT = Aws::String>
78 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
79 template<typename ReasonT = Aws::String>
80 StopExperimentRequest& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
82 private:
83
85 bool m_desiredStateHasBeenSet = false;
86
87 Aws::String m_experiment;
88 bool m_experimentHasBeenSet = false;
89
90 Aws::String m_project;
91 bool m_projectHasBeenSet = false;
92
93 Aws::String m_reason;
94 bool m_reasonHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CloudWatchEvidently
99} // namespace Aws
StopExperimentRequest & WithReason(ReasonT &&value)
StopExperimentRequest & WithDesiredState(ExperimentStopDesiredState value)
void SetDesiredState(ExperimentStopDesiredState value)
StopExperimentRequest & WithExperiment(ExperimentT &&value)
StopExperimentRequest & WithProject(ProjectT &&value)
AWS_CLOUDWATCHEVIDENTLY_API StopExperimentRequest()=default
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String