AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
StopCisSessionMessage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/ComputePlatform.h>
10#include <aws/inspector2/model/StopCisMessageProgress.h>
11#include <aws/inspector2/model/StopCisSessionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2 {
23namespace Model {
24
31 public:
32 AWS_INSPECTOR2_API StopCisSessionMessage() = default;
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline StopCisSessionStatus GetStatus() const { return m_status; }
42 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
43 inline void SetStatus(StopCisSessionStatus value) {
44 m_statusHasBeenSet = true;
45 m_status = value;
46 }
48 SetStatus(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetReason() const { return m_reason; }
58 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
59 template <typename ReasonT = Aws::String>
60 void SetReason(ReasonT&& value) {
61 m_reasonHasBeenSet = true;
62 m_reason = std::forward<ReasonT>(value);
63 }
64 template <typename ReasonT = Aws::String>
66 SetReason(std::forward<ReasonT>(value));
67 return *this;
68 }
70
72
75 inline const StopCisMessageProgress& GetProgress() const { return m_progress; }
76 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
77 template <typename ProgressT = StopCisMessageProgress>
78 void SetProgress(ProgressT&& value) {
79 m_progressHasBeenSet = true;
80 m_progress = std::forward<ProgressT>(value);
81 }
82 template <typename ProgressT = StopCisMessageProgress>
83 StopCisSessionMessage& WithProgress(ProgressT&& value) {
84 SetProgress(std::forward<ProgressT>(value));
85 return *this;
86 }
88
90
93 inline const ComputePlatform& GetComputePlatform() const { return m_computePlatform; }
94 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
95 template <typename ComputePlatformT = ComputePlatform>
96 void SetComputePlatform(ComputePlatformT&& value) {
97 m_computePlatformHasBeenSet = true;
98 m_computePlatform = std::forward<ComputePlatformT>(value);
99 }
100 template <typename ComputePlatformT = ComputePlatform>
101 StopCisSessionMessage& WithComputePlatform(ComputePlatformT&& value) {
102 SetComputePlatform(std::forward<ComputePlatformT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetBenchmarkVersion() const { return m_benchmarkVersion; }
112 inline bool BenchmarkVersionHasBeenSet() const { return m_benchmarkVersionHasBeenSet; }
113 template <typename BenchmarkVersionT = Aws::String>
114 void SetBenchmarkVersion(BenchmarkVersionT&& value) {
115 m_benchmarkVersionHasBeenSet = true;
116 m_benchmarkVersion = std::forward<BenchmarkVersionT>(value);
117 }
118 template <typename BenchmarkVersionT = Aws::String>
119 StopCisSessionMessage& WithBenchmarkVersion(BenchmarkVersionT&& value) {
120 SetBenchmarkVersion(std::forward<BenchmarkVersionT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetBenchmarkProfile() const { return m_benchmarkProfile; }
130 inline bool BenchmarkProfileHasBeenSet() const { return m_benchmarkProfileHasBeenSet; }
131 template <typename BenchmarkProfileT = Aws::String>
132 void SetBenchmarkProfile(BenchmarkProfileT&& value) {
133 m_benchmarkProfileHasBeenSet = true;
134 m_benchmarkProfile = std::forward<BenchmarkProfileT>(value);
135 }
136 template <typename BenchmarkProfileT = Aws::String>
137 StopCisSessionMessage& WithBenchmarkProfile(BenchmarkProfileT&& value) {
138 SetBenchmarkProfile(std::forward<BenchmarkProfileT>(value));
139 return *this;
140 }
142 private:
144
145 Aws::String m_reason;
146
147 StopCisMessageProgress m_progress;
148
149 ComputePlatform m_computePlatform;
150
151 Aws::String m_benchmarkVersion;
152
153 Aws::String m_benchmarkProfile;
154 bool m_statusHasBeenSet = false;
155 bool m_reasonHasBeenSet = false;
156 bool m_progressHasBeenSet = false;
157 bool m_computePlatformHasBeenSet = false;
158 bool m_benchmarkVersionHasBeenSet = false;
159 bool m_benchmarkProfileHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Inspector2
164} // namespace Aws
StopCisSessionMessage & WithComputePlatform(ComputePlatformT &&value)
AWS_INSPECTOR2_API StopCisSessionMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
StopCisSessionMessage & WithStatus(StopCisSessionStatus value)
StopCisSessionMessage & WithBenchmarkProfile(BenchmarkProfileT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const StopCisMessageProgress & GetProgress() const
StopCisSessionMessage & WithBenchmarkVersion(BenchmarkVersionT &&value)
void SetBenchmarkVersion(BenchmarkVersionT &&value)
StopCisSessionMessage & WithReason(ReasonT &&value)
void SetBenchmarkProfile(BenchmarkProfileT &&value)
StopCisSessionMessage & WithProgress(ProgressT &&value)
const ComputePlatform & GetComputePlatform() const
AWS_INSPECTOR2_API StopCisSessionMessage()=default
AWS_INSPECTOR2_API StopCisSessionMessage(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue