ManagedDisk Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. ManagedDisk
- com.
Implements
public final class ManagedDisk
implements JsonSerializable<ManagedDisk>
The managed disk parameters.
Constructor Summary
| Constructor | Description |
|---|---|
| ManagedDisk() |
Creates an instance of Managed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Disk |
diskEncryptionSet()
Get the disk |
|
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 |
withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)
Set the disk |
|
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
diskEncryptionSet
public DiskEncryptionSetParameters diskEncryptionSet()
Get the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk. It can be set only in UserSubscription mode.
Returns:
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 for the managed disk. 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.
withDiskEncryptionSet
public ManagedDisk withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)
Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk. It can be set only in UserSubscription mode.
Parameters:
Returns:
withSecurityProfile
public ManagedDisk withSecurityProfile(VMDiskSecurityProfile securityProfile)
Set the securityProfile property: Specifies the security profile for the managed disk. 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: