AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleGroupSourceStatefulRulesDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/RuleGroupSourceStatefulRulesHeaderDetails.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityhub/model/RuleGroupSourceStatefulRulesOptionsDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SECURITYHUB_API RuleGroupSourceStatefulRulesDetails() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetAction() const { return m_action; }
49 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
50 template<typename ActionT = Aws::String>
51 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
52 template<typename ActionT = Aws::String>
53 RuleGroupSourceStatefulRulesDetails& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
55
57
60 inline const RuleGroupSourceStatefulRulesHeaderDetails& GetHeader() const { return m_header; }
61 inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
62 template<typename HeaderT = RuleGroupSourceStatefulRulesHeaderDetails>
63 void SetHeader(HeaderT&& value) { m_headerHasBeenSet = true; m_header = std::forward<HeaderT>(value); }
64 template<typename HeaderT = RuleGroupSourceStatefulRulesHeaderDetails>
65 RuleGroupSourceStatefulRulesDetails& WithHeader(HeaderT&& value) { SetHeader(std::forward<HeaderT>(value)); return *this;}
67
69
72 inline const Aws::Vector<RuleGroupSourceStatefulRulesOptionsDetails>& GetRuleOptions() const { return m_ruleOptions; }
73 inline bool RuleOptionsHasBeenSet() const { return m_ruleOptionsHasBeenSet; }
74 template<typename RuleOptionsT = Aws::Vector<RuleGroupSourceStatefulRulesOptionsDetails>>
75 void SetRuleOptions(RuleOptionsT&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = std::forward<RuleOptionsT>(value); }
76 template<typename RuleOptionsT = Aws::Vector<RuleGroupSourceStatefulRulesOptionsDetails>>
77 RuleGroupSourceStatefulRulesDetails& WithRuleOptions(RuleOptionsT&& value) { SetRuleOptions(std::forward<RuleOptionsT>(value)); return *this;}
78 template<typename RuleOptionsT = RuleGroupSourceStatefulRulesOptionsDetails>
79 RuleGroupSourceStatefulRulesDetails& AddRuleOptions(RuleOptionsT&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.emplace_back(std::forward<RuleOptionsT>(value)); return *this; }
81 private:
82
83 Aws::String m_action;
84 bool m_actionHasBeenSet = false;
85
87 bool m_headerHasBeenSet = false;
88
90 bool m_ruleOptionsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SecurityHub
95} // namespace Aws
const RuleGroupSourceStatefulRulesHeaderDetails & GetHeader() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroupSourceStatefulRulesDetails & WithAction(ActionT &&value)
AWS_SECURITYHUB_API RuleGroupSourceStatefulRulesDetails(Aws::Utils::Json::JsonView jsonValue)
RuleGroupSourceStatefulRulesDetails & WithRuleOptions(RuleOptionsT &&value)
AWS_SECURITYHUB_API RuleGroupSourceStatefulRulesDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API RuleGroupSourceStatefulRulesDetails()=default
RuleGroupSourceStatefulRulesDetails & AddRuleOptions(RuleOptionsT &&value)
const Aws::Vector< RuleGroupSourceStatefulRulesOptionsDetails > & GetRuleOptions() const
RuleGroupSourceStatefulRulesDetails & WithHeader(HeaderT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue