AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RuleGroupDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/RuleGroupSource.h>
9#include <aws/securityhub/model/RuleGroupVariables.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
29 public:
30 AWS_SECURITYHUB_API RuleGroupDetails() = default;
31 AWS_SECURITYHUB_API RuleGroupDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API RuleGroupDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const RuleGroupVariables& GetRuleVariables() const { return m_ruleVariables; }
40 inline bool RuleVariablesHasBeenSet() const { return m_ruleVariablesHasBeenSet; }
41 template <typename RuleVariablesT = RuleGroupVariables>
42 void SetRuleVariables(RuleVariablesT&& value) {
43 m_ruleVariablesHasBeenSet = true;
44 m_ruleVariables = std::forward<RuleVariablesT>(value);
45 }
46 template <typename RuleVariablesT = RuleGroupVariables>
47 RuleGroupDetails& WithRuleVariables(RuleVariablesT&& value) {
48 SetRuleVariables(std::forward<RuleVariablesT>(value));
49 return *this;
50 }
52
54
60 inline const RuleGroupSource& GetRulesSource() const { return m_rulesSource; }
61 inline bool RulesSourceHasBeenSet() const { return m_rulesSourceHasBeenSet; }
62 template <typename RulesSourceT = RuleGroupSource>
63 void SetRulesSource(RulesSourceT&& value) {
64 m_rulesSourceHasBeenSet = true;
65 m_rulesSource = std::forward<RulesSourceT>(value);
66 }
67 template <typename RulesSourceT = RuleGroupSource>
68 RuleGroupDetails& WithRulesSource(RulesSourceT&& value) {
69 SetRulesSource(std::forward<RulesSourceT>(value));
70 return *this;
71 }
73 private:
74 RuleGroupVariables m_ruleVariables;
75
76 RuleGroupSource m_rulesSource;
77 bool m_ruleVariablesHasBeenSet = false;
78 bool m_rulesSourceHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace SecurityHub
83} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroupDetails & WithRuleVariables(RuleVariablesT &&value)
const RuleGroupSource & GetRulesSource() const
AWS_SECURITYHUB_API RuleGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const RuleGroupVariables & GetRuleVariables() const
RuleGroupDetails & WithRulesSource(RulesSourceT &&value)
AWS_SECURITYHUB_API RuleGroupDetails()=default
void SetRuleVariables(RuleVariablesT &&value)
AWS_SECURITYHUB_API RuleGroupDetails(Aws::Utils::Json::JsonView jsonValue)
void SetRulesSource(RulesSourceT &&value)
Aws::Utils::Json::JsonValue JsonValue