/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace NetworkFirewall { namespace Model { class DescribeFirewallResult { public: AWS_NETWORKFIREWALL_API DescribeFirewallResult(); AWS_NETWORKFIREWALL_API DescribeFirewallResult(const Aws::AmazonWebServiceResult& result); AWS_NETWORKFIREWALL_API DescribeFirewallResult& 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 DescribeFirewallResult& 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 DescribeFirewallResult& 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 DescribeFirewallResult& WithUpdateToken(const char* value) { SetUpdateToken(value); return *this;} /** *

The configuration settings for the firewall. These settings include the * firewall policy and the subnets in your VPC to use for the firewall endpoints. *

*/ inline const Firewall& GetFirewall() const{ return m_firewall; } /** *

The configuration settings for the firewall. These settings include the * firewall policy and the subnets in your VPC to use for the firewall endpoints. *

*/ inline void SetFirewall(const Firewall& value) { m_firewall = value; } /** *

The configuration settings for the firewall. These settings include the * firewall policy and the subnets in your VPC to use for the firewall endpoints. *

*/ inline void SetFirewall(Firewall&& value) { m_firewall = std::move(value); } /** *

The configuration settings for the firewall. These settings include the * firewall policy and the subnets in your VPC to use for the firewall endpoints. *

*/ inline DescribeFirewallResult& WithFirewall(const Firewall& value) { SetFirewall(value); return *this;} /** *

The configuration settings for the firewall. These settings include the * firewall policy and the subnets in your VPC to use for the firewall endpoints. *

*/ inline DescribeFirewallResult& WithFirewall(Firewall&& value) { SetFirewall(std::move(value)); return *this;} /** *

Detailed information about the current status of a Firewall. You can * retrieve this for a firewall by calling DescribeFirewall and providing * the firewall name and ARN.

*/ inline const FirewallStatus& GetFirewallStatus() const{ return m_firewallStatus; } /** *

Detailed information about the current status of a Firewall. You can * retrieve this for a firewall by calling DescribeFirewall and providing * the firewall name and ARN.

*/ inline void SetFirewallStatus(const FirewallStatus& value) { m_firewallStatus = value; } /** *

Detailed information about the current status of a Firewall. You can * retrieve this for a firewall by calling DescribeFirewall and providing * the firewall name and ARN.

*/ inline void SetFirewallStatus(FirewallStatus&& value) { m_firewallStatus = std::move(value); } /** *

Detailed information about the current status of a Firewall. You can * retrieve this for a firewall by calling DescribeFirewall and providing * the firewall name and ARN.

*/ inline DescribeFirewallResult& WithFirewallStatus(const FirewallStatus& value) { SetFirewallStatus(value); return *this;} /** *

Detailed information about the current status of a Firewall. You can * retrieve this for a firewall by calling DescribeFirewall and providing * the firewall name and ARN.

*/ inline DescribeFirewallResult& WithFirewallStatus(FirewallStatus&& value) { SetFirewallStatus(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 DescribeFirewallResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeFirewallResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeFirewallResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_updateToken; Firewall m_firewall; FirewallStatus m_firewallStatus; Aws::String m_requestId; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws