Class BackendAddressPoolPropertiesFormat

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

public final class BackendAddressPoolPropertiesFormat extends Object implements com.azure.json.JsonSerializable<BackendAddressPoolPropertiesFormat>
Properties of the backend address pool.
  • Constructor Details

    • BackendAddressPoolPropertiesFormat

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

    • location

      public String location()
      Get the location property: The location of the backend address pool.
      Returns:
      the location value.
    • withLocation

      public BackendAddressPoolPropertiesFormat withLocation(String location)
      Set the location property: The location of the backend address pool.
      Parameters:
      location - the location value to set.
      Returns:
      the BackendAddressPoolPropertiesFormat object itself.
    • tunnelInterfaces

      public List<GatewayLoadBalancerTunnelInterface> tunnelInterfaces()
      Get the tunnelInterfaces property: An array of gateway load balancer tunnel interfaces.
      Returns:
      the tunnelInterfaces value.
    • withTunnelInterfaces

      public BackendAddressPoolPropertiesFormat withTunnelInterfaces(List<GatewayLoadBalancerTunnelInterface> tunnelInterfaces)
      Set the tunnelInterfaces property: An array of gateway load balancer tunnel interfaces.
      Parameters:
      tunnelInterfaces - the tunnelInterfaces value to set.
      Returns:
      the BackendAddressPoolPropertiesFormat object itself.
    • loadBalancerBackendAddresses

      public List<LoadBalancerBackendAddress> loadBalancerBackendAddresses()
      Get the loadBalancerBackendAddresses property: An array of backend addresses.
      Returns:
      the loadBalancerBackendAddresses value.
    • withLoadBalancerBackendAddresses

      public BackendAddressPoolPropertiesFormat withLoadBalancerBackendAddresses(List<LoadBalancerBackendAddress> loadBalancerBackendAddresses)
      Set the loadBalancerBackendAddresses property: An array of backend addresses.
      Parameters:
      loadBalancerBackendAddresses - the loadBalancerBackendAddresses value to set.
      Returns:
      the BackendAddressPoolPropertiesFormat object itself.
    • backendIpConfigurations

      public List<NetworkInterfaceIpConfigurationInner> backendIpConfigurations()
      Get the backendIpConfigurations property: An array of references to IP addresses defined in network interfaces.
      Returns:
      the backendIpConfigurations value.
    • loadBalancingRules

      public List<com.azure.core.management.SubResource> loadBalancingRules()
      Get the loadBalancingRules property: An array of references to load balancing rules that use this backend address pool.
      Returns:
      the loadBalancingRules value.
    • outboundRule

      public com.azure.core.management.SubResource outboundRule()
      Get the outboundRule property: A reference to an outbound rule that uses this backend address pool.
      Returns:
      the outboundRule value.
    • outboundRules

      public List<com.azure.core.management.SubResource> outboundRules()
      Get the outboundRules property: An array of references to outbound rules that use this backend address pool.
      Returns:
      the outboundRules value.
    • inboundNatRules

      public List<com.azure.core.management.SubResource> inboundNatRules()
      Get the inboundNatRules property: An array of references to inbound NAT rules that use this backend address pool.
      Returns:
      the inboundNatRules value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the backend address pool resource.
      Returns:
      the provisioningState value.
    • drainPeriodInSeconds

      public Integer drainPeriodInSeconds()
      Get the drainPeriodInSeconds property: Amount of seconds Load Balancer waits for before sending RESET to client and backend address.
      Returns:
      the drainPeriodInSeconds value.
    • withDrainPeriodInSeconds

      public BackendAddressPoolPropertiesFormat withDrainPeriodInSeconds(Integer drainPeriodInSeconds)
      Set the drainPeriodInSeconds property: Amount of seconds Load Balancer waits for before sending RESET to client and backend address.
      Parameters:
      drainPeriodInSeconds - the drainPeriodInSeconds value to set.
      Returns:
      the BackendAddressPoolPropertiesFormat object itself.
    • virtualNetwork

      public com.azure.core.management.SubResource virtualNetwork()
      Get the virtualNetwork property: A reference to a virtual network.
      Returns:
      the virtualNetwork value.
    • withVirtualNetwork

      public BackendAddressPoolPropertiesFormat withVirtualNetwork(com.azure.core.management.SubResource virtualNetwork)
      Set the virtualNetwork property: A reference to a virtual network.
      Parameters:
      virtualNetwork - the virtualNetwork value to set.
      Returns:
      the BackendAddressPoolPropertiesFormat object itself.
    • syncMode

      public SyncMode syncMode()
      Get the syncMode property: Backend address synchronous mode for the backend pool.
      Returns:
      the syncMode value.
    • withSyncMode

      public BackendAddressPoolPropertiesFormat withSyncMode(SyncMode syncMode)
      Set the syncMode property: Backend address synchronous mode for the backend pool.
      Parameters:
      syncMode - the syncMode value to set.
      Returns:
      the BackendAddressPoolPropertiesFormat 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<BackendAddressPoolPropertiesFormat>
      Throws:
      IOException
    • fromJson

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