AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CisSessionMessage.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/CisRuleStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
30 public:
31 AWS_INSPECTOR2_API CisSessionMessage() = default;
32 AWS_INSPECTOR2_API CisSessionMessage(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRuleId() const { return m_ruleId; }
41 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
42 template <typename RuleIdT = Aws::String>
43 void SetRuleId(RuleIdT&& value) {
44 m_ruleIdHasBeenSet = true;
45 m_ruleId = std::forward<RuleIdT>(value);
46 }
47 template <typename RuleIdT = Aws::String>
48 CisSessionMessage& WithRuleId(RuleIdT&& value) {
49 SetRuleId(std::forward<RuleIdT>(value));
50 return *this;
51 }
53
55
58 inline CisRuleStatus GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(CisRuleStatus value) {
61 m_statusHasBeenSet = true;
62 m_status = value;
63 }
65 SetStatus(value);
66 return *this;
67 }
69
71
74 inline const Aws::Utils::ByteBuffer& GetCisRuleDetails() const { return m_cisRuleDetails; }
75 inline bool CisRuleDetailsHasBeenSet() const { return m_cisRuleDetailsHasBeenSet; }
76 template <typename CisRuleDetailsT = Aws::Utils::ByteBuffer>
77 void SetCisRuleDetails(CisRuleDetailsT&& value) {
78 m_cisRuleDetailsHasBeenSet = true;
79 m_cisRuleDetails = std::forward<CisRuleDetailsT>(value);
80 }
81 template <typename CisRuleDetailsT = Aws::Utils::ByteBuffer>
82 CisSessionMessage& WithCisRuleDetails(CisRuleDetailsT&& value) {
83 SetCisRuleDetails(std::forward<CisRuleDetailsT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_ruleId;
89
91
92 Aws::Utils::ByteBuffer m_cisRuleDetails{};
93 bool m_ruleIdHasBeenSet = false;
94 bool m_statusHasBeenSet = false;
95 bool m_cisRuleDetailsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Inspector2
100} // namespace Aws
CisSessionMessage & WithRuleId(RuleIdT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API CisSessionMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
CisSessionMessage & WithStatus(CisRuleStatus value)
const Aws::Utils::ByteBuffer & GetCisRuleDetails() const
void SetCisRuleDetails(CisRuleDetailsT &&value)
AWS_INSPECTOR2_API CisSessionMessage(Aws::Utils::Json::JsonView jsonValue)
CisSessionMessage & WithCisRuleDetails(CisRuleDetailsT &&value)
AWS_INSPECTOR2_API CisSessionMessage()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue