AccountSku Class
- java.
lang. Object - com.
azure. resourcemanager. cognitiveservices. models. AccountSku
- com.
Implements
public final class AccountSku
implements JsonSerializable<AccountSku>
Cognitive Services resource type and SKU.
Constructor Summary
| Constructor | Description |
|---|---|
| AccountSku() |
Creates an instance of Account |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Account |
fromJson(JsonReader jsonReader)
Reads an instance of Account |
| String |
resourceType()
Get the resource |
| Sku |
sku()
Get the sku property: The SKU of Cognitive Services account. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Account |
withResourceType(String resourceType)
Set the resource |
|
Account |
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:
Returns:
Throws:
resourceType
public String resourceType()
Get the resourceType property: Resource Namespace and Type.
Returns:
sku
public Sku sku()
Get the sku property: The SKU of Cognitive Services account.
Returns:
toJson
validate
public void validate()
Validates the instance.
withResourceType
public AccountSku withResourceType(String resourceType)
Set the resourceType property: Resource Namespace and Type.
Parameters:
Returns:
withSku
public AccountSku withSku(Sku sku)
Set the sku property: The SKU of Cognitive Services account.
Parameters:
Returns: