AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StopLaunchRequest.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/evidently/CloudWatchEvidentlyRequest.h>
9#include <aws/evidently/model/LaunchStopDesiredState.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 StopLaunchRequest();
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 "StopLaunch"; }
32
33 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
34
35
37
41 inline const LaunchStopDesiredState& GetDesiredState() const{ return m_desiredState; }
42 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
43 inline void SetDesiredState(const LaunchStopDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
44 inline void SetDesiredState(LaunchStopDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); }
45 inline StopLaunchRequest& WithDesiredState(const LaunchStopDesiredState& value) { SetDesiredState(value); return *this;}
46 inline StopLaunchRequest& WithDesiredState(LaunchStopDesiredState&& value) { SetDesiredState(std::move(value)); return *this;}
48
50
53 inline const Aws::String& GetLaunch() const{ return m_launch; }
54 inline bool LaunchHasBeenSet() const { return m_launchHasBeenSet; }
55 inline void SetLaunch(const Aws::String& value) { m_launchHasBeenSet = true; m_launch = value; }
56 inline void SetLaunch(Aws::String&& value) { m_launchHasBeenSet = true; m_launch = std::move(value); }
57 inline void SetLaunch(const char* value) { m_launchHasBeenSet = true; m_launch.assign(value); }
58 inline StopLaunchRequest& WithLaunch(const Aws::String& value) { SetLaunch(value); return *this;}
59 inline StopLaunchRequest& WithLaunch(Aws::String&& value) { SetLaunch(std::move(value)); return *this;}
60 inline StopLaunchRequest& WithLaunch(const char* value) { SetLaunch(value); return *this;}
62
64
68 inline const Aws::String& GetProject() const{ return m_project; }
69 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
70 inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; }
71 inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
72 inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); }
73 inline StopLaunchRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;}
74 inline StopLaunchRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;}
75 inline StopLaunchRequest& WithProject(const char* value) { SetProject(value); return *this;}
77
79
82 inline const Aws::String& GetReason() const{ return m_reason; }
83 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
84 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
85 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
86 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
87 inline StopLaunchRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
88 inline StopLaunchRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
89 inline StopLaunchRequest& WithReason(const char* value) { SetReason(value); return *this;}
91 private:
92
93 LaunchStopDesiredState m_desiredState;
94 bool m_desiredStateHasBeenSet = false;
95
96 Aws::String m_launch;
97 bool m_launchHasBeenSet = false;
98
99 Aws::String m_project;
100 bool m_projectHasBeenSet = false;
101
102 Aws::String m_reason;
103 bool m_reasonHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace CloudWatchEvidently
108} // namespace Aws
StopLaunchRequest & WithProject(const char *value)
StopLaunchRequest & WithDesiredState(const LaunchStopDesiredState &value)
StopLaunchRequest & WithProject(Aws::String &&value)
void SetDesiredState(LaunchStopDesiredState &&value)
AWS_CLOUDWATCHEVIDENTLY_API StopLaunchRequest()
StopLaunchRequest & WithReason(const char *value)
StopLaunchRequest & WithReason(const Aws::String &value)
StopLaunchRequest & WithReason(Aws::String &&value)
StopLaunchRequest & WithLaunch(Aws::String &&value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetDesiredState(const LaunchStopDesiredState &value)
StopLaunchRequest & WithDesiredState(LaunchStopDesiredState &&value)
StopLaunchRequest & WithLaunch(const Aws::String &value)
const LaunchStopDesiredState & GetDesiredState() const
StopLaunchRequest & WithProject(const Aws::String &value)
StopLaunchRequest & WithLaunch(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String