SnapshotSku Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.SnapshotSku

Implements

public final class SnapshotSku
implements JsonSerializable<SnapshotSku>

The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot.

Constructor Summary

Constructor Description
SnapshotSku()

Creates an instance of SnapshotSku class.

Method Summary

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

Reads an instance of SnapshotSku from the JsonReader.

SnapshotStorageAccountTypes name()

Get the name property: The sku name.

String tier()

Get the tier property: The sku tier.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SnapshotSku withName(SnapshotStorageAccountTypes name)

Set the name property: The sku name.

Methods inherited from java.lang.Object

Constructor Details

SnapshotSku

public SnapshotSku()

Creates an instance of SnapshotSku class.

Method Details

fromJson

public static SnapshotSku fromJson(JsonReader jsonReader)

Reads an instance of SnapshotSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public SnapshotStorageAccountTypes name()

Get the name property: The sku name.

Returns:

the name value.

tier

public String tier()

Get the tier property: The sku tier.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public SnapshotSku withName(SnapshotStorageAccountTypes name)

Set the name property: The sku name.

Parameters:

name - the name value to set.

Returns:

the SnapshotSku object itself.

Applies to