SkuInformationInner Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.fluent.models.SkuInformationInner

Implements

public final class SkuInformationInner
implements JsonSerializable<SkuInformationInner>

Storage SKU and its properties.

Constructor Summary

Constructor Description
SkuInformationInner()

Creates an instance of SkuInformationInner class.

Method Summary

Modifier and Type Method and Description
List<SkuCapability> capabilities()

Get the capabilities property: The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc.

static SkuInformationInner fromJson(JsonReader jsonReader)

Reads an instance of SkuInformationInner from the JsonReader.

Kind kind()

Get the kind property: Indicates the type of storage account.

List<String> locations()

Get the locations property: The set of locations that the SKU is available.

SkuName name()

Get the name property: The SKU name.

String resourceType()

Get the resourceType property: The type of the resource, usually it is 'storageAccounts'.

List<Restriction> restrictions()

Get the restrictions property: The restrictions because of which SKU cannot be used.

SkuTier tier()

Get the tier property: The SKU tier.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SkuInformationInner withName(SkuName name)

Set the name property: The SKU name.

SkuInformationInner withRestrictions(List<Restriction> restrictions)

Set the restrictions property: The restrictions because of which SKU cannot be used.

Methods inherited from java.lang.Object

Constructor Details

SkuInformationInner

public SkuInformationInner()

Creates an instance of SkuInformationInner class.

Method Details

capabilities

public List capabilities()

Get the capabilities property: The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc.

Returns:

the capabilities value.

fromJson

public static SkuInformationInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

kind

public Kind kind()

Get the kind property: Indicates the type of storage account.

Returns:

the kind value.

locations

public List 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.

name

public SkuName 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.

resourceType

public String resourceType()

Get the resourceType property: The type of the resource, usually it is 'storageAccounts'.

Returns:

the resourceType value.

restrictions

public List 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.

tier

public SkuTier tier()

Get the tier property: The SKU tier. This is based on the SKU name.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public SkuInformationInner withName(SkuName name)

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.

withRestrictions

public SkuInformationInner withRestrictions(List restrictions)

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.

Applies to