ResourceSku Class

  • java.lang.Object
    • com.azure.resourcemanager.signalr.models.ResourceSku

Implements

public final class ResourceSku
implements JsonSerializable<ResourceSku>

The billing information of the resource.

Constructor Summary

Constructor Description
ResourceSku()

Creates an instance of ResourceSku class.

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 ResourceSku fromJson(JsonReader jsonReader)

Reads an instance of ResourceSku from the JsonReader.

String name()

Get the name property: The name of the SKU.

String size()

Get the size property: Not used.

SignalRSkuTier tier()

Get the tier property: Optional tier of this particular SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceSku withCapacity(Integer capacity)

Set the capacity property: Optional, integer.

ResourceSku withName(String name)

Set the name property: The name of the SKU.

ResourceSku withTier(SignalRSkuTier 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 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.

family

public String family()

Get the family property: Not used. Retained for future use.

Returns:

the family value.

fromJson

public static ResourceSku fromJson(JsonReader jsonReader)

Reads an instance of ResourceSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceSku if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name of the SKU. Required. Allowed values: Standard_S1, Free_F1, Premium_P1.

Returns:

the name value.

size

public String size()

Get the size property: Not used. Retained for future use.

Returns:

the size value.

tier

public SignalRSkuTier tier()

Get the tier property: Optional tier of this particular SKU. 'Standard' or 'Free'. `Basic` is deprecated, use `Standard` instead.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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 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.

withName

public ResourceSku withName(String name)

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.

withTier

public ResourceSku withTier(SignalRSkuTier tier)

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.

Applies to