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 {
41 template <
typename PolicyIdT = Aws::String>
43 m_policyIdHasBeenSet =
true;
44 m_policyId = std::forward<PolicyIdT>(value);
46 template <
typename PolicyIdT = Aws::String>
58 template <
typename PolicyArnT = Aws::String>
60 m_policyArnHasBeenSet =
true;
61 m_policyArn = std::forward<PolicyArnT>(value);
63 template <
typename PolicyArnT = Aws::String>
75 template <
typename PolicyNameT = Aws::String>
77 m_policyNameHasBeenSet =
true;
78 m_policyName = std::forward<PolicyNameT>(value);
80 template <
typename PolicyNameT = Aws::String>
92 template <
typename PolicyDescriptionT = Aws::String>
94 m_policyDescriptionHasBeenSet =
true;
95 m_policyDescription = std::forward<PolicyDescriptionT>(value);
97 template <
typename PolicyDescriptionT = Aws::String>
111 m_statusHasBeenSet =
true;
126 m_priorityHasBeenSet =
true;
142 template <
typename AssociatedTemplateAndRuleListT = Aws::Vector<AssociatedTemplateOrRule>>
144 m_associatedTemplateAndRuleListHasBeenSet =
true;
145 m_associatedTemplateAndRuleList = std::forward<AssociatedTemplateAndRuleListT>(value);
147 template <
typename AssociatedTemplateAndRuleListT = Aws::Vector<AssociatedTemplateOrRule>>
152 template <
typename AssociatedTemplateAndRuleListT = AssociatedTemplateOrRule>
154 m_associatedTemplateAndRuleListHasBeenSet =
true;
155 m_associatedTemplateAndRuleList.emplace_back(std::forward<AssociatedTemplateAndRuleListT>(value));
165 template <
typename VersionT = Aws::String>
167 m_versionHasBeenSet =
true;
168 m_version = std::forward<VersionT>(value);
170 template <
typename VersionT = Aws::String>
184 template <
typename UpdateTokenT = Aws::String>
186 m_updateTokenHasBeenSet =
true;
187 m_updateToken = std::forward<UpdateTokenT>(value);
189 template <
typename UpdateTokenT = Aws::String>
202 m_isSnapshotHasBeenSet =
true;
203 m_isSnapshot = value;
217 m_hasPublishedVersionHasBeenSet =
true;
218 m_hasPublishedVersion = value;
232 m_firewallTypeHasBeenSet =
true;
233 m_firewallType = value;
247 template <
typename PolicyConfigurationT = PolicyConfiguration>
249 m_policyConfigurationHasBeenSet =
true;
250 m_policyConfiguration = std::forward<PolicyConfigurationT>(value);
252 template <
typename PolicyConfigurationT = PolicyConfiguration>
264 template <
typename UpdatedAtT = Aws::Utils::DateTime>
266 m_updatedAtHasBeenSet =
true;
267 m_updatedAt = std::forward<UpdatedAtT>(value);
269 template <
typename UpdatedAtT = Aws::Utils::DateTime>
279 template <
typename RequestIdT = Aws::String>
281 m_requestIdHasBeenSet =
true;
282 m_requestId = std::forward<RequestIdT>(value);
284 template <
typename RequestIdT = Aws::String>
311 bool m_isSnapshot{
false};
313 bool m_hasPublishedVersion{
false};
317 PolicyConfiguration m_policyConfiguration;
323 bool m_policyIdHasBeenSet =
false;
324 bool m_policyArnHasBeenSet =
false;
325 bool m_policyNameHasBeenSet =
false;
326 bool m_policyDescriptionHasBeenSet =
false;
327 bool m_statusHasBeenSet =
false;
328 bool m_priorityHasBeenSet =
false;
329 bool m_associatedTemplateAndRuleListHasBeenSet =
false;
330 bool m_versionHasBeenSet =
false;
331 bool m_updateTokenHasBeenSet =
false;
332 bool m_isSnapshotHasBeenSet =
false;
333 bool m_hasPublishedVersionHasBeenSet =
false;
334 bool m_firewallTypeHasBeenSet =
false;
335 bool m_policyConfigurationHasBeenSet =
false;
336 bool m_updatedAtHasBeenSet =
false;
337 bool m_requestIdHasBeenSet =
false;
bool GetHasPublishedVersion() const
void SetPolicyConfiguration(PolicyConfigurationT &&value)
void SetAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
CreatePolicyResult & WithPolicyDescription(PolicyDescriptionT &&value)
CreatePolicyResult & WithStatus(EntityStatus value)
const PolicyConfiguration & GetPolicyConfiguration() const
CreatePolicyResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetPolicyDescription() const
const Aws::String & GetVersion() const
CreatePolicyResult & WithPolicyId(PolicyIdT &&value)
CreatePolicyResult & WithPolicyArn(PolicyArnT &&value)
CreatePolicyResult & WithAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
CreatePolicyResult & WithIsSnapshot(bool value)
CreatePolicyResult & WithPriority(int value)
CreatePolicyResult & WithPolicyName(PolicyNameT &&value)
CreatePolicyResult & WithUpdateToken(UpdateTokenT &&value)
void SetPolicyName(PolicyNameT &&value)
void SetUpdateToken(UpdateTokenT &&value)
void SetVersion(VersionT &&value)
PolicyFirewallType GetFirewallType() const
CreatePolicyResult & AddAssociatedTemplateAndRuleList(AssociatedTemplateAndRuleListT &&value)
CreatePolicyResult & WithFirewallType(PolicyFirewallType value)
const Aws::String & GetRequestId() const
CreatePolicyResult & WithPolicyConfiguration(PolicyConfigurationT &&value)
void SetIsSnapshot(bool value)
AWS_NETWORKSECURITYMANAGER_API CreatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetHasPublishedVersion(bool value)
EntityStatus GetStatus() const
const Aws::String & GetPolicyName() const
CreatePolicyResult & WithHasPublishedVersion(bool value)
void SetUpdatedAt(UpdatedAtT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
bool GetIsSnapshot() const
const Aws::String & GetUpdateToken() const
void SetFirewallType(PolicyFirewallType value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetPolicyDescription(PolicyDescriptionT &&value)
AWS_NETWORKSECURITYMANAGER_API CreatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_NETWORKSECURITYMANAGER_API CreatePolicyResult()=default
CreatePolicyResult & WithVersion(VersionT &&value)
const Aws::Vector< AssociatedTemplateOrRule > & GetAssociatedTemplateAndRuleList() const
void SetPolicyId(PolicyIdT &&value)
void SetStatus(EntityStatus value)
CreatePolicyResult & WithRequestId(RequestIdT &&value)
void SetPriority(int value)
const Aws::String & GetPolicyId() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetPolicyArn() const
void SetPolicyArn(PolicyArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue