Class ResourceModelWithAllowedPropertySetSku
- java.lang.Object
-
- com.azure.resourcemanager.desktopvirtualization.models.Sku
-
- com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetSku
-
public final class ResourceModelWithAllowedPropertySetSku extends Sku
The ResourceModelWithAllowedPropertySetSku model.
-
-
Constructor Summary
Constructors Constructor Description ResourceModelWithAllowedPropertySetSku()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate()Validates the instance.ResourceModelWithAllowedPropertySetSkuwithCapacity(Integer capacity)Set the capacity property: If the SKU supports scale out/in then the capacity integer should be included.ResourceModelWithAllowedPropertySetSkuwithFamily(String family)Set the family property: If the service has different generations of hardware, for the same SKU, then that can be captured here.ResourceModelWithAllowedPropertySetSkuwithName(String name)Set the name property: The name of the SKU.ResourceModelWithAllowedPropertySetSkuwithSize(String size)Set the size property: The SKU size.ResourceModelWithAllowedPropertySetSkuwithTier(SkuTier tier)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.
-
-
-
Method Detail
-
withName
public ResourceModelWithAllowedPropertySetSku withName(String name)
Set the name property: The name of the SKU. Ex - P3. It is typically a letter+number code.
-
withTier
public ResourceModelWithAllowedPropertySetSku withTier(SkuTier tier)
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
public ResourceModelWithAllowedPropertySetSku withSize(String size)
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
public ResourceModelWithAllowedPropertySetSku 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.- Overrides:
withFamilyin classSku- Parameters:
family- the family value to set.- Returns:
- the Sku object itself.
-
withCapacity
public ResourceModelWithAllowedPropertySetSku withCapacity(Integer capacity)
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:
withCapacityin classSku- Parameters:
capacity- the capacity value to set.- Returns:
- the Sku object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classSku- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-