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

Information about a virtual private gateway for a private virtual * interface.

See Also:

AWS * API Reference

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

The ID of the virtual private gateway.

*/ inline const Aws::String& GetVirtualGatewayId() const{ return m_virtualGatewayId; } /** *

The ID of the virtual private gateway.

*/ inline bool VirtualGatewayIdHasBeenSet() const { return m_virtualGatewayIdHasBeenSet; } /** *

The ID of the virtual private gateway.

*/ inline void SetVirtualGatewayId(const Aws::String& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = value; } /** *

The ID of the virtual private gateway.

*/ inline void SetVirtualGatewayId(Aws::String&& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = std::move(value); } /** *

The ID of the virtual private gateway.

*/ inline void SetVirtualGatewayId(const char* value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId.assign(value); } /** *

The ID of the virtual private gateway.

*/ inline VirtualGateway& WithVirtualGatewayId(const Aws::String& value) { SetVirtualGatewayId(value); return *this;} /** *

The ID of the virtual private gateway.

*/ inline VirtualGateway& WithVirtualGatewayId(Aws::String&& value) { SetVirtualGatewayId(std::move(value)); return *this;} /** *

The ID of the virtual private gateway.

*/ inline VirtualGateway& WithVirtualGatewayId(const char* value) { SetVirtualGatewayId(value); return *this;} /** *

The state of the virtual private gateway. The following are the possible * values:

  • pending: Initial state after creating the * virtual private gateway.

  • available: Ready for * use by a private virtual interface.

  • deleting: * Initial state after deleting the virtual private gateway.

  • * deleted: The virtual private gateway is deleted. The private * virtual interface is unable to send traffic over this gateway.

*/ inline const Aws::String& GetVirtualGatewayState() const{ return m_virtualGatewayState; } /** *

The state of the virtual private gateway. The following are the possible * values:

  • pending: Initial state after creating the * virtual private gateway.

  • available: Ready for * use by a private virtual interface.

  • deleting: * Initial state after deleting the virtual private gateway.

  • * deleted: The virtual private gateway is deleted. The private * virtual interface is unable to send traffic over this gateway.

*/ inline bool VirtualGatewayStateHasBeenSet() const { return m_virtualGatewayStateHasBeenSet; } /** *

The state of the virtual private gateway. The following are the possible * values:

  • pending: Initial state after creating the * virtual private gateway.

  • available: Ready for * use by a private virtual interface.

  • deleting: * Initial state after deleting the virtual private gateway.

  • * deleted: The virtual private gateway is deleted. The private * virtual interface is unable to send traffic over this gateway.

*/ inline void SetVirtualGatewayState(const Aws::String& value) { m_virtualGatewayStateHasBeenSet = true; m_virtualGatewayState = value; } /** *

The state of the virtual private gateway. The following are the possible * values:

  • pending: Initial state after creating the * virtual private gateway.

  • available: Ready for * use by a private virtual interface.

  • deleting: * Initial state after deleting the virtual private gateway.

  • * deleted: The virtual private gateway is deleted. The private * virtual interface is unable to send traffic over this gateway.

*/ inline void SetVirtualGatewayState(Aws::String&& value) { m_virtualGatewayStateHasBeenSet = true; m_virtualGatewayState = std::move(value); } /** *

The state of the virtual private gateway. The following are the possible * values:

  • pending: Initial state after creating the * virtual private gateway.

  • available: Ready for * use by a private virtual interface.

  • deleting: * Initial state after deleting the virtual private gateway.

  • * deleted: The virtual private gateway is deleted. The private * virtual interface is unable to send traffic over this gateway.

*/ inline void SetVirtualGatewayState(const char* value) { m_virtualGatewayStateHasBeenSet = true; m_virtualGatewayState.assign(value); } /** *

The state of the virtual private gateway. The following are the possible * values:

  • pending: Initial state after creating the * virtual private gateway.

  • available: Ready for * use by a private virtual interface.

  • deleting: * Initial state after deleting the virtual private gateway.

  • * deleted: The virtual private gateway is deleted. The private * virtual interface is unable to send traffic over this gateway.

*/ inline VirtualGateway& WithVirtualGatewayState(const Aws::String& value) { SetVirtualGatewayState(value); return *this;} /** *

The state of the virtual private gateway. The following are the possible * values:

  • pending: Initial state after creating the * virtual private gateway.

  • available: Ready for * use by a private virtual interface.

  • deleting: * Initial state after deleting the virtual private gateway.

  • * deleted: The virtual private gateway is deleted. The private * virtual interface is unable to send traffic over this gateway.

*/ inline VirtualGateway& WithVirtualGatewayState(Aws::String&& value) { SetVirtualGatewayState(std::move(value)); return *this;} /** *

The state of the virtual private gateway. The following are the possible * values:

  • pending: Initial state after creating the * virtual private gateway.

  • available: Ready for * use by a private virtual interface.

  • deleting: * Initial state after deleting the virtual private gateway.

  • * deleted: The virtual private gateway is deleted. The private * virtual interface is unable to send traffic over this gateway.

*/ inline VirtualGateway& WithVirtualGatewayState(const char* value) { SetVirtualGatewayState(value); return *this;} private: Aws::String m_virtualGatewayId; bool m_virtualGatewayIdHasBeenSet = false; Aws::String m_virtualGatewayState; bool m_virtualGatewayStateHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws