OSDiskImageEncryption Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. DiskImageEncryption - com.
azure. resourcemanager. compute. models. OSDiskImageEncryption
- com.
- com.
public final class OSDiskImageEncryption
extends DiskImageEncryption
Contains encryption settings for an OS disk image.
Constructor Summary
Constructor | Description |
---|---|
OSDiskImageEncryption() |
Creates an instance of OSDisk |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
OSDisk |
fromJson(JsonReader jsonReader)
Reads an instance of OSDisk |
OSDisk |
securityProfile()
Get the security |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
OSDisk |
withDiskEncryptionSetId(String diskEncryptionSetId)
Set the disk |
OSDisk |
withSecurityProfile(OSDiskImageSecurityProfile securityProfile)
Set the security |
Methods inherited from DiskImageEncryption
Methods inherited from java.lang.Object
Constructor Details
OSDiskImageEncryption
public OSDiskImageEncryption()
Creates an instance of OSDiskImageEncryption class.
Method Details
fromJson
public static OSDiskImageEncryption fromJson(JsonReader jsonReader)
Reads an instance of OSDiskImageEncryption from the JsonReader.
Parameters:
Returns:
Throws:
securityProfile
public OSDiskImageSecurityProfile securityProfile()
Get the securityProfile property: This property specifies the security profile of an OS disk image.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
OSDiskImageEncryption.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
OSDiskImageEncryption.validate()withDiskEncryptionSetId
public OSDiskImageEncryption withDiskEncryptionSetId(String diskEncryptionSetId)
Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.
Overrides:
OSDiskImageEncryption.withDiskEncryptionSetId(String diskEncryptionSetId)Parameters:
withSecurityProfile
public OSDiskImageEncryption withSecurityProfile(OSDiskImageSecurityProfile securityProfile)
Set the securityProfile property: This property specifies the security profile of an OS disk image.
Parameters:
Returns:
Applies to
Azure SDK for Java