AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 "StopLaunch"; }
32
33 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
34
35
37
41 inline LaunchStopDesiredState GetDesiredState() const { return m_desiredState; }
42 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
43 inline void SetDesiredState(LaunchStopDesiredState value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
46
48
51 inline const Aws::String& GetLaunch() const { return m_launch; }
52 inline bool LaunchHasBeenSet() const { return m_launchHasBeenSet; }
53 template<typename LaunchT = Aws::String>
54 void SetLaunch(LaunchT&& value) { m_launchHasBeenSet = true; m_launch = std::forward<LaunchT>(value); }
55 template<typename LaunchT = Aws::String>
56 StopLaunchRequest& WithLaunch(LaunchT&& value) { SetLaunch(std::forward<LaunchT>(value)); return *this;}
58
60
64 inline const Aws::String& GetProject() const { return m_project; }
65 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
66 template<typename ProjectT = Aws::String>
67 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
68 template<typename ProjectT = Aws::String>
69 StopLaunchRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
71
73
76 inline const Aws::String& GetReason() const { return m_reason; }
77 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
78 template<typename ReasonT = Aws::String>
79 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
80 template<typename ReasonT = Aws::String>
81 StopLaunchRequest& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
83 private:
84
86 bool m_desiredStateHasBeenSet = false;
87
88 Aws::String m_launch;
89 bool m_launchHasBeenSet = false;
90
91 Aws::String m_project;
92 bool m_projectHasBeenSet = false;
93
94 Aws::String m_reason;
95 bool m_reasonHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CloudWatchEvidently
100} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API StopLaunchRequest()=default
void SetDesiredState(LaunchStopDesiredState value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
StopLaunchRequest & WithProject(ProjectT &&value)
StopLaunchRequest & WithReason(ReasonT &&value)
StopLaunchRequest & WithDesiredState(LaunchStopDesiredState value)
StopLaunchRequest & WithLaunch(LaunchT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String