Class SkuInfosInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.SkuInfosInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SkuInfosInner>
public final class SkuInfosInner
extends Object
implements com.azure.json.JsonSerializable<SkuInfosInner>
Collection of SKU information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SkuInfosInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SkuInfosInner from the JsonReader.Get the resourceType property: Resource type that this SKU applies to.skus()
Get the skus property: List of SKUs the subscription is able to use.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withResourceType
(String resourceType) Set the resourceType property: Resource type that this SKU applies to.withSkus
(List<GlobalCsmSkuDescription> skus) Set the skus property: List of SKUs the subscription is able to use.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SkuInfosInner
public SkuInfosInner()Creates an instance of SkuInfosInner class.
-
-
Method Details
-
resourceType
Get the resourceType property: Resource type that this SKU applies to.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: Resource type that this SKU applies to.- Parameters:
resourceType
- the resourceType value to set.- Returns:
- the SkuInfosInner object itself.
-
skus
Get the skus property: List of SKUs the subscription is able to use.- Returns:
- the skus value.
-
withSkus
Set the skus property: List of SKUs the subscription is able to use.- Parameters:
skus
- the skus value to set.- Returns:
- the SkuInfosInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<SkuInfosInner>
- Throws:
IOException
-
fromJson
Reads an instance of SkuInfosInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SkuInfosInner 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 SkuInfosInner.
-