7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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/PolicyConfiguration.h>
14#include <aws/network-security-manager/model/PolicyFirewallType.h>
15#include <aws/network-security-manager/model/TemplateOrRuleReference.h>
20namespace NetworkSecurityManager {
46 template <
typename ClientTokenT = Aws::String>
48 m_clientTokenHasBeenSet =
true;
49 m_clientToken = std::forward<ClientTokenT>(value);
51 template <
typename ClientTokenT = Aws::String>
64 template <
typename PolicyNameT = Aws::String>
66 m_policyNameHasBeenSet =
true;
67 m_policyName = std::forward<PolicyNameT>(value);
69 template <
typename PolicyNameT = Aws::String>
82 template <
typename PolicyDescriptionT = Aws::String>
84 m_policyDescriptionHasBeenSet =
true;
85 m_policyDescription = std::forward<PolicyDescriptionT>(value);
87 template <
typename PolicyDescriptionT = Aws::String>
101 m_priorityHasBeenSet =
true;
118 template <
typename AssociatedTemplateAndRuleListT = Aws::Vector<TemplateOrRuleReference>>
120 m_associatedTemplateAndRuleListHasBeenSet =
true;
121 m_associatedTemplateAndRuleList = std::forward<AssociatedTemplateAndRuleListT>(value);
123 template <
typename AssociatedTemplateAndRuleListT = Aws::Vector<TemplateOrRuleReference>>
128 template <
typename AssociatedTemplateAndRuleListT = TemplateOrRuleReference>
130 m_associatedTemplateAndRuleListHasBeenSet =
true;
131 m_associatedTemplateAndRuleList.emplace_back(std::forward<AssociatedTemplateAndRuleListT>(value));
143 m_firewallTypeHasBeenSet =
true;
144 m_firewallType = value;
159 template <
typename PolicyConfigurationT = PolicyConfiguration>
161 m_policyConfigurationHasBeenSet =
true;
162 m_policyConfiguration = std::forward<PolicyConfigurationT>(value);
164 template <
typename PolicyConfigurationT = PolicyConfiguration>
181 m_isPublishedHasBeenSet =
true;
182 m_isPublished = value;
196 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
198 m_tagsHasBeenSet =
true;
199 m_tags = std::forward<TagsT>(value);
201 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
203 SetTags(std::forward<TagsT>(value));
206 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
208 m_tagsHasBeenSet =
true;
209 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
226 PolicyConfiguration m_policyConfiguration;
228 bool m_isPublished{
false};
231 bool m_clientTokenHasBeenSet =
true;
232 bool m_policyNameHasBeenSet =
false;
233 bool m_policyDescriptionHasBeenSet =
false;
234 bool m_priorityHasBeenSet =
false;
235 bool m_associatedTemplateAndRuleListHasBeenSet =
false;
236 bool m_firewallTypeHasBeenSet =
false;
237 bool m_policyConfigurationHasBeenSet =
false;
238 bool m_isPublishedHasBeenSet =
false;
239 bool m_tagsHasBeenSet =
false;
bool ClientTokenHasBeenSet() const
AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::String & GetClientToken() const
void SetIsPublished(bool value)
const PolicyConfiguration & GetPolicyConfiguration() const
bool PolicyDescriptionHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePolicyRequest & WithFirewallType(PolicyFirewallType value)
bool AssociatedTemplateAndRuleListHasBeenSet() const
void SetPolicyConfiguration(PolicyConfigurationT &&value)
void SetFirewallType(PolicyFirewallType value)
const Aws::Vector< TemplateOrRuleReference > & GetAssociatedTemplateAndRuleList() const
void SetTags(TagsT &&value)
void SetPolicyDescription(PolicyDescriptionT &&value)
void SetAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
bool PolicyConfigurationHasBeenSet() const
bool GetIsPublished() const
CreatePolicyRequest & WithIsPublished(bool value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetPolicyName() const
CreatePolicyRequest & AddAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
bool PolicyNameHasBeenSet() const
bool PriorityHasBeenSet() const
CreatePolicyRequest & WithAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
AWS_NETWORKSECURITYMANAGER_API CreatePolicyRequest()=default
CreatePolicyRequest & WithTags(TagsT &&value)
PolicyFirewallType GetFirewallType() const
CreatePolicyRequest & WithPolicyDescription(PolicyDescriptionT &&value)
CreatePolicyRequest & WithClientToken(ClientTokenT &&value)
void SetPriority(int value)
bool FirewallTypeHasBeenSet() const
CreatePolicyRequest & WithPolicyName(PolicyNameT &&value)
CreatePolicyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool IsPublishedHasBeenSet() const
CreatePolicyRequest & WithPolicyConfiguration(PolicyConfigurationT &&value)
CreatePolicyRequest & WithPriority(int value)
const Aws::String & GetPolicyDescription() const
bool TagsHasBeenSet() const
void SetPolicyName(PolicyNameT &&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