Class VirtualNetworkGatewayConnectionTunnelProperties
java.lang.Object
com.azure.resourcemanager.network.models.VirtualNetworkGatewayConnectionTunnelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualNetworkGatewayConnectionTunnelProperties>
public final class VirtualNetworkGatewayConnectionTunnelProperties
extends Object
implements com.azure.json.JsonSerializable<VirtualNetworkGatewayConnectionTunnelProperties>
The VirtualNetworkGatewayConnectionTunnelProperties model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualNetworkGatewayConnectionTunnelProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the bgpPeeringAddress property: Tunnel BGP peering address.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualNetworkGatewayConnectionTunnelProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the tunnelIpAddress property: Tunnel remote IP address.voidvalidate()Validates the instance.withBgpPeeringAddress(String bgpPeeringAddress) Set the bgpPeeringAddress property: Tunnel BGP peering address.withTunnelIpAddress(String tunnelIpAddress) Set the tunnelIpAddress property: Tunnel remote IP address.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualNetworkGatewayConnectionTunnelProperties
public VirtualNetworkGatewayConnectionTunnelProperties()Creates an instance of VirtualNetworkGatewayConnectionTunnelProperties class.
-
-
Method Details
-
tunnelIpAddress
Get the tunnelIpAddress property: Tunnel remote IP address.- Returns:
- the tunnelIpAddress value.
-
withTunnelIpAddress
Set the tunnelIpAddress property: Tunnel remote IP address.- Parameters:
tunnelIpAddress- the tunnelIpAddress value to set.- Returns:
- the VirtualNetworkGatewayConnectionTunnelProperties object itself.
-
bgpPeeringAddress
Get the bgpPeeringAddress property: Tunnel BGP peering address.- Returns:
- the bgpPeeringAddress value.
-
withBgpPeeringAddress
public VirtualNetworkGatewayConnectionTunnelProperties withBgpPeeringAddress(String bgpPeeringAddress) Set the bgpPeeringAddress property: Tunnel BGP peering address.- Parameters:
bgpPeeringAddress- the bgpPeeringAddress value to set.- Returns:
- the VirtualNetworkGatewayConnectionTunnelProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualNetworkGatewayConnectionTunnelProperties>- Throws:
IOException
-
fromJson
public static VirtualNetworkGatewayConnectionTunnelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualNetworkGatewayConnectionTunnelProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualNetworkGatewayConnectionTunnelProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the VirtualNetworkGatewayConnectionTunnelProperties.
-