Class ResourceSku
java.lang.Object
com.azure.resourcemanager.webpubsub.models.ResourceSku
The billing information of the resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncapacity()
Get the capacity property: Optional, integer.family()
Get the family property: Not used.name()
Get the name property: The name of the SKU.size()
Get the size property: Not used.tier()
Get the tier property: Optional tier of this particular SKU.void
validate()
Validates the instance.withCapacity
(Integer capacity) Set the capacity property: Optional, integer.Set the name property: The name of the SKU.withTier
(WebPubSubSkuTier tier) Set the tier property: Optional tier of this particular SKU.
-
Constructor Details
-
ResourceSku
public ResourceSku()Creates an instance of ResourceSku class.
-
-
Method Details
-
name
Get the name property: The name of the SKU. Required.Allowed values: Standard_S1, Free_F1, Premium_P1.
- Returns:
- the name value.
-
withName
Set the name property: The name of the SKU. Required.Allowed values: Standard_S1, Free_F1, Premium_P1.
- Parameters:
name
- the name value to set.- Returns:
- the ResourceSku object itself.
-
tier
Get the tier property: Optional tier of this particular SKU. 'Standard' or 'Free'.`Basic` is deprecated, use `Standard` instead.
- Returns:
- the tier value.
-
withTier
Set the tier property: Optional tier of this particular SKU. 'Standard' or 'Free'.`Basic` is deprecated, use `Standard` instead.
- Parameters:
tier
- the tier value to set.- Returns:
- the ResourceSku object itself.
-
size
Get the size property: Not used. Retained for future use.- Returns:
- the size value.
-
family
Get the family property: Not used. Retained for future use.- Returns:
- the family value.
-
capacity
Get the capacity property: Optional, integer. The unit count of the resource. 1 by default.If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;.
- Returns:
- the capacity value.
-
withCapacity
Set the capacity property: Optional, integer. The unit count of the resource. 1 by default.If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;.
- Parameters:
capacity
- the capacity value to set.- Returns:
- the ResourceSku object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-