AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateAutomationRuleV2Request.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/RuleStatusV2.h>
11#include <aws/securityhub/model/Criteria.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/securityhub/model/AutomationRulesActionV2.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace SecurityHub
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SECURITYHUB_API CreateAutomationRuleV2Request() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateAutomationRuleV2"; }
37
38 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetRuleName() const { return m_ruleName; }
46 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
47 template<typename RuleNameT = Aws::String>
48 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
49 template<typename RuleNameT = Aws::String>
50 CreateAutomationRuleV2Request& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
52
54
57 inline RuleStatusV2 GetRuleStatus() const { return m_ruleStatus; }
58 inline bool RuleStatusHasBeenSet() const { return m_ruleStatusHasBeenSet; }
59 inline void SetRuleStatus(RuleStatusV2 value) { m_ruleStatusHasBeenSet = true; m_ruleStatus = value; }
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 CreateAutomationRuleV2Request& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
79 inline double GetRuleOrder() const { return m_ruleOrder; }
80 inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; }
81 inline void SetRuleOrder(double value) { m_ruleOrderHasBeenSet = true; m_ruleOrder = value; }
82 inline CreateAutomationRuleV2Request& WithRuleOrder(double value) { SetRuleOrder(value); return *this;}
84
86
89 inline const Criteria& GetCriteria() const { return m_criteria; }
90 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
91 template<typename CriteriaT = Criteria>
92 void SetCriteria(CriteriaT&& value) { m_criteriaHasBeenSet = true; m_criteria = std::forward<CriteriaT>(value); }
93 template<typename CriteriaT = Criteria>
94 CreateAutomationRuleV2Request& WithCriteria(CriteriaT&& value) { SetCriteria(std::forward<CriteriaT>(value)); return *this;}
96
98
101 inline const Aws::Vector<AutomationRulesActionV2>& GetActions() const { return m_actions; }
102 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
103 template<typename ActionsT = Aws::Vector<AutomationRulesActionV2>>
104 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
105 template<typename ActionsT = Aws::Vector<AutomationRulesActionV2>>
106 CreateAutomationRuleV2Request& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
107 template<typename ActionsT = AutomationRulesActionV2>
108 CreateAutomationRuleV2Request& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
110
112
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
119 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 CreateAutomationRuleV2Request& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
121 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
122 CreateAutomationRuleV2Request& AddTags(TagsKeyT&& key, TagsValueT&& value) {
123 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
124 }
126
128
131 inline const Aws::String& GetClientToken() const { return m_clientToken; }
132 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
133 template<typename ClientTokenT = Aws::String>
134 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
135 template<typename ClientTokenT = Aws::String>
136 CreateAutomationRuleV2Request& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
138 private:
139
140 Aws::String m_ruleName;
141 bool m_ruleNameHasBeenSet = false;
142
144 bool m_ruleStatusHasBeenSet = false;
145
146 Aws::String m_description;
147 bool m_descriptionHasBeenSet = false;
148
149 double m_ruleOrder{0.0};
150 bool m_ruleOrderHasBeenSet = false;
151
152 Criteria m_criteria;
153 bool m_criteriaHasBeenSet = false;
154
156 bool m_actionsHasBeenSet = false;
157
159 bool m_tagsHasBeenSet = false;
160
162 bool m_clientTokenHasBeenSet = true;
163 };
164
165} // namespace Model
166} // namespace SecurityHub
167} // namespace Aws
CreateAutomationRuleV2Request & WithRuleOrder(double value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_SECURITYHUB_API CreateAutomationRuleV2Request()=default
CreateAutomationRuleV2Request & WithCriteria(CriteriaT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
const Aws::Vector< AutomationRulesActionV2 > & GetActions() const
CreateAutomationRuleV2Request & WithDescription(DescriptionT &&value)
CreateAutomationRuleV2Request & WithRuleName(RuleNameT &&value)
CreateAutomationRuleV2Request & WithClientToken(ClientTokenT &&value)
CreateAutomationRuleV2Request & WithActions(ActionsT &&value)
CreateAutomationRuleV2Request & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAutomationRuleV2Request & AddActions(ActionsT &&value)
CreateAutomationRuleV2Request & WithRuleStatus(RuleStatusV2 value)
CreateAutomationRuleV2Request & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector