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 Summary
ConstructorsConstructorDescriptionCreates an instance of LoadBalancerFrontendIpConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancerFrontendIpConfiguration from the JsonReader.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.Get the properties property: Properties of load balancer frontend ip configuration.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the name property: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer.Set the properties property: Properties of load balancer frontend ip configuration.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
-
LoadBalancerFrontendIpConfiguration
public LoadBalancerFrontendIpConfiguration()Creates an instance of LoadBalancerFrontendIpConfiguration class.
-
-
Method Details
-
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
public LoadBalancerFrontendIpConfiguration withProperties(LoadBalancerFrontendIpConfigurationProperties properties) 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
- Specified by:
toJsonin interfacecom.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.
-