Class NetworkVirtualApplianceConnectionProperties

java.lang.Object
com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceConnectionProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkVirtualApplianceConnectionProperties>

public final class NetworkVirtualApplianceConnectionProperties extends Object implements com.azure.json.JsonSerializable<NetworkVirtualApplianceConnectionProperties>
Properties of the NetworkVirtualApplianceConnection subresource.
  • Constructor Details

    • NetworkVirtualApplianceConnectionProperties

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

    • name

      public String name()
      Get the name property: The name of the resource.
      Returns:
      the name value.
    • withName

      Set the name property: The name of the resource.
      Parameters:
      name - the name value to set.
      Returns:
      the NetworkVirtualApplianceConnectionProperties object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the NetworkVirtualApplianceConnection resource.
      Returns:
      the provisioningState value.
    • asn

      public Long asn()
      Get the asn property: Network Virtual Appliance ASN.
      Returns:
      the asn value.
    • withAsn

      Set the asn property: Network Virtual Appliance ASN.
      Parameters:
      asn - the asn value to set.
      Returns:
      the NetworkVirtualApplianceConnectionProperties object itself.
    • tunnelIdentifier

      public Long tunnelIdentifier()
      Get the tunnelIdentifier property: Unique identifier for the connection.
      Returns:
      the tunnelIdentifier value.
    • withTunnelIdentifier

      public NetworkVirtualApplianceConnectionProperties withTunnelIdentifier(Long tunnelIdentifier)
      Set the tunnelIdentifier property: Unique identifier for the connection.
      Parameters:
      tunnelIdentifier - the tunnelIdentifier value to set.
      Returns:
      the NetworkVirtualApplianceConnectionProperties object itself.
    • bgpPeerAddress

      public List<String> bgpPeerAddress()
      Get the bgpPeerAddress property: List of bgpPeerAddresses for the NVA instances.
      Returns:
      the bgpPeerAddress value.
    • withBgpPeerAddress

      public NetworkVirtualApplianceConnectionProperties withBgpPeerAddress(List<String> bgpPeerAddress)
      Set the bgpPeerAddress property: List of bgpPeerAddresses for the NVA instances.
      Parameters:
      bgpPeerAddress - the bgpPeerAddress value to set.
      Returns:
      the NetworkVirtualApplianceConnectionProperties object itself.
    • enableInternetSecurity

      public Boolean enableInternetSecurity()
      Get the enableInternetSecurity property: Enable internet security.
      Returns:
      the enableInternetSecurity value.
    • withEnableInternetSecurity

      public NetworkVirtualApplianceConnectionProperties withEnableInternetSecurity(Boolean enableInternetSecurity)
      Set the enableInternetSecurity property: Enable internet security.
      Parameters:
      enableInternetSecurity - the enableInternetSecurity value to set.
      Returns:
      the NetworkVirtualApplianceConnectionProperties object itself.
    • routingConfiguration

      public RoutingConfiguration routingConfiguration()
      Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.
      Returns:
      the routingConfiguration value.
    • withRoutingConfiguration

      public NetworkVirtualApplianceConnectionProperties withRoutingConfiguration(RoutingConfiguration routingConfiguration)
      Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route tables on this connection.
      Parameters:
      routingConfiguration - the routingConfiguration value to set.
      Returns:
      the NetworkVirtualApplianceConnectionProperties 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<NetworkVirtualApplianceConnectionProperties>
      Throws:
      IOException
    • fromJson

      public static NetworkVirtualApplianceConnectionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NetworkVirtualApplianceConnectionProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NetworkVirtualApplianceConnectionProperties 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 NetworkVirtualApplianceConnectionProperties.