IotDpsSkuInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceprovisioningservices.models.IotDpsSkuInfo

Implements

public final class IotDpsSkuInfo
implements JsonSerializable<IotDpsSkuInfo>

List of possible provisioning service SKUs.

Constructor Summary

Constructor Description
IotDpsSkuInfo()

Creates an instance of IotDpsSkuInfo class.

Method Summary

Modifier and Type Method and Description
Long capacity()

Get the capacity property: The number of units to provision.

static IotDpsSkuInfo fromJson(JsonReader jsonReader)

Reads an instance of IotDpsSkuInfo from the JsonReader.

IotDpsSku name()

Get the name property: Sku name.

String tier()

Get the tier property: Pricing tier name of the provisioning service.

JsonWriter toJson(JsonWriter jsonWriter)
IotDpsSkuInfo withCapacity(Long capacity)

Set the capacity property: The number of units to provision.

IotDpsSkuInfo withName(IotDpsSku name)

Set the name property: Sku name.

Methods inherited from java.lang.Object

Constructor Details

IotDpsSkuInfo

public IotDpsSkuInfo()

Creates an instance of IotDpsSkuInfo class.

Method Details

capacity

public Long capacity()

Get the capacity property: The number of units to provision.

Returns:

the capacity value.

fromJson

public static IotDpsSkuInfo fromJson(JsonReader jsonReader)

Reads an instance of IotDpsSkuInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the IotDpsSkuInfo.

name

public IotDpsSku name()

Get the name property: Sku name.

Returns:

the name value.

tier

public String tier()

Get the tier property: Pricing tier name of the provisioning service.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withCapacity

public IotDpsSkuInfo withCapacity(Long capacity)

Set the capacity property: The number of units to provision.

Parameters:

capacity - the capacity value to set.

Returns:

the IotDpsSkuInfo object itself.

withName

public IotDpsSkuInfo withName(IotDpsSku name)

Set the name property: Sku name.

Parameters:

name - the name value to set.

Returns:

the IotDpsSkuInfo object itself.

Applies to