Class ResourceSku
- java.lang.Object
-
- com.azure.resourcemanager.appplatform.models.ResourceSku
-
public final class ResourceSku extends Object
Describes an available Azure Spring Cloud SKU.
-
-
Constructor Summary
Constructors Constructor Description ResourceSku()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SkuCapacitycapacity()Get the capacity property: Gets the capacity of SKU.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.Stringname()Get the name property: Gets the name of SKU.StringresourceType()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.Stringtier()Get the tier property: Gets the tier of SKU.voidvalidate()Validates the instance.ResourceSkuwithCapacity(SkuCapacity capacity)Set the capacity property: Gets the capacity of SKU.ResourceSkuwithLocationInfo(List<ResourceSkuLocationInfo> locationInfo)Set the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.ResourceSkuwithLocations(List<String> locations)Set the locations property: Gets the set of locations that the SKU is available.ResourceSkuwithName(String name)Set the name property: Gets the name of SKU.ResourceSkuwithResourceType(String resourceType)Set the resourceType property: Gets the type of resource the SKU applies to.ResourceSkuwithRestrictions(List<ResourceSkuRestrictions> restrictions)Set the restrictions property: Gets the restrictions because of which SKU cannot be used.ResourceSkuwithTier(String tier)Set the tier property: Gets the tier of SKU.
-
-
-
Method Detail
-
resourceType
public String resourceType()
Get the resourceType property: Gets the type of resource the SKU applies to.- Returns:
- the resourceType value.
-
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.
-
name
public String name()
Get the name property: Gets the name of SKU.- Returns:
- the name value.
-
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.
-
tier
public String tier()
Get the tier property: Gets the tier of SKU.- Returns:
- the tier value.
-
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.
-
capacity
public SkuCapacity capacity()
Get the capacity property: Gets the capacity of SKU.- Returns:
- the capacity value.
-
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.
-
locations
public List<String> locations()
Get the locations property: Gets the set of locations that the SKU is available.- Returns:
- the locations value.
-
withLocations
public ResourceSku withLocations(List<String> 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.
-
locationInfo
public List<ResourceSkuLocationInfo> 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
public 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.- Parameters:
locationInfo- the locationInfo value to set.- Returns:
- the ResourceSku object itself.
-
restrictions
public List<ResourceSkuRestrictions> 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
public ResourceSku withRestrictions(List<ResourceSkuRestrictions> 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-