/** * 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 QuickSight { namespace Model { /** *

The structure that contains information about a network * interface.

See Also:

AWS * API Reference

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

The subnet ID associated with the network interface.

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

The subnet ID associated with the network interface.

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

The subnet ID associated with the network interface.

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

The subnet ID associated with the network interface.

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

The subnet ID associated with the network interface.

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

The subnet ID associated with the network interface.

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

The subnet ID associated with the network interface.

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

The subnet ID associated with the network interface.

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

The availability zone that the network interface resides in.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The availability zone that the network interface resides in.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The availability zone that the network interface resides in.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The availability zone that the network interface resides in.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The availability zone that the network interface resides in.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The availability zone that the network interface resides in.

*/ inline NetworkInterface& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The availability zone that the network interface resides in.

*/ inline NetworkInterface& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The availability zone that the network interface resides in.

*/ inline NetworkInterface& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

An error message.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

An error message.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

An error message.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

An error message.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

An error message.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

An error message.

*/ inline NetworkInterface& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

An error message.

*/ inline NetworkInterface& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

An error message.

*/ inline NetworkInterface& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The status of the network interface.

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

The status of the network interface.

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

The status of the network interface.

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

The status of the network interface.

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

The status of the network interface.

*/ inline NetworkInterface& WithStatus(const NetworkInterfaceStatus& value) { SetStatus(value); return *this;} /** *

The status of the network interface.

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

The network interface ID.

*/ inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; } /** *

The network interface ID.

*/ inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; } /** *

The network interface ID.

*/ inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; } /** *

The network interface ID.

*/ inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); } /** *

The network interface ID.

*/ inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); } /** *

The network interface ID.

*/ inline NetworkInterface& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *

The network interface ID.

*/ inline NetworkInterface& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *

The network interface ID.

*/ inline NetworkInterface& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} private: Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; NetworkInterfaceStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws