AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StopCisSessionMessage.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/ComputePlatform.h>
10#include <aws/inspector2/model/StopCisMessageProgress.h>
11#include <aws/inspector2/model/StopCisSessionStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_INSPECTOR2_API StopCisSessionMessage() = default;
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetBenchmarkProfile() const { return m_benchmarkProfile; }
48 inline bool BenchmarkProfileHasBeenSet() const { return m_benchmarkProfileHasBeenSet; }
49 template<typename BenchmarkProfileT = Aws::String>
50 void SetBenchmarkProfile(BenchmarkProfileT&& value) { m_benchmarkProfileHasBeenSet = true; m_benchmarkProfile = std::forward<BenchmarkProfileT>(value); }
51 template<typename BenchmarkProfileT = Aws::String>
52 StopCisSessionMessage& WithBenchmarkProfile(BenchmarkProfileT&& value) { SetBenchmarkProfile(std::forward<BenchmarkProfileT>(value)); return *this;}
54
56
59 inline const Aws::String& GetBenchmarkVersion() const { return m_benchmarkVersion; }
60 inline bool BenchmarkVersionHasBeenSet() const { return m_benchmarkVersionHasBeenSet; }
61 template<typename BenchmarkVersionT = Aws::String>
62 void SetBenchmarkVersion(BenchmarkVersionT&& value) { m_benchmarkVersionHasBeenSet = true; m_benchmarkVersion = std::forward<BenchmarkVersionT>(value); }
63 template<typename BenchmarkVersionT = Aws::String>
64 StopCisSessionMessage& WithBenchmarkVersion(BenchmarkVersionT&& value) { SetBenchmarkVersion(std::forward<BenchmarkVersionT>(value)); return *this;}
66
68
71 inline const ComputePlatform& GetComputePlatform() const { return m_computePlatform; }
72 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
73 template<typename ComputePlatformT = ComputePlatform>
74 void SetComputePlatform(ComputePlatformT&& value) { m_computePlatformHasBeenSet = true; m_computePlatform = std::forward<ComputePlatformT>(value); }
75 template<typename ComputePlatformT = ComputePlatform>
76 StopCisSessionMessage& WithComputePlatform(ComputePlatformT&& value) { SetComputePlatform(std::forward<ComputePlatformT>(value)); return *this;}
78
80
83 inline const StopCisMessageProgress& GetProgress() const { return m_progress; }
84 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
85 template<typename ProgressT = StopCisMessageProgress>
86 void SetProgress(ProgressT&& value) { m_progressHasBeenSet = true; m_progress = std::forward<ProgressT>(value); }
87 template<typename ProgressT = StopCisMessageProgress>
88 StopCisSessionMessage& WithProgress(ProgressT&& value) { SetProgress(std::forward<ProgressT>(value)); return *this;}
90
92
95 inline const Aws::String& GetReason() const { return m_reason; }
96 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
97 template<typename ReasonT = Aws::String>
98 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
99 template<typename ReasonT = Aws::String>
100 StopCisSessionMessage& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
102
104
107 inline StopCisSessionStatus GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 inline void SetStatus(StopCisSessionStatus value) { m_statusHasBeenSet = true; m_status = value; }
110 inline StopCisSessionMessage& WithStatus(StopCisSessionStatus value) { SetStatus(value); return *this;}
112 private:
113
114 Aws::String m_benchmarkProfile;
115 bool m_benchmarkProfileHasBeenSet = false;
116
117 Aws::String m_benchmarkVersion;
118 bool m_benchmarkVersionHasBeenSet = false;
119
120 ComputePlatform m_computePlatform;
121 bool m_computePlatformHasBeenSet = false;
122
123 StopCisMessageProgress m_progress;
124 bool m_progressHasBeenSet = false;
125
126 Aws::String m_reason;
127 bool m_reasonHasBeenSet = false;
128
130 bool m_statusHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Inspector2
135} // 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