Class LoadBalancerConfiguration

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

public final class LoadBalancerConfiguration extends Object implements com.azure.json.JsonSerializable<LoadBalancerConfiguration>
Describes the load balancer configuration.
  • Constructor Details

    • LoadBalancerConfiguration

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

    • id

      public String id()
      Get the id property: Resource Id.
      Returns:
      the id value.
    • withId

      public LoadBalancerConfiguration withId(String id)
      Set the id property: Resource Id.
      Parameters:
      id - the id value to set.
      Returns:
      the LoadBalancerConfiguration object itself.
    • name

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

      public LoadBalancerConfiguration withName(String name)
      Set the name property: The name of the Load balancer.
      Parameters:
      name - the name value to set.
      Returns:
      the LoadBalancerConfiguration object itself.
    • properties

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

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

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