Class SnapshotUpdateProperties
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.SnapshotUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SnapshotUpdateProperties>
public final class SnapshotUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<SnapshotUpdateProperties>
Snapshot resource update properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SnapshotUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.Get the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create.Get the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.Get the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.static SnapshotUpdatePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SnapshotUpdateProperties from the JsonReader.Get the networkAccessPolicy property: Policy for accessing the disk via network.osType()Get the osType property: the Operating System type.Get the publicNetworkAccess property: Policy for controlling export on the disk.Get the snapshotAccessState property: The state of snapshot which determines the access availability of the snapshot.Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.Get the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode) Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.withDiskAccessId(String diskAccessId) Set the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.withDiskSizeGB(Integer diskSizeGB) Set the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create.withEncryption(Encryption encryption) Set the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection) Set the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.withNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy) Set the networkAccessPolicy property: Policy for accessing the disk via network.withOsType(OperatingSystemTypes osType) Set the osType property: the Operating System type.withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) Set the publicNetworkAccess property: Policy for controlling export on the disk.withSupportedCapabilities(SupportedCapabilities supportedCapabilities) Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.withSupportsHibernation(Boolean supportsHibernation) Set the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SnapshotUpdateProperties
public SnapshotUpdateProperties()Creates an instance of SnapshotUpdateProperties class.
-
-
Method Details
-
osType
Get the osType property: the Operating System type.- Returns:
- the osType value.
-
withOsType
Set the osType property: the Operating System type.- Parameters:
osType- the osType value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
diskSizeGB
Get the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.- Returns:
- the diskSizeGB value.
-
withDiskSizeGB
Set the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.- Parameters:
diskSizeGB- the diskSizeGB value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
encryptionSettingsCollection
Get the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.- Returns:
- the encryptionSettingsCollection value.
-
withEncryptionSettingsCollection
public SnapshotUpdateProperties withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection) Set the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.- Parameters:
encryptionSettingsCollection- the encryptionSettingsCollection value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
encryption
Get the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.- Returns:
- the encryption value.
-
withEncryption
Set the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.- Parameters:
encryption- the encryption value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
networkAccessPolicy
Get the networkAccessPolicy property: Policy for accessing the disk via network.- Returns:
- the networkAccessPolicy value.
-
withNetworkAccessPolicy
Set the networkAccessPolicy property: Policy for accessing the disk via network.- Parameters:
networkAccessPolicy- the networkAccessPolicy value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
diskAccessId
Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.- Returns:
- the diskAccessId value.
-
withDiskAccessId
Set the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.- Parameters:
diskAccessId- the diskAccessId value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
supportsHibernation
Get the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.- Returns:
- the supportsHibernation value.
-
withSupportsHibernation
Set the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.- Parameters:
supportsHibernation- the supportsHibernation value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
publicNetworkAccess
Get the publicNetworkAccess property: Policy for controlling export on the disk.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
Set the publicNetworkAccess property: Policy for controlling export on the disk.- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
dataAccessAuthMode
Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.- Returns:
- the dataAccessAuthMode value.
-
withDataAccessAuthMode
Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.- Parameters:
dataAccessAuthMode- the dataAccessAuthMode value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
supportedCapabilities
Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.- Returns:
- the supportedCapabilities value.
-
withSupportedCapabilities
public SnapshotUpdateProperties withSupportedCapabilities(SupportedCapabilities supportedCapabilities) Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.- Parameters:
supportedCapabilities- the supportedCapabilities value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
snapshotAccessState
Get the snapshotAccessState property: The state of snapshot which determines the access availability of the snapshot.- Returns:
- the snapshotAccessState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SnapshotUpdateProperties>- Throws:
IOException
-
fromJson
public static SnapshotUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SnapshotUpdateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SnapshotUpdateProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the SnapshotUpdateProperties.
-