Class ApiManagementServiceSkuProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.ApiManagementServiceSkuProperties
-
public final class ApiManagementServiceSkuProperties extends Object
API Management service resource SKU properties.
-
-
Constructor Summary
Constructors Constructor Description ApiManagementServiceSkuProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
capacity()
Get the capacity property: Capacity of the SKU (number of deployed units of the SKU).SkuType
name()
Get the name property: Name of the Sku.void
validate()
Validates the instance.ApiManagementServiceSkuProperties
withCapacity(int capacity)
Set the capacity property: Capacity of the SKU (number of deployed units of the SKU).ApiManagementServiceSkuProperties
withName(SkuType name)
Set the name property: Name of the Sku.
-
-
-
Method Detail
-
name
public SkuType name()
Get the name property: Name of the Sku.- Returns:
- the name value.
-
withName
public ApiManagementServiceSkuProperties withName(SkuType name)
Set the name property: Name of the Sku.- Parameters:
name
- the name value to set.- Returns:
- the ApiManagementServiceSkuProperties object itself.
-
capacity
public int capacity()
Get the capacity property: Capacity of the SKU (number of deployed units of the SKU). For Consumption SKU capacity must be specified as 0.- Returns:
- the capacity value.
-
withCapacity
public ApiManagementServiceSkuProperties withCapacity(int capacity)
Set the capacity property: Capacity of the SKU (number of deployed units of the SKU). For Consumption SKU capacity must be specified as 0.- Parameters:
capacity
- the capacity value to set.- Returns:
- the ApiManagementServiceSkuProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-