你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AccountSku Class

  • java.lang.Object
    • com.azure.resourcemanager.cognitiveservices.models.AccountSku

Implements

public final class AccountSku
implements JsonSerializable<AccountSku>

Cognitive Services resource type and SKU.

Constructor Summary

Constructor Description
AccountSku()

Creates an instance of AccountSku class.

Method Summary

Modifier and Type Method and Description
static AccountSku fromJson(JsonReader jsonReader)

Reads an instance of AccountSku from the JsonReader.

String resourceType()

Get the resourceType property: Resource Namespace and Type.

Sku sku()

Get the sku property: The SKU of Cognitive Services account.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AccountSku withResourceType(String resourceType)

Set the resourceType property: Resource Namespace and Type.

AccountSku withSku(Sku sku)

Set the sku property: The SKU of Cognitive Services account.

Methods inherited from java.lang.Object

Constructor Details

AccountSku

public AccountSku()

Creates an instance of AccountSku class.

Method Details

fromJson

public static AccountSku fromJson(JsonReader jsonReader)

Reads an instance of AccountSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resourceType

public String resourceType()

Get the resourceType property: Resource Namespace and Type.

Returns:

the resourceType value.

sku

public Sku sku()

Get the sku property: The SKU of Cognitive Services account.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResourceType

public AccountSku withResourceType(String resourceType)

Set the resourceType property: Resource Namespace and Type.

Parameters:

resourceType - the resourceType value to set.

Returns:

the AccountSku object itself.

withSku

public AccountSku withSku(Sku sku)

Set the sku property: The SKU of Cognitive Services account.

Parameters:

sku - the sku value to set.

Returns:

the AccountSku object itself.

Applies to