Class ResourceSku
java.lang.Object
com.azure.resourcemanager.appplatform.models.ResourceSku
Describes an available Azure Spring Apps SKU.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncapacity()Get the capacity property: Gets the capacity of SKU.Get the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.Get the locations property: Gets the set of locations that the SKU is available.name()Get the name property: Gets the name of SKU.Get the resourceType property: Gets the type of resource the SKU applies to.Get the restrictions property: Gets the restrictions because of which SKU cannot be used.tier()Get the tier property: Gets the tier of SKU.voidvalidate()Validates the instance.withCapacity(SkuCapacity capacity) Set the capacity property: Gets the capacity of SKU.withLocationInfo(List<ResourceSkuLocationInfo> locationInfo) Set the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.withLocations(List<String> locations) Set the locations property: Gets the set of locations that the SKU is available.Set the name property: Gets the name of SKU.withResourceType(String resourceType) Set the resourceType property: Gets the type of resource the SKU applies to.withRestrictions(List<ResourceSkuRestrictions> restrictions) Set the restrictions property: Gets the restrictions because of which SKU cannot be used.Set the tier property: Gets the tier of SKU.
-
Constructor Details
-
ResourceSku
public ResourceSku()Creates an instance of ResourceSku class.
-
-
Method Details
-
resourceType
Get the resourceType property: Gets the type of resource the SKU applies to.- Returns:
- the resourceType value.
-
withResourceType
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.
-
name
Get the name property: Gets the name of SKU.- Returns:
- the name value.
-
withName
Set the name property: Gets the name of SKU.- Parameters:
name- the name value to set.- Returns:
- the ResourceSku object itself.
-
tier
Get the tier property: Gets the tier of SKU.- Returns:
- the tier value.
-
withTier
Set the tier property: Gets the tier of SKU.- Parameters:
tier- the tier value to set.- Returns:
- the ResourceSku object itself.
-
capacity
Get the capacity property: Gets the capacity of SKU.- Returns:
- the capacity value.
-
withCapacity
Set the capacity property: Gets the capacity of SKU.- Parameters:
capacity- the capacity value to set.- Returns:
- the ResourceSku object itself.
-
locations
Get the locations property: Gets the set of locations that the SKU is available.- Returns:
- the locations value.
-
withLocations
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.
-
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.
-
withLocationInfo
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.
-
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.
-
withRestrictions
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-