Class SkuInformationInner
java.lang.Object
com.azure.resourcemanager.storage.fluent.models.SkuInformationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SkuInformationInner>
public final class SkuInformationInner
extends Object
implements com.azure.json.JsonSerializable<SkuInformationInner>
Storage SKU and its properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the capabilities property: The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc.static SkuInformationInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SkuInformationInner from the JsonReader.kind()Get the kind property: Indicates the type of storage account.Get the locationInfo property: The locationInfo property.Get the locations property: The set of locations that the SKU is available.name()Get the name property: The SKU name.Get the resourceType property: The type of the resource, usually it is 'storageAccounts'.Get the restrictions property: The restrictions because of which SKU cannot be used.tier()Get the tier property: The SKU tier.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLocationInfo(List<SkuInformationLocationInfoItem> locationInfo) Set the locationInfo property: The locationInfo property.Set the name property: The SKU name.withRestrictions(List<Restriction> restrictions) Set the restrictions property: The restrictions because of which SKU cannot be used.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
-
SkuInformationInner
public SkuInformationInner()Creates an instance of SkuInformationInner class.
-
-
Method Details
-
name
Get the name property: The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType.- Returns:
- the name value.
-
withName
Set the name property: The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType.- Parameters:
name- the name value to set.- Returns:
- the SkuInformationInner object itself.
-
tier
Get the tier property: The SKU tier. This is based on the SKU name.- Returns:
- the tier value.
-
resourceType
Get the resourceType property: The type of the resource, usually it is 'storageAccounts'.- Returns:
- the resourceType value.
-
kind
Get the kind property: Indicates the type of storage account.- Returns:
- the kind value.
-
locations
Get the locations property: The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.).- Returns:
- the locations value.
-
locationInfo
Get the locationInfo property: The locationInfo property.- Returns:
- the locationInfo value.
-
withLocationInfo
Set the locationInfo property: The locationInfo property.- Parameters:
locationInfo- the locationInfo value to set.- Returns:
- the SkuInformationInner object itself.
-
capabilities
Get the capabilities property: The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc.- Returns:
- the capabilities value.
-
restrictions
Get the restrictions property: The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.- Returns:
- the restrictions value.
-
withRestrictions
Set the restrictions property: The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.- Parameters:
restrictions- the restrictions value to set.- Returns:
- the SkuInformationInner 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<SkuInformationInner>- Throws:
IOException
-
fromJson
Reads an instance of SkuInformationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SkuInformationInner 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 SkuInformationInner.
-