ManagedDiskParameters Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. compute. models. ManagedDiskParameters
- com.
- com.
public final class ManagedDiskParameters
extends SubResource
The parameters of a managed disk.
Constructor Summary
Constructor | Description |
---|---|
ManagedDiskParameters() |
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 |
withId(String id) |
Managed |
withSecurityProfile(VMDiskSecurityProfile securityProfile)
Set the security |
Managed |
withStorageAccountType(StorageAccountTypes storageAccountType)
Set the storage |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
ManagedDiskParameters
public ManagedDiskParameters()
Creates an instance of ManagedDiskParameters class.
Method Details
diskEncryptionSet
public DiskEncryptionSetParameters diskEncryptionSet()
Get the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.
Returns:
fromJson
public static ManagedDiskParameters fromJson(JsonReader jsonReader)
Reads an instance of ManagedDiskParameters from the JsonReader.
Parameters:
Returns:
Throws:
securityProfile
public VMDiskSecurityProfile securityProfile()
Get the securityProfile property: Specifies the security profile for the managed disk.
Returns:
storageAccountType
public StorageAccountTypes storageAccountType()
Get the storageAccountType property: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ManagedDiskParameters.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
withDiskEncryptionSet
public ManagedDiskParameters withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)
Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk.
Parameters:
Returns:
withId
public ManagedDiskParameters withId(String id)
Overrides:
ManagedDiskParameters.withId(String id)Parameters:
withSecurityProfile
public ManagedDiskParameters withSecurityProfile(VMDiskSecurityProfile securityProfile)
Set the securityProfile property: Specifies the security profile for the managed disk.
Parameters:
Returns:
withStorageAccountType
public ManagedDiskParameters withStorageAccountType(StorageAccountTypes storageAccountType)
Set the storageAccountType property: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.
Parameters:
Returns:
Applies to
Azure SDK for Java