다음을 통해 공유


ResourceSku Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.ResourceSku

Implements

public final class ResourceSku
implements JsonSerializable<ResourceSku>

Describes an available Azure Spring Apps SKU.

Constructor Summary

Constructor Description
ResourceSku()

Creates an instance of ResourceSku class.

Method Summary

Modifier and Type Method and Description
SkuCapacity capacity()

Get the capacity property: Gets the capacity of SKU.

static ResourceSku fromJson(JsonReader jsonReader)

Reads an instance of ResourceSku from the JsonReader.

List<ResourceSkuLocationInfo> locationInfo()

Get the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.

List<String> locations()

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

String name()

Get the name property: Gets the name of SKU.

String resourceType()

Get the resourceType property: Gets the type of resource the SKU applies to.

List<ResourceSkuRestrictions> restrictions()

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

String tier()

Get the tier property: Gets the tier of SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceSku withCapacity(SkuCapacity capacity)

Set the capacity property: Gets the capacity of SKU.

ResourceSku withLocationInfo(List<ResourceSkuLocationInfo> locationInfo)

Set the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.

ResourceSku withLocations(List<String> locations)

Set the locations property: Gets the set of locations that the SKU is available.

ResourceSku withName(String name)

Set the name property: Gets the name of SKU.

ResourceSku withResourceType(String resourceType)

Set the resourceType property: Gets the type of resource the SKU applies to.

ResourceSku withRestrictions(List<ResourceSkuRestrictions> restrictions)

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

ResourceSku withTier(String tier)

Set the tier property: Gets the tier of SKU.

Methods inherited from java.lang.Object

Constructor Details

ResourceSku

public ResourceSku()

Creates an instance of ResourceSku class.

Method Details

capacity

public SkuCapacity capacity()

Get the capacity property: Gets the capacity of SKU.

Returns:

the capacity value.

fromJson

public static ResourceSku fromJson(JsonReader jsonReader)

Reads an instance of ResourceSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceSku 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 ResourceSku.

locationInfo

public List locationInfo()

Get the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.

Returns:

the locationInfo value.

locations

public List locations()

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

Returns:

the locations value.

name

public String name()

Get the name property: Gets the name of SKU.

Returns:

the name value.

resourceType

public String resourceType()

Get the resourceType property: Gets the type of resource the SKU applies to.

Returns:

the resourceType value.

restrictions

public List restrictions()

Get the restrictions property: Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions.

Returns:

the restrictions value.

tier

public String tier()

Get the tier property: Gets the tier of SKU.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCapacity

public ResourceSku withCapacity(SkuCapacity capacity)

Set the capacity property: Gets the capacity of SKU.

Parameters:

capacity - the capacity value to set.

Returns:

the ResourceSku object itself.

withLocationInfo

public ResourceSku withLocationInfo(List locationInfo)

Set the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.

Parameters:

locationInfo - the locationInfo value to set.

Returns:

the ResourceSku object itself.

withLocations

public ResourceSku withLocations(List locations)

Set the locations property: Gets the set of locations that the SKU is available.

Parameters:

locations - the locations value to set.

Returns:

the ResourceSku object itself.

withName

public ResourceSku withName(String name)

Set the name property: Gets the name of SKU.

Parameters:

name - the name value to set.

Returns:

the ResourceSku object itself.

withResourceType

public ResourceSku withResourceType(String resourceType)

Set the resourceType property: Gets the type of resource the SKU applies to.

Parameters:

resourceType - the resourceType value to set.

Returns:

the ResourceSku object itself.

withRestrictions

public ResourceSku withRestrictions(List restrictions)

Set the restrictions property: Gets 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 ResourceSku object itself.

withTier

public ResourceSku withTier(String tier)

Set the tier property: Gets the tier of SKU.

Parameters:

tier - the tier value to set.

Returns:

the ResourceSku object itself.

Applies to