Class LoadBalancerFrontendIpConfiguration

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

public final class LoadBalancerFrontendIpConfiguration extends Object implements com.azure.json.JsonSerializable<LoadBalancerFrontendIpConfiguration>
Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.
  • Constructor Details

    • LoadBalancerFrontendIpConfiguration

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

    • name

      public String name()
      Get the name property: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.
      Returns:
      the name value.
    • withName

      Set the name property: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.
      Parameters:
      name - the name value to set.
      Returns:
      the LoadBalancerFrontendIpConfiguration object itself.
    • properties

      Get the properties property: Properties of load balancer frontend ip configuration.
      Returns:
      the properties value.
    • withProperties

      Set the properties property: Properties of load balancer frontend ip configuration.
      Parameters:
      properties - the properties value to set.
      Returns:
      the LoadBalancerFrontendIpConfiguration 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<LoadBalancerFrontendIpConfiguration>
      Throws:
      IOException
    • fromJson

      public static LoadBalancerFrontendIpConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LoadBalancerFrontendIpConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LoadBalancerFrontendIpConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the LoadBalancerFrontendIpConfiguration.