ResourceSku Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. ResourceSku
- com.
Implements
public final class ResourceSku
implements JsonSerializable<ResourceSku>
Describes an available Azure Spring Apps SKU.
Constructor Summary
Constructor | Description |
---|---|
ResourceSku() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
Sku |
capacity()
Get the capacity property: Gets the capacity of SKU. |
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
List<Resource |
locationInfo()
Get the location |
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 resource |
List<Resource |
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. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
withCapacity(SkuCapacity capacity)
Set the capacity property: Gets the capacity of SKU. |
Resource |
withLocationInfo(List<ResourceSkuLocationInfo> locationInfo)
Set the location |
Resource |
withLocations(List<String> locations)
Set the locations property: Gets the set of locations that the SKU is available. |
Resource |
withName(String name)
Set the name property: Gets the name of SKU. |
Resource |
withResourceType(String resourceType)
Set the resource |
Resource |
withRestrictions(List<ResourceSkuRestrictions> restrictions)
Set the restrictions property: Gets the restrictions because of which SKU cannot be used. |
Resource |
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:
fromJson
public static ResourceSku fromJson(JsonReader jsonReader)
Reads an instance of ResourceSku from the JsonReader.
Parameters:
Returns:
Throws:
locationInfo
public List
Get the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.
Returns:
locations
public List
Get the locations property: Gets the set of locations that the SKU is available.
Returns:
name
public String name()
Get the name property: Gets the name of SKU.
Returns:
resourceType
public String resourceType()
Get the resourceType property: Gets the type of resource the SKU applies to.
Returns:
restrictions
public List
Get the restrictions property: Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
Returns:
tier
public String tier()
Get the tier property: Gets the tier of SKU.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCapacity
public ResourceSku withCapacity(SkuCapacity capacity)
Set the capacity property: Gets the capacity of SKU.
Parameters:
Returns:
withLocationInfo
public ResourceSku withLocationInfo(List
Set the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.
Parameters:
Returns:
withLocations
public ResourceSku withLocations(List
Set the locations property: Gets the set of locations that the SKU is available.
Parameters:
Returns:
withName
public ResourceSku withName(String name)
Set the name property: Gets the name of SKU.
Parameters:
Returns:
withResourceType
public ResourceSku withResourceType(String resourceType)
Set the resourceType property: Gets the type of resource the SKU applies to.
Parameters:
Returns:
withRestrictions
public ResourceSku withRestrictions(List
Set the restrictions property: Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
Parameters:
Returns:
withTier
public ResourceSku withTier(String tier)
Set the tier property: Gets the tier of SKU.
Parameters:
Returns:
Applies to
Azure SDK for Java