AccountSku Class

public final class AccountSku
extends AccountSkuAutoGenerated

Gets or sets the 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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AccountSku withCapacity(Integer capacity)

Set the capacity property: Gets or sets the sku capacity.

AccountSku withName(Name name)

Set the name property: Gets or sets the sku name.

Methods inherited from AccountSkuAutoGenerated

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AccountSku.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AccountSku.validate()

withCapacity

public AccountSku withCapacity(Integer capacity)

Set the capacity property: Gets or sets the sku capacity.

Overrides:

AccountSku.withCapacity(Integer capacity)

Parameters:

capacity

withName

public AccountSku withName(Name name)

Set the name property: Gets or sets the sku name.

Overrides:

AccountSku.withName(Name name)

Parameters:

name

Applies to