Partager via


GlobalCsmSkuDescription Class

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

Implements

public final class GlobalCsmSkuDescription
implements JsonSerializable<GlobalCsmSkuDescription>

A Global SKU Description.

Constructor Summary

Constructor Description
GlobalCsmSkuDescription()

Creates an instance of GlobalCsmSkuDescription 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?.

SkuCapacity capacity()

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

String family()

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

static GlobalCsmSkuDescription fromJson(JsonReader jsonReader)

Reads an instance of GlobalCsmSkuDescription 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.

String tier()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GlobalCsmSkuDescription withCapabilities(List<CapabilityInner> capabilities)

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

GlobalCsmSkuDescription withCapacity(SkuCapacity capacity)

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

GlobalCsmSkuDescription withFamily(String family)

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

GlobalCsmSkuDescription withLocations(List<String> locations)

Set the locations property: Locations of the SKU.

GlobalCsmSkuDescription withName(String name)

Set the name property: Name of the resource SKU.

GlobalCsmSkuDescription withSize(String size)

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

GlobalCsmSkuDescription withTier(String tier)

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

Methods inherited from java.lang.Object

Constructor Details

GlobalCsmSkuDescription

public GlobalCsmSkuDescription()

Creates an instance of GlobalCsmSkuDescription class.

Method Details

capabilities

public List<CapabilityInner> capabilities()

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

Returns:

the capabilities value.

capacity

public SkuCapacity capacity()

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

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

Reads an instance of GlobalCsmSkuDescription from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

locations

public List<String> 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.

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 GlobalCsmSkuDescription withCapabilities(List<CapabilityInner> capabilities)

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

Parameters:

capabilities - the capabilities value to set.

Returns:

the GlobalCsmSkuDescription object itself.

withCapacity

public GlobalCsmSkuDescription withCapacity(SkuCapacity capacity)

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

Parameters:

capacity - the capacity value to set.

Returns:

the GlobalCsmSkuDescription object itself.

withFamily

public GlobalCsmSkuDescription withFamily(String family)

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

Parameters:

family - the family value to set.

Returns:

the GlobalCsmSkuDescription object itself.

withLocations

public GlobalCsmSkuDescription withLocations(List<String> locations)

Set the locations property: Locations of the SKU.

Parameters:

locations - the locations value to set.

Returns:

the GlobalCsmSkuDescription object itself.

withName

public GlobalCsmSkuDescription withName(String name)

Set the name property: Name of the resource SKU.

Parameters:

name - the name value to set.

Returns:

the GlobalCsmSkuDescription object itself.

withSize

public GlobalCsmSkuDescription withSize(String size)

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

Parameters:

size - the size value to set.

Returns:

the GlobalCsmSkuDescription object itself.

withTier

public GlobalCsmSkuDescription withTier(String tier)

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

Parameters:

tier - the tier value to set.

Returns:

the GlobalCsmSkuDescription object itself.

Applies to