AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CisSessionMessage.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/model/CisRuleStatus.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::Utils::ByteBuffer& GetCisRuleDetails() const { return m_cisRuleDetails; }
47 inline bool CisRuleDetailsHasBeenSet() const { return m_cisRuleDetailsHasBeenSet; }
48 template<typename CisRuleDetailsT = Aws::Utils::ByteBuffer>
49 void SetCisRuleDetails(CisRuleDetailsT&& value) { m_cisRuleDetailsHasBeenSet = true; m_cisRuleDetails = std::forward<CisRuleDetailsT>(value); }
50 template<typename CisRuleDetailsT = Aws::Utils::ByteBuffer>
51 CisSessionMessage& WithCisRuleDetails(CisRuleDetailsT&& value) { SetCisRuleDetails(std::forward<CisRuleDetailsT>(value)); return *this;}
53
55
58 inline const Aws::String& GetRuleId() const { return m_ruleId; }
59 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
60 template<typename RuleIdT = Aws::String>
61 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
62 template<typename RuleIdT = Aws::String>
63 CisSessionMessage& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
65
67
70 inline CisRuleStatus GetStatus() const { return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 inline void SetStatus(CisRuleStatus value) { m_statusHasBeenSet = true; m_status = value; }
73 inline CisSessionMessage& WithStatus(CisRuleStatus value) { SetStatus(value); return *this;}
75 private:
76
77 Aws::Utils::ByteBuffer m_cisRuleDetails{};
78 bool m_cisRuleDetailsHasBeenSet = false;
79
80 Aws::String m_ruleId;
81 bool m_ruleIdHasBeenSet = false;
82
84 bool m_statusHasBeenSet = 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