Class DevCenterSkuInner
java.lang.Object
com.azure.resourcemanager.devcenter.models.Sku
com.azure.resourcemanager.devcenter.fluent.models.DevCenterSkuInner
The resource model definition representing SKU for DevCenter resources.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the capabilities property: Collection of name/value pairs to describe the SKU capabilities.Get the locations property: SKU supported locations.Get the resourceType property: The name of the resource type.void
validate()
Validates the instance.withCapacity
(Integer capacity) Set the capacity property: If the SKU supports scale out/in then the capacity integer should be included.withFamily
(String family) Set the family property: If the service has different generations of hardware, for the same SKU, then that can be captured here.Set the name property: The name of the SKU.Set the size property: The SKU size.Set the tier property: This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
-
Constructor Details
-
DevCenterSkuInner
public DevCenterSkuInner()Creates an instance of DevCenterSkuInner class.
-
-
Method Details
-
resourceType
Get the resourceType property: The name of the resource type.- Returns:
- the resourceType value.
-
locations
Get the locations property: SKU supported locations.- Returns:
- the locations value.
-
capabilities
Get the capabilities property: Collection of name/value pairs to describe the SKU capabilities.- Returns:
- the capabilities value.
-
withName
Set the name property: The name of the SKU. Ex - P3. It is typically a letter+number code. -
withTier
Set the tier property: This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. -
withSize
Set the size property: The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. -
withFamily
Set the family property: If the service has different generations of hardware, for the same SKU, then that can be captured here.- Overrides:
withFamily
in classSku
- Parameters:
family
- the family value to set.- Returns:
- the Sku object itself.
-
withCapacity
Set the capacity property: If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.- Overrides:
withCapacity
in classSku
- Parameters:
capacity
- the capacity value to set.- Returns:
- the Sku object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classSku
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-