public final class ComputeDataDisk extends Object
Constructor and Description |
---|
ComputeDataDisk() |
Modifier and Type | Method and Description |
---|---|
Integer |
diskSizeGiB()
Get the diskSizeGiB property: Gets data disk size in GiB.
|
String |
diskUri()
Get the diskUri property: When backed by a blob, the URI of underlying blob.
|
String |
managedDiskId()
Get the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.
|
String |
name()
Get the name property: Gets data disk name.
|
void |
validate()
Validates the instance.
|
ComputeDataDisk |
withDiskSizeGiB(Integer diskSizeGiB)
Set the diskSizeGiB property: Gets data disk size in GiB.
|
ComputeDataDisk |
withDiskUri(String diskUri)
Set the diskUri property: When backed by a blob, the URI of underlying blob.
|
ComputeDataDisk |
withManagedDiskId(String managedDiskId)
Set the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.
|
ComputeDataDisk |
withName(String name)
Set the name property: Gets data disk name.
|
public String name()
public ComputeDataDisk withName(String name)
name
- the name value to set.public String diskUri()
public ComputeDataDisk withDiskUri(String diskUri)
diskUri
- the diskUri value to set.public String managedDiskId()
public ComputeDataDisk withManagedDiskId(String managedDiskId)
managedDiskId
- the managedDiskId value to set.public Integer diskSizeGiB()
public ComputeDataDisk withDiskSizeGiB(Integer diskSizeGiB)
diskSizeGiB
- the diskSizeGiB value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.