StorageProfile Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. StorageProfile
- com.
Implements
public final class StorageProfile
implements JsonSerializable<StorageProfile>
StorageProfile represents information about a disk.
Constructor Summary
| Constructor | Description |
|---|---|
| StorageProfile() |
Creates an instance of Storage |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Storage |
fromJson(JsonReader jsonReader)
Reads an instance of Storage |
|
Os |
osDisk()
Get the os |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| List<String> |
volumeAttachments()
Get the volume |
|
Storage |
withOsDisk(OsDisk osDisk)
Set the os |
|
Storage |
withVolumeAttachments(List<String> volumeAttachments)
Set the volume |
Methods inherited from java.lang.Object
Constructor Details
StorageProfile
public StorageProfile()
Creates an instance of StorageProfile class.
Method Details
fromJson
public static StorageProfile fromJson(JsonReader jsonReader)
Reads an instance of StorageProfile from the JsonReader.
Parameters:
Returns:
Throws:
osDisk
public OsDisk osDisk()
Get the osDisk property: The disk to use with this virtual machine.
Returns:
toJson
validate
public void validate()
Validates the instance.
volumeAttachments
public List<String> volumeAttachments()
Get the volumeAttachments property: The resource IDs of volumes that are requested to be attached to the virtual machine.
Returns:
withOsDisk
public StorageProfile withOsDisk(OsDisk osDisk)
Set the osDisk property: The disk to use with this virtual machine.
Parameters:
Returns:
withVolumeAttachments
public StorageProfile withVolumeAttachments(List<String> volumeAttachments)
Set the volumeAttachments property: The resource IDs of volumes that are requested to be attached to the virtual machine.
Parameters:
Returns: