ResourceSku Class
- java.
lang. Object - com.
azure. resourcemanager. webpubsub. models. ResourceSku
- com.
Implements
public final class ResourceSku
implements JsonSerializable<ResourceSku>
The billing information of the resource.
Constructor Summary
| Constructor | Description |
|---|---|
| ResourceSku() |
Creates an instance of Resource |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
capacity()
Get the capacity property: Optional, integer. |
| String |
family()
Get the family property: Not used. |
|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
| String |
name()
Get the name property: The name of the SKU. |
| String |
size()
Get the size property: Not used. |
|
Web |
tier()
Get the tier property: Optional tier of this particular SKU. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Resource |
withCapacity(Integer capacity)
Set the capacity property: Optional, integer. |
|
Resource |
withName(String name)
Set the name property: The name of the SKU. |
|
Resource |
withTier(WebPubSubSkuTier tier)
Set the tier property: Optional tier of this particular SKU. |
Methods inherited from java.lang.Object
Constructor Details
ResourceSku
public ResourceSku()
Creates an instance of ResourceSku class.
Method Details
capacity
public Integer capacity()
Get the capacity property: Optional, integer. The unit count of the resource. 1 for Free_F1/Standard_S1/Premium_P1, 100 for Premium_P2 by default. If present, following values are allowed: Free_F1: 1; Standard_S1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium_P1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium_P2: 100,200,300,400,500,600,700,800,900,1000;.
Returns:
family
public String family()
Get the family property: Not used. Retained for future use.
Returns:
fromJson
public static ResourceSku fromJson(JsonReader jsonReader)
Reads an instance of ResourceSku from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the SKU. Required. Allowed values: Standard_S1, Free_F1, Premium_P1, Premium_P2.
Returns:
size
public String size()
Get the size property: Not used. Retained for future use.
Returns:
tier
public WebPubSubSkuTier tier()
Get the tier property: Optional tier of this particular SKU. 'Standard' or 'Free'. `Basic` is deprecated, use `Standard` instead.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCapacity
public ResourceSku withCapacity(Integer capacity)
Set the capacity property: Optional, integer. The unit count of the resource. 1 for Free_F1/Standard_S1/Premium_P1, 100 for Premium_P2 by default. If present, following values are allowed: Free_F1: 1; Standard_S1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium_P1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium_P2: 100,200,300,400,500,600,700,800,900,1000;.
Parameters:
Returns:
withName
public ResourceSku withName(String name)
Set the name property: The name of the SKU. Required. Allowed values: Standard_S1, Free_F1, Premium_P1, Premium_P2.
Parameters:
Returns:
withTier
public ResourceSku withTier(WebPubSubSkuTier tier)
Set the tier property: Optional tier of this particular SKU. 'Standard' or 'Free'. `Basic` is deprecated, use `Standard` instead.
Parameters:
Returns: