AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
CisSessionMessage.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/CisRuleStatus.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_INSPECTOR2_API CisSessionMessage() = default;
37 AWS_INSPECTOR2_API CisSessionMessage(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRuleId() const { return m_ruleId; }
47 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
48 template<typename RuleIdT = Aws::String>
49 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
50 template<typename RuleIdT = Aws::String>
51 CisSessionMessage& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
53
55
58 inline CisRuleStatus GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(CisRuleStatus value) { m_statusHasBeenSet = true; m_status = value; }
61 inline CisSessionMessage& WithStatus(CisRuleStatus value) { SetStatus(value); return *this;}
63
65
68 inline const Aws::Utils::ByteBuffer& GetCisRuleDetails() const { return m_cisRuleDetails; }
69 inline bool CisRuleDetailsHasBeenSet() const { return m_cisRuleDetailsHasBeenSet; }
70 template<typename CisRuleDetailsT = Aws::Utils::ByteBuffer>
71 void SetCisRuleDetails(CisRuleDetailsT&& value) { m_cisRuleDetailsHasBeenSet = true; m_cisRuleDetails = std::forward<CisRuleDetailsT>(value); }
72 template<typename CisRuleDetailsT = Aws::Utils::ByteBuffer>
73 CisSessionMessage& WithCisRuleDetails(CisRuleDetailsT&& value) { SetCisRuleDetails(std::forward<CisRuleDetailsT>(value)); return *this;}
75 private:
76
77 Aws::String m_ruleId;
78 bool m_ruleIdHasBeenSet = false;
79
81 bool m_statusHasBeenSet = false;
82
83 Aws::Utils::ByteBuffer m_cisRuleDetails{};
84 bool m_cisRuleDetailsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Inspector2
89} // 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