AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleGroupSource.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/RuleGroupSourceListDetails.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityhub/model/RuleGroupSourceStatelessRulesAndCustomActionsDetails.h>
12#include <aws/securityhub/model/RuleGroupSourceStatefulRulesDetails.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SECURITYHUB_API RuleGroupSource();
39 AWS_SECURITYHUB_API RuleGroupSource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API RuleGroupSource& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const RuleGroupSourceListDetails& GetRulesSourceList() const{ return m_rulesSourceList; }
50 inline bool RulesSourceListHasBeenSet() const { return m_rulesSourceListHasBeenSet; }
51 inline void SetRulesSourceList(const RuleGroupSourceListDetails& value) { m_rulesSourceListHasBeenSet = true; m_rulesSourceList = value; }
52 inline void SetRulesSourceList(RuleGroupSourceListDetails&& value) { m_rulesSourceListHasBeenSet = true; m_rulesSourceList = std::move(value); }
54 inline RuleGroupSource& WithRulesSourceList(RuleGroupSourceListDetails&& value) { SetRulesSourceList(std::move(value)); return *this;}
56
58
62 inline const Aws::String& GetRulesString() const{ return m_rulesString; }
63 inline bool RulesStringHasBeenSet() const { return m_rulesStringHasBeenSet; }
64 inline void SetRulesString(const Aws::String& value) { m_rulesStringHasBeenSet = true; m_rulesString = value; }
65 inline void SetRulesString(Aws::String&& value) { m_rulesStringHasBeenSet = true; m_rulesString = std::move(value); }
66 inline void SetRulesString(const char* value) { m_rulesStringHasBeenSet = true; m_rulesString.assign(value); }
67 inline RuleGroupSource& WithRulesString(const Aws::String& value) { SetRulesString(value); return *this;}
68 inline RuleGroupSource& WithRulesString(Aws::String&& value) { SetRulesString(std::move(value)); return *this;}
69 inline RuleGroupSource& WithRulesString(const char* value) { SetRulesString(value); return *this;}
71
73
76 inline const Aws::Vector<RuleGroupSourceStatefulRulesDetails>& GetStatefulRules() const{ return m_statefulRules; }
77 inline bool StatefulRulesHasBeenSet() const { return m_statefulRulesHasBeenSet; }
78 inline void SetStatefulRules(const Aws::Vector<RuleGroupSourceStatefulRulesDetails>& value) { m_statefulRulesHasBeenSet = true; m_statefulRules = value; }
79 inline void SetStatefulRules(Aws::Vector<RuleGroupSourceStatefulRulesDetails>&& value) { m_statefulRulesHasBeenSet = true; m_statefulRules = std::move(value); }
82 inline RuleGroupSource& AddStatefulRules(const RuleGroupSourceStatefulRulesDetails& value) { m_statefulRulesHasBeenSet = true; m_statefulRules.push_back(value); return *this; }
83 inline RuleGroupSource& AddStatefulRules(RuleGroupSourceStatefulRulesDetails&& value) { m_statefulRulesHasBeenSet = true; m_statefulRules.push_back(std::move(value)); return *this; }
85
87
90 inline const RuleGroupSourceStatelessRulesAndCustomActionsDetails& GetStatelessRulesAndCustomActions() const{ return m_statelessRulesAndCustomActions; }
91 inline bool StatelessRulesAndCustomActionsHasBeenSet() const { return m_statelessRulesAndCustomActionsHasBeenSet; }
92 inline void SetStatelessRulesAndCustomActions(const RuleGroupSourceStatelessRulesAndCustomActionsDetails& value) { m_statelessRulesAndCustomActionsHasBeenSet = true; m_statelessRulesAndCustomActions = value; }
93 inline void SetStatelessRulesAndCustomActions(RuleGroupSourceStatelessRulesAndCustomActionsDetails&& value) { m_statelessRulesAndCustomActionsHasBeenSet = true; m_statelessRulesAndCustomActions = std::move(value); }
97 private:
98
99 RuleGroupSourceListDetails m_rulesSourceList;
100 bool m_rulesSourceListHasBeenSet = false;
101
102 Aws::String m_rulesString;
103 bool m_rulesStringHasBeenSet = false;
104
106 bool m_statefulRulesHasBeenSet = false;
107
108 RuleGroupSourceStatelessRulesAndCustomActionsDetails m_statelessRulesAndCustomActions;
109 bool m_statelessRulesAndCustomActionsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SecurityHub
114} // namespace Aws
void SetRulesSourceList(RuleGroupSourceListDetails &&value)
void SetRulesString(Aws::String &&value)
RuleGroupSource & WithRulesString(Aws::String &&value)
void SetRulesSourceList(const RuleGroupSourceListDetails &value)
RuleGroupSource & WithStatelessRulesAndCustomActions(RuleGroupSourceStatelessRulesAndCustomActionsDetails &&value)
const RuleGroupSourceStatelessRulesAndCustomActionsDetails & GetStatelessRulesAndCustomActions() const
void SetStatelessRulesAndCustomActions(RuleGroupSourceStatelessRulesAndCustomActionsDetails &&value)
const Aws::String & GetRulesString() const
RuleGroupSource & WithStatefulRules(const Aws::Vector< RuleGroupSourceStatefulRulesDetails > &value)
void SetRulesString(const Aws::String &value)
RuleGroupSource & AddStatefulRules(const RuleGroupSourceStatefulRulesDetails &value)
RuleGroupSource & WithRulesSourceList(RuleGroupSourceListDetails &&value)
void SetStatelessRulesAndCustomActions(const RuleGroupSourceStatelessRulesAndCustomActionsDetails &value)
void SetStatefulRules(Aws::Vector< RuleGroupSourceStatefulRulesDetails > &&value)
AWS_SECURITYHUB_API RuleGroupSource(Aws::Utils::Json::JsonView jsonValue)
RuleGroupSource & WithStatefulRules(Aws::Vector< RuleGroupSourceStatefulRulesDetails > &&value)
AWS_SECURITYHUB_API RuleGroupSource & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleGroupSource & WithRulesString(const char *value)
const Aws::Vector< RuleGroupSourceStatefulRulesDetails > & GetStatefulRules() const
RuleGroupSource & AddStatefulRules(RuleGroupSourceStatefulRulesDetails &&value)
RuleGroupSource & WithRulesString(const Aws::String &value)
void SetStatefulRules(const Aws::Vector< RuleGroupSourceStatefulRulesDetails > &value)
RuleGroupSource & WithStatelessRulesAndCustomActions(const RuleGroupSourceStatelessRulesAndCustomActionsDetails &value)
RuleGroupSource & WithRulesSourceList(const RuleGroupSourceListDetails &value)
const RuleGroupSourceListDetails & GetRulesSourceList() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue