Class ResourceModelWithAllowedPropertySetSku
java.lang.Object
com.azure.resourcemanager.desktopvirtualization.models.Sku
com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetSku
The ResourceModelWithAllowedPropertySetSku model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResourceModelWithAllowedPropertySetSku class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()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
-
ResourceModelWithAllowedPropertySetSku
public ResourceModelWithAllowedPropertySetSku()Creates an instance of ResourceModelWithAllowedPropertySetSku class.
-
-
Method Details
-
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:
withFamilyin 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:
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.
-