public final class Disk extends Object
Constructor and Description |
---|
Disk() |
Modifier and Type | Method and Description |
---|---|
Integer |
diskSizeGB()
Get the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.
|
Integer |
lun()
Get the lun property: Specifies the logical unit number of the data disk.
|
String |
name()
Get the name property: The disk name.
|
void |
validate()
Validates the instance.
|
Disk |
withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.
|
Disk |
withName(String name)
Set the name property: The disk name.
|
public String name()
public Disk withName(String name)
name
- the name value to set.public Integer diskSizeGB()
public Disk withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to set.public Integer lun()
public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.