Class NetworkVirtualApplianceConnectionInner

java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceConnectionInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>

public final class NetworkVirtualApplianceConnectionInner extends com.azure.core.management.SubResource
NetworkVirtualApplianceConnection resource.
  • Constructor Details

    • NetworkVirtualApplianceConnectionInner

      public NetworkVirtualApplianceConnectionInner()
      Creates an instance of NetworkVirtualApplianceConnectionInner 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 NetworkVirtualApplianceConnectionInner object itself.
    • withId

      Overrides:
      withId in class com.azure.core.management.SubResource
    • namePropertiesName

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

      public NetworkVirtualApplianceConnectionInner withNamePropertiesName(String name)
      Set the name property: The name of the resource.
      Parameters:
      name - the name value to set.
      Returns:
      the NetworkVirtualApplianceConnectionInner 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 NetworkVirtualApplianceConnectionInner object itself.
    • tunnelIdentifier

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

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

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

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

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

      public NetworkVirtualApplianceConnectionInner withEnableInternetSecurity(Boolean enableInternetSecurity)
      Set the enableInternetSecurity property: Enable internet security.
      Parameters:
      enableInternetSecurity - the enableInternetSecurity value to set.
      Returns:
      the NetworkVirtualApplianceConnectionInner 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 NetworkVirtualApplianceConnectionInner 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 NetworkVirtualApplianceConnectionInner 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<com.azure.core.management.SubResource>
      Overrides:
      toJson in class com.azure.core.management.SubResource
      Throws:
      IOException
    • fromJson

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