7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.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/NetworkSecurityManager_EXPORTS.h>
12#include <aws/network-security-manager/model/AssociatedTemplateOrRule.h>
13#include <aws/network-security-manager/model/EntityStatus.h>
14#include <aws/network-security-manager/model/PolicyConfiguration.h>
15#include <aws/network-security-manager/model/PolicyFirewallType.h>
20template <
typename RESULT_TYPE>
21class AmazonWebServiceResult;
28namespace NetworkSecurityManager {
42 template <
typename PolicyIdT = Aws::String>
44 m_policyIdHasBeenSet =
true;
45 m_policyId = std::forward<PolicyIdT>(value);
47 template <
typename PolicyIdT = Aws::String>
59 template <
typename PolicyArnT = Aws::String>
61 m_policyArnHasBeenSet =
true;
62 m_policyArn = std::forward<PolicyArnT>(value);
64 template <
typename PolicyArnT = Aws::String>
76 template <
typename PolicyNameT = Aws::String>
78 m_policyNameHasBeenSet =
true;
79 m_policyName = std::forward<PolicyNameT>(value);
81 template <
typename PolicyNameT = Aws::String>
93 template <
typename PolicyDescriptionT = Aws::String>
95 m_policyDescriptionHasBeenSet =
true;
96 m_policyDescription = std::forward<PolicyDescriptionT>(value);
98 template <
typename PolicyDescriptionT = Aws::String>
112 m_statusHasBeenSet =
true;
127 m_priorityHasBeenSet =
true;
143 template <
typename AssociatedTemplateAndRuleListT = Aws::Vector<AssociatedTemplateOrRule>>
145 m_associatedTemplateAndRuleListHasBeenSet =
true;
146 m_associatedTemplateAndRuleList = std::forward<AssociatedTemplateAndRuleListT>(value);
148 template <
typename AssociatedTemplateAndRuleListT = Aws::Vector<AssociatedTemplateOrRule>>
153 template <
typename AssociatedTemplateAndRuleListT = AssociatedTemplateOrRule>
155 m_associatedTemplateAndRuleListHasBeenSet =
true;
156 m_associatedTemplateAndRuleList.emplace_back(std::forward<AssociatedTemplateAndRuleListT>(value));
166 template <
typename VersionT = Aws::String>
168 m_versionHasBeenSet =
true;
169 m_version = std::forward<VersionT>(value);
171 template <
typename VersionT = Aws::String>
185 template <
typename UpdateTokenT = Aws::String>
187 m_updateTokenHasBeenSet =
true;
188 m_updateToken = std::forward<UpdateTokenT>(value);
190 template <
typename UpdateTokenT = Aws::String>
203 m_isSnapshotHasBeenSet =
true;
204 m_isSnapshot = value;
218 m_hasPublishedVersionHasBeenSet =
true;
219 m_hasPublishedVersion = value;
233 m_firewallTypeHasBeenSet =
true;
234 m_firewallType = value;
248 template <
typename PolicyConfigurationT = PolicyConfiguration>
250 m_policyConfigurationHasBeenSet =
true;
251 m_policyConfiguration = std::forward<PolicyConfigurationT>(value);
253 template <
typename PolicyConfigurationT = PolicyConfiguration>
265 template <
typename UpdatedAtT = Aws::Utils::DateTime>
267 m_updatedAtHasBeenSet =
true;
268 m_updatedAt = std::forward<UpdatedAtT>(value);
270 template <
typename UpdatedAtT = Aws::Utils::DateTime>
280 template <
typename RequestIdT = Aws::String>
282 m_requestIdHasBeenSet =
true;
283 m_requestId = std::forward<RequestIdT>(value);
285 template <
typename RequestIdT = Aws::String>
312 bool m_isSnapshot{
false};
314 bool m_hasPublishedVersion{
false};
318 PolicyConfiguration m_policyConfiguration;
324 bool m_policyIdHasBeenSet =
false;
325 bool m_policyArnHasBeenSet =
false;
326 bool m_policyNameHasBeenSet =
false;
327 bool m_policyDescriptionHasBeenSet =
false;
328 bool m_statusHasBeenSet =
false;
329 bool m_priorityHasBeenSet =
false;
330 bool m_associatedTemplateAndRuleListHasBeenSet =
false;
331 bool m_versionHasBeenSet =
false;
332 bool m_updateTokenHasBeenSet =
false;
333 bool m_isSnapshotHasBeenSet =
false;
334 bool m_hasPublishedVersionHasBeenSet =
false;
335 bool m_firewallTypeHasBeenSet =
false;
336 bool m_policyConfigurationHasBeenSet =
false;
337 bool m_updatedAtHasBeenSet =
false;
338 bool m_requestIdHasBeenSet =
false;
const PolicyConfiguration & GetPolicyConfiguration() const
CreatePolicySnapshotResult & WithPriority(int value)
bool GetHasPublishedVersion() const
CreatePolicySnapshotResult & WithPolicyDescription(PolicyDescriptionT &&value)
const Aws::String & GetRequestId() const
AWS_NETWORKSECURITYMANAGER_API CreatePolicySnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePolicySnapshotResult & WithUpdatedAt(UpdatedAtT &&value)
void SetIsSnapshot(bool value)
CreatePolicySnapshotResult & AddAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
PolicyFirewallType GetFirewallType() const
CreatePolicySnapshotResult & WithPolicyName(PolicyNameT &&value)
void SetVersion(VersionT &&value)
void SetPriority(int value)
bool GetIsSnapshot() const
void SetFirewallType(PolicyFirewallType value)
CreatePolicySnapshotResult & WithStatus(EntityStatus value)
CreatePolicySnapshotResult & WithIsSnapshot(bool value)
CreatePolicySnapshotResult & WithHasPublishedVersion(bool value)
const Aws::String & GetUpdateToken() const
EntityStatus GetStatus() const
void SetPolicyDescription(PolicyDescriptionT &&value)
void SetHasPublishedVersion(bool value)
void SetPolicyName(PolicyNameT &&value)
const Aws::String & GetPolicyDescription() const
void SetRequestId(RequestIdT &&value)
const Aws::Vector< AssociatedTemplateOrRule > & GetAssociatedTemplateAndRuleList() const
const Aws::String & GetPolicyId() const
CreatePolicySnapshotResult & WithPolicyArn(PolicyArnT &&value)
const Aws::String & GetVersion() const
CreatePolicySnapshotResult & WithRequestId(RequestIdT &&value)
void SetStatus(EntityStatus value)
CreatePolicySnapshotResult & WithPolicyId(PolicyIdT &&value)
CreatePolicySnapshotResult & WithUpdateToken(UpdateTokenT &&value)
CreatePolicySnapshotResult & WithAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
void SetUpdateToken(UpdateTokenT &&value)
const Aws::String & GetPolicyName() const
AWS_NETWORKSECURITYMANAGER_API CreatePolicySnapshotResult()=default
AWS_NETWORKSECURITYMANAGER_API CreatePolicySnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPolicyConfiguration(PolicyConfigurationT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetPolicyId(PolicyIdT &&value)
CreatePolicySnapshotResult & WithPolicyConfiguration(PolicyConfigurationT &&value)
const Aws::String & GetPolicyArn() const
CreatePolicySnapshotResult & WithVersion(VersionT &&value)
void SetPolicyArn(PolicyArnT &&value)
void SetAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreatePolicySnapshotResult & WithFirewallType(PolicyFirewallType value)
const Aws::Utils::DateTime & GetUpdatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue