AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCisRuleDetails(const Aws::Utils::ByteBuffer& value) { m_cisRuleDetailsHasBeenSet = true; m_cisRuleDetails = value; }
49 inline void SetCisRuleDetails(Aws::Utils::ByteBuffer&& value) { m_cisRuleDetailsHasBeenSet = true; m_cisRuleDetails = std::move(value); }
51 inline CisSessionMessage& WithCisRuleDetails(Aws::Utils::ByteBuffer&& value) { SetCisRuleDetails(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
59 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
60 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
61 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
62 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
63 inline CisSessionMessage& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
64 inline CisSessionMessage& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
65 inline CisSessionMessage& WithRuleId(const char* value) { SetRuleId(value); return *this;}
67
69
72 inline const CisRuleStatus& GetStatus() const{ return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(const CisRuleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
75 inline void SetStatus(CisRuleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
76 inline CisSessionMessage& WithStatus(const CisRuleStatus& value) { SetStatus(value); return *this;}
77 inline CisSessionMessage& WithStatus(CisRuleStatus&& value) { SetStatus(std::move(value)); return *this;}
79 private:
80
81 Aws::Utils::ByteBuffer m_cisRuleDetails;
82 bool m_cisRuleDetailsHasBeenSet = false;
83
84 Aws::String m_ruleId;
85 bool m_ruleIdHasBeenSet = false;
86
87 CisRuleStatus m_status;
88 bool m_statusHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Inspector2
93} // namespace Aws
void SetCisRuleDetails(Aws::Utils::ByteBuffer &&value)
void SetRuleId(const Aws::String &value)
CisSessionMessage & WithRuleId(const char *value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CisSessionMessage & WithRuleId(const Aws::String &value)
AWS_INSPECTOR2_API CisSessionMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCisRuleDetails(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::ByteBuffer & GetCisRuleDetails() const
void SetStatus(const CisRuleStatus &value)
AWS_INSPECTOR2_API CisSessionMessage(Aws::Utils::Json::JsonView jsonValue)
CisSessionMessage & WithStatus(CisRuleStatus &&value)
CisSessionMessage & WithCisRuleDetails(Aws::Utils::ByteBuffer &&value)
const CisRuleStatus & GetStatus() const
CisSessionMessage & WithCisRuleDetails(const Aws::Utils::ByteBuffer &value)
CisSessionMessage & WithStatus(const CisRuleStatus &value)
CisSessionMessage & WithRuleId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue