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 Details

    • VirtualNetworkGatewayConnectionTunnelProperties

      public VirtualNetworkGatewayConnectionTunnelProperties()
      Creates an instance of VirtualNetworkGatewayConnectionTunnelProperties class.
  • Method Details

    • tunnelIpAddress

      public String tunnelIpAddress()
      Get the tunnelIpAddress property: Tunnel remote IP address.
      Returns:
      the tunnelIpAddress value.
    • withTunnelIpAddress

      public VirtualNetworkGatewayConnectionTunnelProperties withTunnelIpAddress(String tunnelIpAddress)
      Set the tunnelIpAddress property: Tunnel remote IP address.
      Parameters:
      tunnelIpAddress - the tunnelIpAddress value to set.
      Returns:
      the VirtualNetworkGatewayConnectionTunnelProperties object itself.
    • bgpPeeringAddress

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.