AttachNewDataDiskOptions Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. AttachNewDataDiskOptions
- com.
public final class AttachNewDataDiskOptions
Properties to attach new disk to the Virtual Machine.
Constructor Summary
Constructor | Description |
---|---|
AttachNewDataDiskOptions() |
Creates an instance of Attach |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
diskName()
Get the disk |
Integer |
diskSizeGiB()
Get the disk |
Storage |
diskType()
Get the disk |
void |
validate()
Validates the instance. |
Attach |
withDiskName(String diskName)
Set the disk |
Attach |
withDiskSizeGiB(Integer diskSizeGiB)
Set the disk |
Attach |
withDiskType(StorageType diskType)
Set the disk |
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:
diskSizeGiB
public Integer diskSizeGiB()
Get the diskSizeGiB property: Size of the disk to be attached in Gibibytes.
Returns:
diskType
public StorageType diskType()
Get the diskType property: The storage type for the disk (i.e. Standard, Premium).
Returns:
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:
Returns:
withDiskSizeGiB
public AttachNewDataDiskOptions withDiskSizeGiB(Integer diskSizeGiB)
Set the diskSizeGiB property: Size of the disk to be attached in Gibibytes.
Parameters:
Returns:
withDiskType
public AttachNewDataDiskOptions withDiskType(StorageType diskType)
Set the diskType property: The storage type for the disk (i.e. Standard, Premium).
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for