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

An optional token that you can use for optimistic locking. Network Firewall * returns a token to your requests that access the firewall. The token marks the * state of the firewall resource at the time of the request.

To make an * unconditional change to the firewall, omit the token in your update request. * Without the token, Network Firewall performs your updates regardless of whether * the firewall has changed since you last retrieved it.

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

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

An optional token that you can use for optimistic locking. Network Firewall * returns a token to your requests that access the firewall. The token marks the * state of the firewall resource at the time of the request.

To make an * unconditional change to the firewall, omit the token in your update request. * Without the token, Network Firewall performs your updates regardless of whether * the firewall has changed since you last retrieved it.

To make a * conditional change to the firewall, provide the token in your update request. * Network Firewall uses the token to ensure that the firewall hasn't changed since * you last retrieved it. If it has changed, the operation fails with an * InvalidTokenException. If this happens, retrieve the firewall again * to get a current copy of it with a new 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; } /** *

An optional token that you can use for optimistic locking. Network Firewall * returns a token to your requests that access the firewall. The token marks the * state of the firewall resource at the time of the request.

To make an * unconditional change to the firewall, omit the token in your update request. * Without the token, Network Firewall performs your updates regardless of whether * the firewall has changed since you last retrieved it.

To make a * conditional change to the firewall, provide the token in your update request. * Network Firewall uses the token to ensure that the firewall hasn't changed since * you last retrieved it. If it has changed, the operation fails with an * InvalidTokenException. If this happens, retrieve the firewall again * to get a current copy of it with a new 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); } /** *

An optional token that you can use for optimistic locking. Network Firewall * returns a token to your requests that access the firewall. The token marks the * state of the firewall resource at the time of the request.

To make an * unconditional change to the firewall, omit the token in your update request. * Without the token, Network Firewall performs your updates regardless of whether * the firewall has changed since you last retrieved it.

To make a * conditional change to the firewall, provide the token in your update request. * Network Firewall uses the token to ensure that the firewall hasn't changed since * you last retrieved it. If it has changed, the operation fails with an * InvalidTokenException. If this happens, retrieve the firewall again * to get a current copy of it with a new 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); } /** *

An optional token that you can use for optimistic locking. Network Firewall * returns a token to your requests that access the firewall. The token marks the * state of the firewall resource at the time of the request.

To make an * unconditional change to the firewall, omit the token in your update request. * Without the token, Network Firewall performs your updates regardless of whether * the firewall has changed since you last retrieved it.

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

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

An optional token that you can use for optimistic locking. Network Firewall * returns a token to your requests that access the firewall. The token marks the * state of the firewall resource at the time of the request.

To make an * unconditional change to the firewall, omit the token in your update request. * Without the token, Network Firewall performs your updates regardless of whether * the firewall has changed since you last retrieved it.

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

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

An optional token that you can use for optimistic locking. Network Firewall * returns a token to your requests that access the firewall. The token marks the * state of the firewall resource at the time of the request.

To make an * unconditional change to the firewall, omit the token in your update request. * Without the token, Network Firewall performs your updates regardless of whether * the firewall has changed since you last retrieved it.

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

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

The Amazon Resource Name (ARN) of the firewall.

*/ inline const Aws::String& GetFirewallArn() const{ return m_firewallArn; } /** *

The Amazon Resource Name (ARN) of the firewall.

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

The Amazon Resource Name (ARN) of the firewall.

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

The Amazon Resource Name (ARN) of the firewall.

*/ inline void SetFirewallArn(const char* value) { m_firewallArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the firewall.

*/ inline UpdateFirewallPolicyChangeProtectionResult& WithFirewallArn(const Aws::String& value) { SetFirewallArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the firewall.

*/ inline UpdateFirewallPolicyChangeProtectionResult& WithFirewallArn(Aws::String&& value) { SetFirewallArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the firewall.

*/ inline UpdateFirewallPolicyChangeProtectionResult& WithFirewallArn(const char* value) { SetFirewallArn(value); return *this;} /** *

The descriptive name of the firewall. You can't change the name of a firewall * after you create it.

*/ inline const Aws::String& GetFirewallName() const{ return m_firewallName; } /** *

The descriptive name of the firewall. You can't change the name of a firewall * after you create it.

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

The descriptive name of the firewall. You can't change the name of a firewall * after you create it.

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

The descriptive name of the firewall. You can't change the name of a firewall * after you create it.

*/ inline void SetFirewallName(const char* value) { m_firewallName.assign(value); } /** *

The descriptive name of the firewall. You can't change the name of a firewall * after you create it.

*/ inline UpdateFirewallPolicyChangeProtectionResult& WithFirewallName(const Aws::String& value) { SetFirewallName(value); return *this;} /** *

The descriptive name of the firewall. You can't change the name of a firewall * after you create it.

*/ inline UpdateFirewallPolicyChangeProtectionResult& WithFirewallName(Aws::String&& value) { SetFirewallName(std::move(value)); return *this;} /** *

The descriptive name of the firewall. You can't change the name of a firewall * after you create it.

*/ inline UpdateFirewallPolicyChangeProtectionResult& WithFirewallName(const char* value) { SetFirewallName(value); return *this;} /** *

A setting indicating whether the firewall is protected against a change to * the firewall policy association. Use this setting to protect against * accidentally modifying the firewall policy for a firewall that is in use. When * you create a firewall, the operation initializes this setting to * TRUE.

*/ inline bool GetFirewallPolicyChangeProtection() const{ return m_firewallPolicyChangeProtection; } /** *

A setting indicating whether the firewall is protected against a change to * the firewall policy association. Use this setting to protect against * accidentally modifying the firewall policy for a firewall that is in use. When * you create a firewall, the operation initializes this setting to * TRUE.

*/ inline void SetFirewallPolicyChangeProtection(bool value) { m_firewallPolicyChangeProtection = value; } /** *

A setting indicating whether the firewall is protected against a change to * the firewall policy association. Use this setting to protect against * accidentally modifying the firewall policy for a firewall that is in use. When * you create a firewall, the operation initializes this setting to * TRUE.

*/ inline UpdateFirewallPolicyChangeProtectionResult& WithFirewallPolicyChangeProtection(bool value) { SetFirewallPolicyChangeProtection(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 UpdateFirewallPolicyChangeProtectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateFirewallPolicyChangeProtectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateFirewallPolicyChangeProtectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_updateToken; Aws::String m_firewallArn; Aws::String m_firewallName; bool m_firewallPolicyChangeProtection; Aws::String m_requestId; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws