Поделиться через


DevCenterSkuInner Class

public final class DevCenterSkuInner
extends Sku

The resource model definition representing SKU for DevCenter resources.

Constructor Summary

Constructor Description
DevCenterSkuInner()

Creates an instance of DevCenterSkuInner class.

Method Summary

Modifier and Type Method and Description
List<Capability> capabilities()

Get the capabilities property: Collection of name/value pairs to describe the SKU capabilities.

static DevCenterSkuInner fromJson(JsonReader jsonReader)

Reads an instance of DevCenterSkuInner from the JsonReader.

List<String> locations()

Get the locations property: SKU supported locations.

String resourceType()

Get the resourceType property: The name of the resource type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DevCenterSkuInner withCapacity(Integer capacity)

Set the capacity property: If the SKU supports scale out/in then the capacity integer should be included.

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

DevCenterSkuInner withName(String name)

Set the name property: The name of the SKU.

DevCenterSkuInner withSize(String size)

Set the size property: The SKU size.

DevCenterSkuInner withTier(SkuTier tier)

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.

Methods inherited from Sku

Methods inherited from java.lang.Object

Constructor Details

DevCenterSkuInner

public DevCenterSkuInner()

Creates an instance of DevCenterSkuInner class.

Method Details

capabilities

public List<Capability> capabilities()

Get the capabilities property: Collection of name/value pairs to describe the SKU capabilities.

Returns:

the capabilities value.

fromJson

public static DevCenterSkuInner fromJson(JsonReader jsonReader)

Reads an instance of DevCenterSkuInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DevCenterSkuInner 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.

locations

public List<String> locations()

Get the locations property: SKU supported locations.

Returns:

the locations value.

resourceType

public String resourceType()

Get the resourceType property: The name of the resource type.

Returns:

the resourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DevCenterSkuInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DevCenterSkuInner.validate()

withCapacity

public DevCenterSkuInner withCapacity(Integer capacity)

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:

DevCenterSkuInner.withCapacity(Integer capacity)

Parameters:

capacity

withFamily

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

Overrides:

DevCenterSkuInner.withFamily(String family)

Parameters:

family

withName

public DevCenterSkuInner withName(String name)

Set the name property: The name of the SKU. Ex - P3. It is typically a letter+number code.

Overrides:

DevCenterSkuInner.withName(String name)

Parameters:

name

withSize

public DevCenterSkuInner withSize(String size)

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.

Overrides:

DevCenterSkuInner.withSize(String size)

Parameters:

size

withTier

public DevCenterSkuInner withTier(SkuTier tier)

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.

Overrides:

DevCenterSkuInner.withTier(SkuTier tier)

Parameters:

tier

Applies to