AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RulesSourceListT = RuleGroupSourceListDetails>
52 void SetRulesSourceList(RulesSourceListT&& value) { m_rulesSourceListHasBeenSet = true; m_rulesSourceList = std::forward<RulesSourceListT>(value); }
53 template<typename RulesSourceListT = RuleGroupSourceListDetails>
54 RuleGroupSource& WithRulesSourceList(RulesSourceListT&& value) { SetRulesSourceList(std::forward<RulesSourceListT>(value)); return *this;}
56
58
62 inline const Aws::String& GetRulesString() const { return m_rulesString; }
63 inline bool RulesStringHasBeenSet() const { return m_rulesStringHasBeenSet; }
64 template<typename RulesStringT = Aws::String>
65 void SetRulesString(RulesStringT&& value) { m_rulesStringHasBeenSet = true; m_rulesString = std::forward<RulesStringT>(value); }
66 template<typename RulesStringT = Aws::String>
67 RuleGroupSource& WithRulesString(RulesStringT&& value) { SetRulesString(std::forward<RulesStringT>(value)); return *this;}
69
71
74 inline const Aws::Vector<RuleGroupSourceStatefulRulesDetails>& GetStatefulRules() const { return m_statefulRules; }
75 inline bool StatefulRulesHasBeenSet() const { return m_statefulRulesHasBeenSet; }
76 template<typename StatefulRulesT = Aws::Vector<RuleGroupSourceStatefulRulesDetails>>
77 void SetStatefulRules(StatefulRulesT&& value) { m_statefulRulesHasBeenSet = true; m_statefulRules = std::forward<StatefulRulesT>(value); }
78 template<typename StatefulRulesT = Aws::Vector<RuleGroupSourceStatefulRulesDetails>>
79 RuleGroupSource& WithStatefulRules(StatefulRulesT&& value) { SetStatefulRules(std::forward<StatefulRulesT>(value)); return *this;}
80 template<typename StatefulRulesT = RuleGroupSourceStatefulRulesDetails>
81 RuleGroupSource& AddStatefulRules(StatefulRulesT&& value) { m_statefulRulesHasBeenSet = true; m_statefulRules.emplace_back(std::forward<StatefulRulesT>(value)); return *this; }
83
85
88 inline const RuleGroupSourceStatelessRulesAndCustomActionsDetails& GetStatelessRulesAndCustomActions() const { return m_statelessRulesAndCustomActions; }
89 inline bool StatelessRulesAndCustomActionsHasBeenSet() const { return m_statelessRulesAndCustomActionsHasBeenSet; }
90 template<typename StatelessRulesAndCustomActionsT = RuleGroupSourceStatelessRulesAndCustomActionsDetails>
91 void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT&& value) { m_statelessRulesAndCustomActionsHasBeenSet = true; m_statelessRulesAndCustomActions = std::forward<StatelessRulesAndCustomActionsT>(value); }
92 template<typename StatelessRulesAndCustomActionsT = RuleGroupSourceStatelessRulesAndCustomActionsDetails>
93 RuleGroupSource& WithStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT&& value) { SetStatelessRulesAndCustomActions(std::forward<StatelessRulesAndCustomActionsT>(value)); return *this;}
95 private:
96
97 RuleGroupSourceListDetails m_rulesSourceList;
98 bool m_rulesSourceListHasBeenSet = false;
99
100 Aws::String m_rulesString;
101 bool m_rulesStringHasBeenSet = false;
102
104 bool m_statefulRulesHasBeenSet = false;
105
106 RuleGroupSourceStatelessRulesAndCustomActionsDetails m_statelessRulesAndCustomActions;
107 bool m_statelessRulesAndCustomActionsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace SecurityHub
112} // namespace Aws
RuleGroupSource & WithStatefulRules(StatefulRulesT &&value)
const RuleGroupSourceStatelessRulesAndCustomActionsDetails & GetStatelessRulesAndCustomActions() const
void SetRulesString(RulesStringT &&value)
void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT &&value)
const Aws::String & GetRulesString() const
RuleGroupSource & WithStatelessRulesAndCustomActions(StatelessRulesAndCustomActionsT &&value)
AWS_SECURITYHUB_API RuleGroupSource(Aws::Utils::Json::JsonView jsonValue)
RuleGroupSource & WithRulesString(RulesStringT &&value)
AWS_SECURITYHUB_API RuleGroupSource & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleGroupSource & AddStatefulRules(StatefulRulesT &&value)
const Aws::Vector< RuleGroupSourceStatefulRulesDetails > & GetStatefulRules() const
RuleGroupSource & WithRulesSourceList(RulesSourceListT &&value)
AWS_SECURITYHUB_API RuleGroupSource()=default
void SetRulesSourceList(RulesSourceListT &&value)
void SetStatefulRules(StatefulRulesT &&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