/** * 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 AssociateFirewallPolicyResult { public: AWS_NETWORKFIREWALL_API AssociateFirewallPolicyResult(); AWS_NETWORKFIREWALL_API AssociateFirewallPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_NETWORKFIREWALL_API AssociateFirewallPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 AssociateFirewallPolicyResult& WithFirewallArn(const Aws::String& value) { SetFirewallArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the firewall.

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

The Amazon Resource Name (ARN) of the firewall.

*/ inline AssociateFirewallPolicyResult& 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 AssociateFirewallPolicyResult& 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 AssociateFirewallPolicyResult& 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 AssociateFirewallPolicyResult& WithFirewallName(const char* value) { SetFirewallName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the firewall policy.

*/ inline const Aws::String& GetFirewallPolicyArn() const{ return m_firewallPolicyArn; } /** *

The Amazon Resource Name (ARN) of the firewall policy.

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

The Amazon Resource Name (ARN) of the firewall policy.

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

The Amazon Resource Name (ARN) of the firewall policy.

*/ inline void SetFirewallPolicyArn(const char* value) { m_firewallPolicyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the firewall policy.

*/ inline AssociateFirewallPolicyResult& WithFirewallPolicyArn(const Aws::String& value) { SetFirewallPolicyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the firewall policy.

*/ inline AssociateFirewallPolicyResult& WithFirewallPolicyArn(Aws::String&& value) { SetFirewallPolicyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the firewall policy.

*/ inline AssociateFirewallPolicyResult& WithFirewallPolicyArn(const char* value) { SetFirewallPolicyArn(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 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 AssociateFirewallPolicyResult& 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 AssociateFirewallPolicyResult& 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 AssociateFirewallPolicyResult& WithUpdateToken(const char* value) { SetUpdateToken(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 AssociateFirewallPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AssociateFirewallPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AssociateFirewallPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_firewallArn; Aws::String m_firewallName; Aws::String m_firewallPolicyArn; Aws::String m_updateToken; Aws::String m_requestId; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws