AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleGroupSourceStatelessRuleDefinition.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/model/RuleGroupSourceStatelessRuleMatchAttributes.h>
10#include <aws/core/utils/memory/stl/AWSString.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 SecurityHub
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SECURITYHUB_API RuleGroupSourceStatelessRuleDefinition() = default;
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
50 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
51 template<typename ActionsT = Aws::Vector<Aws::String>>
52 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
53 template<typename ActionsT = Aws::Vector<Aws::String>>
54 RuleGroupSourceStatelessRuleDefinition& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
55 template<typename ActionsT = Aws::String>
56 RuleGroupSourceStatelessRuleDefinition& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
58
60
64 inline const RuleGroupSourceStatelessRuleMatchAttributes& GetMatchAttributes() const { return m_matchAttributes; }
65 inline bool MatchAttributesHasBeenSet() const { return m_matchAttributesHasBeenSet; }
66 template<typename MatchAttributesT = RuleGroupSourceStatelessRuleMatchAttributes>
67 void SetMatchAttributes(MatchAttributesT&& value) { m_matchAttributesHasBeenSet = true; m_matchAttributes = std::forward<MatchAttributesT>(value); }
68 template<typename MatchAttributesT = RuleGroupSourceStatelessRuleMatchAttributes>
69 RuleGroupSourceStatelessRuleDefinition& WithMatchAttributes(MatchAttributesT&& value) { SetMatchAttributes(std::forward<MatchAttributesT>(value)); return *this;}
71 private:
72
74 bool m_actionsHasBeenSet = false;
75
77 bool m_matchAttributesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace SecurityHub
82} // namespace Aws
RuleGroupSourceStatelessRuleDefinition & AddActions(ActionsT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroupSourceStatelessRuleDefinition & WithActions(ActionsT &&value)
AWS_SECURITYHUB_API RuleGroupSourceStatelessRuleDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleGroupSourceStatelessRuleDefinition & WithMatchAttributes(MatchAttributesT &&value)
AWS_SECURITYHUB_API RuleGroupSourceStatelessRuleDefinition(Aws::Utils::Json::JsonView jsonValue)
const RuleGroupSourceStatelessRuleMatchAttributes & GetMatchAttributes() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue