Class LoadBalancerSku
java.lang.Object
com.azure.resourcemanager.network.models.LoadBalancerSku
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LoadBalancerSku>
public final class LoadBalancerSku
extends Object
implements com.azure.json.JsonSerializable<LoadBalancerSku>
SKU of a load balancer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LoadBalancerSkufromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancerSku from the JsonReader.name()Get the name property: Name of a load balancer SKU.tier()Get the tier property: Tier of a load balancer SKU.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withName(LoadBalancerSkuName name) Set the name property: Name of a load balancer SKU.withTier(LoadBalancerSkuTier tier) Set the tier property: Tier of a load balancer SKU.Methods inherited from class java.lang.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
-
LoadBalancerSku
public LoadBalancerSku()Creates an instance of LoadBalancerSku class.
-
-
Method Details
-
name
Get the name property: Name of a load balancer SKU.- Returns:
- the name value.
-
withName
Set the name property: Name of a load balancer SKU.- Parameters:
name- the name value to set.- Returns:
- the LoadBalancerSku object itself.
-
tier
Get the tier property: Tier of a load balancer SKU.- Returns:
- the tier value.
-
withTier
Set the tier property: Tier of a load balancer SKU.- Parameters:
tier- the tier value to set.- Returns:
- the LoadBalancerSku 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<LoadBalancerSku>- Throws:
IOException
-
fromJson
Reads an instance of LoadBalancerSku from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LoadBalancerSku 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 LoadBalancerSku.
-