/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace NetworkFirewall { namespace Model { /** *

The configuration and status for a single subnet that you've specified for * use by the Network Firewall firewall. This is part of the * FirewallStatus.

See Also:

AWS * API Reference

*/ class Attachment { public: AWS_NETWORKFIREWALL_API Attachment(); AWS_NETWORKFIREWALL_API Attachment(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKFIREWALL_API Attachment& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique identifier of the subnet that you've specified to be used for a * firewall endpoint.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The unique identifier of the subnet that you've specified to be used for a * firewall endpoint.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The unique identifier of the subnet that you've specified to be used for a * firewall endpoint.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The unique identifier of the subnet that you've specified to be used for a * firewall endpoint.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The unique identifier of the subnet that you've specified to be used for a * firewall endpoint.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The unique identifier of the subnet that you've specified to be used for a * firewall endpoint.

*/ inline Attachment& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The unique identifier of the subnet that you've specified to be used for a * firewall endpoint.

*/ inline Attachment& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The unique identifier of the subnet that you've specified to be used for a * firewall endpoint.

*/ inline Attachment& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

The identifier of the firewall endpoint that Network Firewall has * instantiated in the subnet. You use this to identify the firewall endpoint in * the VPC route tables, when you redirect the VPC traffic through the endpoint. *

*/ inline const Aws::String& GetEndpointId() const{ return m_endpointId; } /** *

The identifier of the firewall endpoint that Network Firewall has * instantiated in the subnet. You use this to identify the firewall endpoint in * the VPC route tables, when you redirect the VPC traffic through the endpoint. *

*/ inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; } /** *

The identifier of the firewall endpoint that Network Firewall has * instantiated in the subnet. You use this to identify the firewall endpoint in * the VPC route tables, when you redirect the VPC traffic through the endpoint. *

*/ inline void SetEndpointId(const Aws::String& value) { m_endpointIdHasBeenSet = true; m_endpointId = value; } /** *

The identifier of the firewall endpoint that Network Firewall has * instantiated in the subnet. You use this to identify the firewall endpoint in * the VPC route tables, when you redirect the VPC traffic through the endpoint. *

*/ inline void SetEndpointId(Aws::String&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::move(value); } /** *

The identifier of the firewall endpoint that Network Firewall has * instantiated in the subnet. You use this to identify the firewall endpoint in * the VPC route tables, when you redirect the VPC traffic through the endpoint. *

*/ inline void SetEndpointId(const char* value) { m_endpointIdHasBeenSet = true; m_endpointId.assign(value); } /** *

The identifier of the firewall endpoint that Network Firewall has * instantiated in the subnet. You use this to identify the firewall endpoint in * the VPC route tables, when you redirect the VPC traffic through the endpoint. *

*/ inline Attachment& WithEndpointId(const Aws::String& value) { SetEndpointId(value); return *this;} /** *

The identifier of the firewall endpoint that Network Firewall has * instantiated in the subnet. You use this to identify the firewall endpoint in * the VPC route tables, when you redirect the VPC traffic through the endpoint. *

*/ inline Attachment& WithEndpointId(Aws::String&& value) { SetEndpointId(std::move(value)); return *this;} /** *

The identifier of the firewall endpoint that Network Firewall has * instantiated in the subnet. You use this to identify the firewall endpoint in * the VPC route tables, when you redirect the VPC traffic through the endpoint. *

*/ inline Attachment& WithEndpointId(const char* value) { SetEndpointId(value); return *this;} /** *

The current status of the firewall endpoint in the subnet. This value * reflects both the instantiation of the endpoint in the VPC subnet and the sync * states that are reported in the Config settings. When this value is * READY, the endpoint is available and configured properly to handle * network traffic. When the endpoint isn't available for traffic, this value will * reflect its state, for example CREATING or * DELETING.

*/ inline const AttachmentStatus& GetStatus() const{ return m_status; } /** *

The current status of the firewall endpoint in the subnet. This value * reflects both the instantiation of the endpoint in the VPC subnet and the sync * states that are reported in the Config settings. When this value is * READY, the endpoint is available and configured properly to handle * network traffic. When the endpoint isn't available for traffic, this value will * reflect its state, for example CREATING or * DELETING.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the firewall endpoint in the subnet. This value * reflects both the instantiation of the endpoint in the VPC subnet and the sync * states that are reported in the Config settings. When this value is * READY, the endpoint is available and configured properly to handle * network traffic. When the endpoint isn't available for traffic, this value will * reflect its state, for example CREATING or * DELETING.

*/ inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the firewall endpoint in the subnet. This value * reflects both the instantiation of the endpoint in the VPC subnet and the sync * states that are reported in the Config settings. When this value is * READY, the endpoint is available and configured properly to handle * network traffic. When the endpoint isn't available for traffic, this value will * reflect its state, for example CREATING or * DELETING.

*/ inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the firewall endpoint in the subnet. This value * reflects both the instantiation of the endpoint in the VPC subnet and the sync * states that are reported in the Config settings. When this value is * READY, the endpoint is available and configured properly to handle * network traffic. When the endpoint isn't available for traffic, this value will * reflect its state, for example CREATING or * DELETING.

*/ inline Attachment& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;} /** *

The current status of the firewall endpoint in the subnet. This value * reflects both the instantiation of the endpoint in the VPC subnet and the sync * states that are reported in the Config settings. When this value is * READY, the endpoint is available and configured properly to handle * network traffic. When the endpoint isn't available for traffic, this value will * reflect its state, for example CREATING or * DELETING.

*/ inline Attachment& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

If Network Firewall fails to create or delete the firewall endpoint in the * subnet, it populates this with the reason for the error or failure and how to * resolve it. A FAILED status indicates a non-recoverable state, and * a ERROR status indicates an issue that you can fix. Depending on * the error, it can take as many as 15 minutes to populate this field. For more * information about the causes for failiure or errors and solutions available for * this field, see Troubleshooting * firewall endpoint failures in the Network Firewall Developer * Guide.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

If Network Firewall fails to create or delete the firewall endpoint in the * subnet, it populates this with the reason for the error or failure and how to * resolve it. A FAILED status indicates a non-recoverable state, and * a ERROR status indicates an issue that you can fix. Depending on * the error, it can take as many as 15 minutes to populate this field. For more * information about the causes for failiure or errors and solutions available for * this field, see Troubleshooting * firewall endpoint failures in the Network Firewall Developer * Guide.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

If Network Firewall fails to create or delete the firewall endpoint in the * subnet, it populates this with the reason for the error or failure and how to * resolve it. A FAILED status indicates a non-recoverable state, and * a ERROR status indicates an issue that you can fix. Depending on * the error, it can take as many as 15 minutes to populate this field. For more * information about the causes for failiure or errors and solutions available for * this field, see Troubleshooting * firewall endpoint failures in the Network Firewall Developer * Guide.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

If Network Firewall fails to create or delete the firewall endpoint in the * subnet, it populates this with the reason for the error or failure and how to * resolve it. A FAILED status indicates a non-recoverable state, and * a ERROR status indicates an issue that you can fix. Depending on * the error, it can take as many as 15 minutes to populate this field. For more * information about the causes for failiure or errors and solutions available for * this field, see Troubleshooting * firewall endpoint failures in the Network Firewall Developer * Guide.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

If Network Firewall fails to create or delete the firewall endpoint in the * subnet, it populates this with the reason for the error or failure and how to * resolve it. A FAILED status indicates a non-recoverable state, and * a ERROR status indicates an issue that you can fix. Depending on * the error, it can take as many as 15 minutes to populate this field. For more * information about the causes for failiure or errors and solutions available for * this field, see Troubleshooting * firewall endpoint failures in the Network Firewall Developer * Guide.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

If Network Firewall fails to create or delete the firewall endpoint in the * subnet, it populates this with the reason for the error or failure and how to * resolve it. A FAILED status indicates a non-recoverable state, and * a ERROR status indicates an issue that you can fix. Depending on * the error, it can take as many as 15 minutes to populate this field. For more * information about the causes for failiure or errors and solutions available for * this field, see Troubleshooting * firewall endpoint failures in the Network Firewall Developer * Guide.

*/ inline Attachment& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

If Network Firewall fails to create or delete the firewall endpoint in the * subnet, it populates this with the reason for the error or failure and how to * resolve it. A FAILED status indicates a non-recoverable state, and * a ERROR status indicates an issue that you can fix. Depending on * the error, it can take as many as 15 minutes to populate this field. For more * information about the causes for failiure or errors and solutions available for * this field, see Troubleshooting * firewall endpoint failures in the Network Firewall Developer * Guide.

*/ inline Attachment& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

If Network Firewall fails to create or delete the firewall endpoint in the * subnet, it populates this with the reason for the error or failure and how to * resolve it. A FAILED status indicates a non-recoverable state, and * a ERROR status indicates an issue that you can fix. Depending on * the error, it can take as many as 15 minutes to populate this field. For more * information about the causes for failiure or errors and solutions available for * this field, see Troubleshooting * firewall endpoint failures in the Network Firewall Developer * Guide.

*/ inline Attachment& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} private: Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::String m_endpointId; bool m_endpointIdHasBeenSet = false; AttachmentStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws