public final class AttachNewDataDiskOptions extends Object
Constructor and Description |
---|
AttachNewDataDiskOptions() |
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.
|
public Integer diskSizeGiB()
public AttachNewDataDiskOptions withDiskSizeGiB(Integer diskSizeGiB)
diskSizeGiB
- the diskSizeGiB value to set.public String diskName()
public AttachNewDataDiskOptions withDiskName(String diskName)
diskName
- the diskName value to set.public StorageType diskType()
public AttachNewDataDiskOptions withDiskType(StorageType diskType)
diskType
- the diskType value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.