Share via


AvailableServiceSkuSku Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.AvailableServiceSkuSku

Implements

public final class AvailableServiceSkuSku
implements JsonSerializable<AvailableServiceSkuSku>

SKU name, tier, etc.

Constructor Summary

Constructor Description
AvailableServiceSkuSku()

Creates an instance of AvailableServiceSkuSku class.

Method Summary

Modifier and Type Method and Description
String family()

Get the family property: SKU family.

static AvailableServiceSkuSku fromJson(JsonReader jsonReader)

Reads an instance of AvailableServiceSkuSku from the JsonReader.

String name()

Get the name property: The name of the SKU.

String size()

Get the size property: SKU size.

String tier()

Get the tier property: The tier of the SKU, such as "Basic", "General Purpose", or "Business Critical".

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AvailableServiceSkuSku withFamily(String family)

Set the family property: SKU family.

AvailableServiceSkuSku withName(String name)

Set the name property: The name of the SKU.

AvailableServiceSkuSku withSize(String size)

Set the size property: SKU size.

AvailableServiceSkuSku withTier(String tier)

Set the tier property: The tier of the SKU, such as "Basic", "General Purpose", or "Business Critical".

Methods inherited from java.lang.Object

Constructor Details

AvailableServiceSkuSku

public AvailableServiceSkuSku()

Creates an instance of AvailableServiceSkuSku class.

Method Details

family

public String family()

Get the family property: SKU family.

Returns:

the family value.

fromJson

public static AvailableServiceSkuSku fromJson(JsonReader jsonReader)

Reads an instance of AvailableServiceSkuSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the SKU.

Returns:

the name value.

size

public String size()

Get the size property: SKU size.

Returns:

the size value.

tier

public String tier()

Get the tier property: The tier of the SKU, such as "Basic", "General Purpose", or "Business Critical".

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFamily

public AvailableServiceSkuSku withFamily(String family)

Set the family property: SKU family.

Parameters:

family - the family value to set.

Returns:

the AvailableServiceSkuSku object itself.

withName

public AvailableServiceSkuSku withName(String name)

Set the name property: The name of the SKU.

Parameters:

name - the name value to set.

Returns:

the AvailableServiceSkuSku object itself.

withSize

public AvailableServiceSkuSku withSize(String size)

Set the size property: SKU size.

Parameters:

size - the size value to set.

Returns:

the AvailableServiceSkuSku object itself.

withTier

public AvailableServiceSkuSku withTier(String tier)

Set the tier property: The tier of the SKU, such as "Basic", "General Purpose", or "Business Critical".

Parameters:

tier - the tier value to set.

Returns:

the AvailableServiceSkuSku object itself.

Applies to