/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace NetworkFirewall { namespace Model { class CreateFirewallPolicyResult { public: AWS_NETWORKFIREWALL_API CreateFirewallPolicyResult(); AWS_NETWORKFIREWALL_API CreateFirewallPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_NETWORKFIREWALL_API CreateFirewallPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A token used for optimistic locking. Network Firewall returns a token to your * requests that access the firewall policy. The token marks the state of the * policy resource at the time of the request.

To make changes to the * policy, you provide the token in your request. Network Firewall uses the token * to ensure that the policy hasn't changed since you last retrieved it. If it has * changed, the operation fails with an InvalidTokenException. If this * happens, retrieve the firewall policy again to get a current copy of it with * current token. Reapply your changes as needed, then try the operation again * using the new token.

*/ inline const Aws::String& GetUpdateToken() const{ return m_updateToken; } /** *

A token used for optimistic locking. Network Firewall returns a token to your * requests that access the firewall policy. The token marks the state of the * policy resource at the time of the request.

To make changes to the * policy, you provide the token in your request. Network Firewall uses the token * to ensure that the policy hasn't changed since you last retrieved it. If it has * changed, the operation fails with an InvalidTokenException. If this * happens, retrieve the firewall policy again to get a current copy of it with * current token. Reapply your changes as needed, then try the operation again * using the new token.

*/ inline void SetUpdateToken(const Aws::String& value) { m_updateToken = value; } /** *

A token used for optimistic locking. Network Firewall returns a token to your * requests that access the firewall policy. The token marks the state of the * policy resource at the time of the request.

To make changes to the * policy, you provide the token in your request. Network Firewall uses the token * to ensure that the policy hasn't changed since you last retrieved it. If it has * changed, the operation fails with an InvalidTokenException. If this * happens, retrieve the firewall policy again to get a current copy of it with * current token. Reapply your changes as needed, then try the operation again * using the new token.

*/ inline void SetUpdateToken(Aws::String&& value) { m_updateToken = std::move(value); } /** *

A token used for optimistic locking. Network Firewall returns a token to your * requests that access the firewall policy. The token marks the state of the * policy resource at the time of the request.

To make changes to the * policy, you provide the token in your request. Network Firewall uses the token * to ensure that the policy hasn't changed since you last retrieved it. If it has * changed, the operation fails with an InvalidTokenException. If this * happens, retrieve the firewall policy again to get a current copy of it with * current token. Reapply your changes as needed, then try the operation again * using the new token.

*/ inline void SetUpdateToken(const char* value) { m_updateToken.assign(value); } /** *

A token used for optimistic locking. Network Firewall returns a token to your * requests that access the firewall policy. The token marks the state of the * policy resource at the time of the request.

To make changes to the * policy, you provide the token in your request. Network Firewall uses the token * to ensure that the policy hasn't changed since you last retrieved it. If it has * changed, the operation fails with an InvalidTokenException. If this * happens, retrieve the firewall policy again to get a current copy of it with * current token. Reapply your changes as needed, then try the operation again * using the new token.

*/ inline CreateFirewallPolicyResult& WithUpdateToken(const Aws::String& value) { SetUpdateToken(value); return *this;} /** *

A token used for optimistic locking. Network Firewall returns a token to your * requests that access the firewall policy. The token marks the state of the * policy resource at the time of the request.

To make changes to the * policy, you provide the token in your request. Network Firewall uses the token * to ensure that the policy hasn't changed since you last retrieved it. If it has * changed, the operation fails with an InvalidTokenException. If this * happens, retrieve the firewall policy again to get a current copy of it with * current token. Reapply your changes as needed, then try the operation again * using the new token.

*/ inline CreateFirewallPolicyResult& WithUpdateToken(Aws::String&& value) { SetUpdateToken(std::move(value)); return *this;} /** *

A token used for optimistic locking. Network Firewall returns a token to your * requests that access the firewall policy. The token marks the state of the * policy resource at the time of the request.

To make changes to the * policy, you provide the token in your request. Network Firewall uses the token * to ensure that the policy hasn't changed since you last retrieved it. If it has * changed, the operation fails with an InvalidTokenException. If this * happens, retrieve the firewall policy again to get a current copy of it with * current token. Reapply your changes as needed, then try the operation again * using the new token.

*/ inline CreateFirewallPolicyResult& WithUpdateToken(const char* value) { SetUpdateToken(value); return *this;} /** *

The high-level properties of a firewall policy. This, along with the * FirewallPolicy, define the policy. You can retrieve all objects for a * firewall policy by calling DescribeFirewallPolicy.

*/ inline const FirewallPolicyResponse& GetFirewallPolicyResponse() const{ return m_firewallPolicyResponse; } /** *

The high-level properties of a firewall policy. This, along with the * FirewallPolicy, define the policy. You can retrieve all objects for a * firewall policy by calling DescribeFirewallPolicy.

*/ inline void SetFirewallPolicyResponse(const FirewallPolicyResponse& value) { m_firewallPolicyResponse = value; } /** *

The high-level properties of a firewall policy. This, along with the * FirewallPolicy, define the policy. You can retrieve all objects for a * firewall policy by calling DescribeFirewallPolicy.

*/ inline void SetFirewallPolicyResponse(FirewallPolicyResponse&& value) { m_firewallPolicyResponse = std::move(value); } /** *

The high-level properties of a firewall policy. This, along with the * FirewallPolicy, define the policy. You can retrieve all objects for a * firewall policy by calling DescribeFirewallPolicy.

*/ inline CreateFirewallPolicyResult& WithFirewallPolicyResponse(const FirewallPolicyResponse& value) { SetFirewallPolicyResponse(value); return *this;} /** *

The high-level properties of a firewall policy. This, along with the * FirewallPolicy, define the policy. You can retrieve all objects for a * firewall policy by calling DescribeFirewallPolicy.

*/ inline CreateFirewallPolicyResult& WithFirewallPolicyResponse(FirewallPolicyResponse&& value) { SetFirewallPolicyResponse(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateFirewallPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateFirewallPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateFirewallPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_updateToken; FirewallPolicyResponse m_firewallPolicyResponse; Aws::String m_requestId; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws