AttachNewDataDiskOptions Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.AttachNewDataDiskOptions

public final class AttachNewDataDiskOptions

Properties to attach new disk to the Virtual Machine.

Constructor Summary

Constructor Description
AttachNewDataDiskOptions()

Creates an instance of AttachNewDataDiskOptions class.

Method Summary

Modifier and Type Method and Description
String diskName()

Get the diskName property: The name of the disk to be attached.

Integer diskSizeGiB()

Get the diskSizeGiB property: Size of the disk to be attached in Gibibytes.

StorageType diskType()

Get the diskType property: The storage type for the disk (i.e.

void validate()

Validates the instance.

AttachNewDataDiskOptions withDiskName(String diskName)

Set the diskName property: The name of the disk to be attached.

AttachNewDataDiskOptions withDiskSizeGiB(Integer diskSizeGiB)

Set the diskSizeGiB property: Size of the disk to be attached in Gibibytes.

AttachNewDataDiskOptions withDiskType(StorageType diskType)

Set the diskType property: The storage type for the disk (i.e.

Methods inherited from java.lang.Object

Constructor Details

AttachNewDataDiskOptions

public AttachNewDataDiskOptions()

Creates an instance of AttachNewDataDiskOptions class.

Method Details

diskName

public String diskName()

Get the diskName property: The name of the disk to be attached.

Returns:

the diskName value.

diskSizeGiB

public Integer diskSizeGiB()

Get the diskSizeGiB property: Size of the disk to be attached in Gibibytes.

Returns:

the diskSizeGiB value.

diskType

public StorageType diskType()

Get the diskType property: The storage type for the disk (i.e. Standard, Premium).

Returns:

the diskType value.

validate

public void validate()

Validates the instance.

withDiskName

public AttachNewDataDiskOptions withDiskName(String diskName)

Set the diskName property: The name of the disk to be attached.

Parameters:

diskName - the diskName value to set.

Returns:

the AttachNewDataDiskOptions object itself.

withDiskSizeGiB

public AttachNewDataDiskOptions withDiskSizeGiB(Integer diskSizeGiB)

Set the diskSizeGiB property: Size of the disk to be attached in Gibibytes.

Parameters:

diskSizeGiB - the diskSizeGiB value to set.

Returns:

the AttachNewDataDiskOptions object itself.

withDiskType

public AttachNewDataDiskOptions withDiskType(StorageType diskType)

Set the diskType property: The storage type for the disk (i.e. Standard, Premium).

Parameters:

diskType - the diskType value to set.

Returns:

the AttachNewDataDiskOptions object itself.

Applies to