Class LoadBalancerBackendAddress

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

public final class LoadBalancerBackendAddress extends Object implements com.azure.json.JsonSerializable<LoadBalancerBackendAddress>
Load balancer backend addresses.
  • Constructor Details

    • LoadBalancerBackendAddress

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

    • name

      public String name()
      Get the name property: Name of the backend address.
      Returns:
      the name value.
    • withName

      public LoadBalancerBackendAddress withName(String name)
      Set the name property: Name of the backend address.
      Parameters:
      name - the name value to set.
      Returns:
      the LoadBalancerBackendAddress object itself.
    • virtualNetwork

      public com.azure.core.management.SubResource virtualNetwork()
      Get the virtualNetwork property: Reference to an existing virtual network.
      Returns:
      the virtualNetwork value.
    • withVirtualNetwork

      public LoadBalancerBackendAddress withVirtualNetwork(com.azure.core.management.SubResource virtualNetwork)
      Set the virtualNetwork property: Reference to an existing virtual network.
      Parameters:
      virtualNetwork - the virtualNetwork value to set.
      Returns:
      the LoadBalancerBackendAddress object itself.
    • subnet

      public com.azure.core.management.SubResource subnet()
      Get the subnet property: Reference to an existing subnet.
      Returns:
      the subnet value.
    • withSubnet

      public LoadBalancerBackendAddress withSubnet(com.azure.core.management.SubResource subnet)
      Set the subnet property: Reference to an existing subnet.
      Parameters:
      subnet - the subnet value to set.
      Returns:
      the LoadBalancerBackendAddress object itself.
    • ipAddress

      public String ipAddress()
      Get the ipAddress property: IP Address belonging to the referenced virtual network.
      Returns:
      the ipAddress value.
    • withIpAddress

      public LoadBalancerBackendAddress withIpAddress(String ipAddress)
      Set the ipAddress property: IP Address belonging to the referenced virtual network.
      Parameters:
      ipAddress - the ipAddress value to set.
      Returns:
      the LoadBalancerBackendAddress object itself.
    • networkInterfaceIpConfiguration

      public com.azure.core.management.SubResource networkInterfaceIpConfiguration()
      Get the networkInterfaceIpConfiguration property: Reference to IP address defined in network interfaces.
      Returns:
      the networkInterfaceIpConfiguration value.
    • loadBalancerFrontendIpConfiguration

      public com.azure.core.management.SubResource loadBalancerFrontendIpConfiguration()
      Get the loadBalancerFrontendIpConfiguration property: Reference to the frontend ip address configuration defined in regional loadbalancer.
      Returns:
      the loadBalancerFrontendIpConfiguration value.
    • withLoadBalancerFrontendIpConfiguration

      public LoadBalancerBackendAddress withLoadBalancerFrontendIpConfiguration(com.azure.core.management.SubResource loadBalancerFrontendIpConfiguration)
      Set the loadBalancerFrontendIpConfiguration property: Reference to the frontend ip address configuration defined in regional loadbalancer.
      Parameters:
      loadBalancerFrontendIpConfiguration - the loadBalancerFrontendIpConfiguration value to set.
      Returns:
      the LoadBalancerBackendAddress object itself.
    • inboundNatRulesPortMapping

      public List<NatRulePortMapping> inboundNatRulesPortMapping()
      Get the inboundNatRulesPortMapping property: Collection of inbound NAT rule port mappings.
      Returns:
      the inboundNatRulesPortMapping value.
    • adminState

      Get the adminState property: A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing connections.
      Returns:
      the adminState value.
    • withAdminState

      Set the adminState property: A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing connections.
      Parameters:
      adminState - the adminState value to set.
      Returns:
      the LoadBalancerBackendAddress 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<LoadBalancerBackendAddress>
      Throws:
      IOException
    • fromJson

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