AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ExperimentStopDesiredState& GetDesiredState() const{ return m_desiredState; }
42 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
43 inline void SetDesiredState(const ExperimentStopDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
44 inline void SetDesiredState(ExperimentStopDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); }
46 inline StopExperimentRequest& WithDesiredState(ExperimentStopDesiredState&& value) { SetDesiredState(std::move(value)); return *this;}
48
50
53 inline const Aws::String& GetExperiment() const{ return m_experiment; }
54 inline bool ExperimentHasBeenSet() const { return m_experimentHasBeenSet; }
55 inline void SetExperiment(const Aws::String& value) { m_experimentHasBeenSet = true; m_experiment = value; }
56 inline void SetExperiment(Aws::String&& value) { m_experimentHasBeenSet = true; m_experiment = std::move(value); }
57 inline void SetExperiment(const char* value) { m_experimentHasBeenSet = true; m_experiment.assign(value); }
58 inline StopExperimentRequest& WithExperiment(const Aws::String& value) { SetExperiment(value); return *this;}
59 inline StopExperimentRequest& WithExperiment(Aws::String&& value) { SetExperiment(std::move(value)); return *this;}
60 inline StopExperimentRequest& WithExperiment(const char* value) { SetExperiment(value); return *this;}
62
64
67 inline const Aws::String& GetProject() const{ return m_project; }
68 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
69 inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; }
70 inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
71 inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); }
72 inline StopExperimentRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;}
73 inline StopExperimentRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;}
74 inline StopExperimentRequest& WithProject(const char* value) { SetProject(value); return *this;}
76
78
81 inline const Aws::String& GetReason() const{ return m_reason; }
82 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
83 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
84 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
85 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
86 inline StopExperimentRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
87 inline StopExperimentRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
88 inline StopExperimentRequest& WithReason(const char* value) { SetReason(value); return *this;}
90 private:
91
92 ExperimentStopDesiredState m_desiredState;
93 bool m_desiredStateHasBeenSet = false;
94
95 Aws::String m_experiment;
96 bool m_experimentHasBeenSet = false;
97
98 Aws::String m_project;
99 bool m_projectHasBeenSet = false;
100
101 Aws::String m_reason;
102 bool m_reasonHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace CloudWatchEvidently
107} // namespace Aws
StopExperimentRequest & WithDesiredState(ExperimentStopDesiredState &&value)
StopExperimentRequest & WithExperiment(Aws::String &&value)
StopExperimentRequest & WithExperiment(const Aws::String &value)
StopExperimentRequest & WithDesiredState(const ExperimentStopDesiredState &value)
StopExperimentRequest & WithProject(Aws::String &&value)
StopExperimentRequest & WithReason(const char *value)
StopExperimentRequest & WithProject(const char *value)
void SetDesiredState(const ExperimentStopDesiredState &value)
StopExperimentRequest & WithProject(const Aws::String &value)
StopExperimentRequest & WithReason(const Aws::String &value)
StopExperimentRequest & WithExperiment(const char *value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
StopExperimentRequest & WithReason(Aws::String &&value)
void SetDesiredState(ExperimentStopDesiredState &&value)
const ExperimentStopDesiredState & GetDesiredState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String