7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/network-security-manager/NetworkSecurityManagerRequest.h>
12#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
13#include <aws/network-security-manager/model/RuleFirewallType.h>
14#include <aws/network-security-manager/model/RuleType.h>
19namespace NetworkSecurityManager {
45 template <
typename ClientTokenT = Aws::String>
47 m_clientTokenHasBeenSet =
true;
48 m_clientToken = std::forward<ClientTokenT>(value);
50 template <
typename ClientTokenT = Aws::String>
63 template <
typename RuleNameT = Aws::String>
65 m_ruleNameHasBeenSet =
true;
66 m_ruleName = std::forward<RuleNameT>(value);
68 template <
typename RuleNameT = Aws::String>
82 m_firewallTypeHasBeenSet =
true;
83 m_firewallType = value;
99 m_ruleTypeHasBeenSet =
true;
114 template <
typename RuleDescriptionT = Aws::String>
116 m_ruleDescriptionHasBeenSet =
true;
117 m_ruleDescription = std::forward<RuleDescriptionT>(value);
119 template <
typename RuleDescriptionT = Aws::String>
141 template <
typename ConfigurationT = Aws::Utils::Document>
143 m_configurationHasBeenSet =
true;
144 m_configuration = std::forward<ConfigurationT>(value);
146 template <
typename ConfigurationT = Aws::Utils::Document>
163 m_isPublishedHasBeenSet =
true;
164 m_isPublished = value;
178 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
180 m_tagsHasBeenSet =
true;
181 m_tags = std::forward<TagsT>(value);
183 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
185 SetTags(std::forward<TagsT>(value));
188 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
190 m_tagsHasBeenSet =
true;
191 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
208 bool m_isPublished{
false};
211 bool m_clientTokenHasBeenSet =
true;
212 bool m_ruleNameHasBeenSet =
false;
213 bool m_firewallTypeHasBeenSet =
false;
214 bool m_ruleTypeHasBeenSet =
false;
215 bool m_ruleDescriptionHasBeenSet =
false;
216 bool m_configurationHasBeenSet =
false;
217 bool m_isPublishedHasBeenSet =
false;
218 bool m_tagsHasBeenSet =
false;
Aws::Utils::DocumentView GetConfiguration() const
void SetFirewallType(RuleFirewallType value)
bool TagsHasBeenSet() const
CreateRuleRequest & WithClientToken(ClientTokenT &&value)
CreateRuleRequest & WithRuleName(RuleNameT &&value)
bool RuleTypeHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetRuleName() const
CreateRuleRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_NETWORKSECURITYMANAGER_API CreateRuleRequest()=default
CreateRuleRequest & WithConfiguration(ConfigurationT &&value)
bool FirewallTypeHasBeenSet() const
bool ClientTokenHasBeenSet() const
void SetRuleDescription(RuleDescriptionT &&value)
bool RuleDescriptionHasBeenSet() const
bool IsPublishedHasBeenSet() const
void SetConfiguration(ConfigurationT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override
RuleFirewallType GetFirewallType() const
void SetRuleType(RuleType value)
RuleType GetRuleType() const
CreateRuleRequest & WithTags(TagsT &&value)
void SetClientToken(ClientTokenT &&value)
bool GetIsPublished() const
bool ConfigurationHasBeenSet() const
CreateRuleRequest & WithIsPublished(bool value)
const Aws::String & GetClientToken() const
virtual const char * GetServiceRequestName() const override
bool RuleNameHasBeenSet() const
void SetRuleName(RuleNameT &&value)
void SetTags(TagsT &&value)
void SetIsPublished(bool value)
const Aws::String & GetRuleDescription() const
CreateRuleRequest & WithRuleType(RuleType value)
CreateRuleRequest & WithRuleDescription(RuleDescriptionT &&value)
CreateRuleRequest & WithFirewallType(RuleFirewallType 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