SkuDescription Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. SkuDescription
- com.
Implements
public final class SkuDescription
implements JsonSerializable<SkuDescription>
Description of a SKU for a scalable resource.
Constructor Summary
Constructor | Description |
---|---|
SkuDescription() |
Creates an instance of Sku |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Capability |
capabilities()
Get the capabilities property: Capabilities of the SKU, e. |
Integer |
capacity()
Get the capacity property: Current number of instances assigned to the resource. |
String |
family()
Get the family property: Family code of the resource SKU. |
static
Sku |
fromJson(JsonReader jsonReader)
Reads an instance of Sku |
List<String> |
locations()
Get the locations property: Locations of the SKU. |
String |
name()
Get the name property: Name of the resource SKU. |
String |
size()
Get the size property: Size specifier of the resource SKU. |
Sku |
skuCapacity()
Get the sku |
String |
tier()
Get the tier property: Service tier of the resource SKU. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Sku |
withCapabilities(List<CapabilityInner> capabilities)
Set the capabilities property: Capabilities of the SKU, e. |
Sku |
withCapacity(Integer capacity)
Set the capacity property: Current number of instances assigned to the resource. |
Sku |
withFamily(String family)
Set the family property: Family code of the resource SKU. |
Sku |
withLocations(List<String> locations)
Set the locations property: Locations of the SKU. |
Sku |
withName(String name)
Set the name property: Name of the resource SKU. |
Sku |
withSize(String size)
Set the size property: Size specifier of the resource SKU. |
Sku |
withSkuCapacity(SkuCapacity skuCapacity)
Set the sku |
Sku |
withTier(String tier)
Set the tier property: Service tier of the resource SKU. |
Methods inherited from java.lang.Object
Constructor Details
SkuDescription
public SkuDescription()
Creates an instance of SkuDescription class.
Method Details
capabilities
public List
Get the capabilities property: Capabilities of the SKU, e.g., is traffic manager enabled?.
Returns:
capacity
public Integer capacity()
Get the capacity property: Current number of instances assigned to the resource.
Returns:
family
public String family()
Get the family property: Family code of the resource SKU.
Returns:
fromJson
public static SkuDescription fromJson(JsonReader jsonReader)
Reads an instance of SkuDescription from the JsonReader.
Parameters:
Returns:
Throws:
locations
public List
Get the locations property: Locations of the SKU.
Returns:
name
public String name()
Get the name property: Name of the resource SKU.
Returns:
size
public String size()
Get the size property: Size specifier of the resource SKU.
Returns:
skuCapacity
public SkuCapacity skuCapacity()
Get the skuCapacity property: Min, max, and default scale values of the SKU.
Returns:
tier
public String tier()
Get the tier property: Service tier of the resource SKU.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCapabilities
public SkuDescription withCapabilities(List
Set the capabilities property: Capabilities of the SKU, e.g., is traffic manager enabled?.
Parameters:
Returns:
withCapacity
public SkuDescription withCapacity(Integer capacity)
Set the capacity property: Current number of instances assigned to the resource.
Parameters:
Returns:
withFamily
public SkuDescription withFamily(String family)
Set the family property: Family code of the resource SKU.
Parameters:
Returns:
withLocations
public SkuDescription withLocations(List
Set the locations property: Locations of the SKU.
Parameters:
Returns:
withName
public SkuDescription withName(String name)
Set the name property: Name of the resource SKU.
Parameters:
Returns:
withSize
public SkuDescription withSize(String size)
Set the size property: Size specifier of the resource SKU.
Parameters:
Returns:
withSkuCapacity
public SkuDescription withSkuCapacity(SkuCapacity skuCapacity)
Set the skuCapacity property: Min, max, and default scale values of the SKU.
Parameters:
Returns:
withTier
public SkuDescription withTier(String tier)
Set the tier property: Service tier of the resource SKU.
Parameters:
Returns:
Applies to
Azure SDK for Java