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>
16#include <aws/core/utils/UUID.h>
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>
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>
81 inline void SetRuleOrder(
double value) { m_ruleOrderHasBeenSet =
true; m_ruleOrder = value; }
91 template<
typename CriteriaT = Criteria>
92 void SetCriteria(CriteriaT&& value) { m_criteriaHasBeenSet =
true; m_criteria = std::forward<CriteriaT>(value); }
93 template<
typename CriteriaT = Criteria>
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>>
107 template<
typename ActionsT = AutomationRulesActionV2>
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>>
121 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
123 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
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>
141 bool m_ruleNameHasBeenSet =
false;
144 bool m_ruleStatusHasBeenSet =
false;
147 bool m_descriptionHasBeenSet =
false;
149 double m_ruleOrder{0.0};
150 bool m_ruleOrderHasBeenSet =
false;
153 bool m_criteriaHasBeenSet =
false;
156 bool m_actionsHasBeenSet =
false;
159 bool m_tagsHasBeenSet =
false;
162 bool m_clientTokenHasBeenSet =
true;
bool RuleOrderHasBeenSet() const
CreateAutomationRuleV2Request & WithRuleOrder(double value)
void SetRuleStatus(RuleStatusV2 value)
void SetRuleName(RuleNameT &&value)
bool ActionsHasBeenSet() const
void SetRuleOrder(double value)
void SetTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_SECURITYHUB_API CreateAutomationRuleV2Request()=default
void SetActions(ActionsT &&value)
bool CriteriaHasBeenSet() const
const Aws::String & GetClientToken() const
bool RuleStatusHasBeenSet() const
double GetRuleOrder() const
CreateAutomationRuleV2Request & WithCriteria(CriteriaT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
const Aws::Vector< AutomationRulesActionV2 > & GetActions() const
RuleStatusV2 GetRuleStatus() const
CreateAutomationRuleV2Request & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
CreateAutomationRuleV2Request & WithRuleName(RuleNameT &&value)
bool RuleNameHasBeenSet() const
void SetCriteria(CriteriaT &&value)
virtual const char * GetServiceRequestName() const override
const Criteria & GetCriteria() const
const Aws::String & GetDescription() const
CreateAutomationRuleV2Request & WithClientToken(ClientTokenT &&value)
CreateAutomationRuleV2Request & WithActions(ActionsT &&value)
const Aws::String & GetRuleName() const
bool DescriptionHasBeenSet() const
CreateAutomationRuleV2Request & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool TagsHasBeenSet() const
bool ClientTokenHasBeenSet() const
CreateAutomationRuleV2Request & AddActions(ActionsT &&value)
void SetClientToken(ClientTokenT &&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