SkuDescription Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.SkuDescription

Implements

public final class SkuDescription
implements JsonSerializable<SkuDescription>

Description of a SKU for a scalable resource.

Constructor Summary

Constructor Description
SkuDescription()

Creates an instance of SkuDescription class.

Method Summary

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

Get the capabilities property: Capabilities of the SKU, e.g., is traffic manager enabled?.

Integer capacity()

Get the capacity property: Current number of instances assigned to the resource.

String family()

Get the family property: Family code of the resource SKU.

static SkuDescription fromJson(JsonReader jsonReader)

Reads an instance of SkuDescription from the JsonReader.

List<String> locations()

Get the locations property: Locations of the SKU.

String name()

Get the name property: Name of the resource SKU.

String size()

Get the size property: Size specifier of the resource SKU.

SkuCapacity skuCapacity()

Get the skuCapacity property: Min, max, and default scale values of the SKU.

String tier()

Get the tier property: Service tier of the resource SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SkuDescription withCapabilities(List<CapabilityInner> capabilities)

Set the capabilities property: Capabilities of the SKU, e.g., is traffic manager enabled?.

SkuDescription withCapacity(Integer capacity)

Set the capacity property: Current number of instances assigned to the resource.

SkuDescription withFamily(String family)

Set the family property: Family code of the resource SKU.

SkuDescription withLocations(List<String> locations)

Set the locations property: Locations of the SKU.

SkuDescription withName(String name)

Set the name property: Name of the resource SKU.

SkuDescription withSize(String size)

Set the size property: Size specifier of the resource SKU.

SkuDescription withSkuCapacity(SkuCapacity skuCapacity)

Set the skuCapacity property: Min, max, and default scale values of the SKU.

SkuDescription withTier(String tier)

Set the tier property: Service tier of the resource SKU.

Methods inherited from java.lang.Object

Constructor Details

SkuDescription

public SkuDescription()

Creates an instance of SkuDescription class.

Method Details

capabilities

public List capabilities()

Get the capabilities property: Capabilities of the SKU, e.g., is traffic manager enabled?.

Returns:

the capabilities value.

capacity

public Integer capacity()

Get the capacity property: Current number of instances assigned to the resource.

Returns:

the capacity value.

family

public String family()

Get the family property: Family code of the resource SKU.

Returns:

the family value.

fromJson

public static SkuDescription fromJson(JsonReader jsonReader)

Reads an instance of SkuDescription from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

locations

public List locations()

Get the locations property: Locations of the SKU.

Returns:

the locations value.

name

public String name()

Get the name property: Name of the resource SKU.

Returns:

the name value.

size

public String size()

Get the size property: Size specifier of the resource SKU.

Returns:

the size value.

skuCapacity

public SkuCapacity skuCapacity()

Get the skuCapacity property: Min, max, and default scale values of the SKU.

Returns:

the skuCapacity value.

tier

public String tier()

Get the tier property: Service tier of the resource SKU.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCapabilities

public SkuDescription withCapabilities(List capabilities)

Set the capabilities property: Capabilities of the SKU, e.g., is traffic manager enabled?.

Parameters:

capabilities - the capabilities value to set.

Returns:

the SkuDescription object itself.

withCapacity

public SkuDescription withCapacity(Integer capacity)

Set the capacity property: Current number of instances assigned to the resource.

Parameters:

capacity - the capacity value to set.

Returns:

the SkuDescription object itself.

withFamily

public SkuDescription withFamily(String family)

Set the family property: Family code of the resource SKU.

Parameters:

family - the family value to set.

Returns:

the SkuDescription object itself.

withLocations

public SkuDescription withLocations(List locations)

Set the locations property: Locations of the SKU.

Parameters:

locations - the locations value to set.

Returns:

the SkuDescription object itself.

withName

public SkuDescription withName(String name)

Set the name property: Name of the resource SKU.

Parameters:

name - the name value to set.

Returns:

the SkuDescription object itself.

withSize

public SkuDescription withSize(String size)

Set the size property: Size specifier of the resource SKU.

Parameters:

size - the size value to set.

Returns:

the SkuDescription object itself.

withSkuCapacity

public SkuDescription withSkuCapacity(SkuCapacity skuCapacity)

Set the skuCapacity property: Min, max, and default scale values of the SKU.

Parameters:

skuCapacity - the skuCapacity value to set.

Returns:

the SkuDescription object itself.

withTier

public SkuDescription withTier(String tier)

Set the tier property: Service tier of the resource SKU.

Parameters:

tier - the tier value to set.

Returns:

the SkuDescription object itself.

Applies to