ManagedDisk Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. ManagedDisk
- com.
Implements
public final class ManagedDisk
implements JsonSerializable<ManagedDisk>
The ManagedDisk model.
Constructor Summary
Constructor | Description |
---|---|
ManagedDisk() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
VMDisk |
securityProfile()
Get the security |
Storage |
storageAccountType()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withSecurityProfile(VMDiskSecurityProfile securityProfile)
Set the security |
Managed |
withStorageAccountType(StorageAccountType storageAccountType)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
ManagedDisk
public ManagedDisk()
Creates an instance of ManagedDisk class.
Method Details
fromJson
public static ManagedDisk fromJson(JsonReader jsonReader)
Reads an instance of ManagedDisk from the JsonReader.
Parameters:
Returns:
Throws:
securityProfile
public VMDiskSecurityProfile securityProfile()
Get the securityProfile property: Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and is required when using Confidential VMs.
Returns:
storageAccountType
public StorageAccountType storageAccountType()
Get the storageAccountType property: The storage account type for use in creating data disks or OS disk.
Returns:
toJson
validate
public void validate()
Validates the instance.
withSecurityProfile
public ManagedDisk withSecurityProfile(VMDiskSecurityProfile securityProfile)
Set the securityProfile property: Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and is required when using Confidential VMs.
Parameters:
Returns:
withStorageAccountType
public ManagedDisk withStorageAccountType(StorageAccountType storageAccountType)
Set the storageAccountType property: The storage account type for use in creating data disks or OS disk.
Parameters:
Returns:
Applies to
Azure SDK for Java