Class LoadBalancerConfigurationProperties
java.lang.Object
com.azure.resourcemanager.compute.models.LoadBalancerConfigurationProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LoadBalancerConfigurationProperties>
public final class LoadBalancerConfigurationProperties
extends Object
implements com.azure.json.JsonSerializable<LoadBalancerConfigurationProperties>
Describes the properties of the load balancer configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LoadBalancerConfigurationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancerConfigurationProperties from the JsonReader.Get the frontendIpConfigurations property: Specifies the frontend IP to be used for the load balancer.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withFrontendIpConfigurations(List<LoadBalancerFrontendIpConfiguration> frontendIpConfigurations) Set the frontendIpConfigurations property: Specifies the frontend IP to be used for the load balancer.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LoadBalancerConfigurationProperties
public LoadBalancerConfigurationProperties()Creates an instance of LoadBalancerConfigurationProperties class.
-
-
Method Details
-
frontendIpConfigurations
Get the frontendIpConfigurations property: 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.- Returns:
- the frontendIpConfigurations value.
-
withFrontendIpConfigurations
public LoadBalancerConfigurationProperties withFrontendIpConfigurations(List<LoadBalancerFrontendIpConfiguration> frontendIpConfigurations) Set the frontendIpConfigurations property: 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.- Parameters:
frontendIpConfigurations- the frontendIpConfigurations value to set.- Returns:
- the LoadBalancerConfigurationProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LoadBalancerConfigurationProperties>- Throws:
IOException
-
fromJson
public static LoadBalancerConfigurationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LoadBalancerConfigurationProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LoadBalancerConfigurationProperties 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 LoadBalancerConfigurationProperties.
-