StorageProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.devopsinfrastructure.models.StorageProfile

Implements

public final class StorageProfile
implements JsonSerializable<StorageProfile>

The storage profile of the VMSS.

Constructor Summary

Constructor Description
StorageProfile()

Creates an instance of StorageProfile class.

Method Summary

Modifier and Type Method and Description
List<DataDisk> dataDisks()

Get the dataDisks property: A list of empty data disks to attach.

static StorageProfile fromJson(JsonReader jsonReader)

Reads an instance of StorageProfile from the JsonReader.

OsDiskStorageAccountType osDiskStorageAccountType()

Get the osDiskStorageAccountType property: The Azure SKU name of the machines in the pool.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageProfile withDataDisks(List<DataDisk> dataDisks)

Set the dataDisks property: A list of empty data disks to attach.

StorageProfile withOsDiskStorageAccountType(OsDiskStorageAccountType osDiskStorageAccountType)

Set the osDiskStorageAccountType property: The Azure SKU name of the machines in the pool.

Methods inherited from java.lang.Object

Constructor Details

StorageProfile

public StorageProfile()

Creates an instance of StorageProfile class.

Method Details

dataDisks

public List<DataDisk> dataDisks()

Get the dataDisks property: A list of empty data disks to attach.

Returns:

the dataDisks value.

fromJson

public static StorageProfile fromJson(JsonReader jsonReader)

Reads an instance of StorageProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

osDiskStorageAccountType

public OsDiskStorageAccountType osDiskStorageAccountType()

Get the osDiskStorageAccountType property: The Azure SKU name of the machines in the pool.

Returns:

the osDiskStorageAccountType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDataDisks

public StorageProfile withDataDisks(List<DataDisk> dataDisks)

Set the dataDisks property: A list of empty data disks to attach.

Parameters:

dataDisks - the dataDisks value to set.

Returns:

the StorageProfile object itself.

withOsDiskStorageAccountType

public StorageProfile withOsDiskStorageAccountType(OsDiskStorageAccountType osDiskStorageAccountType)

Set the osDiskStorageAccountType property: The Azure SKU name of the machines in the pool.

Parameters:

osDiskStorageAccountType - the osDiskStorageAccountType value to set.

Returns:

the StorageProfile object itself.

Applies to