Class SnapshotUpdate
java.lang.Object
com.azure.resourcemanager.compute.models.SnapshotUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SnapshotUpdate>
public final class SnapshotUpdate
extends Object
implements com.azure.json.JsonSerializable<SnapshotUpdate>
Snapshot update resource.
-
Constructor Summary
Constructors -
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 SnapshotUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SnapshotUpdate 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.sku()Get the sku property: The snapshots sku name.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.tags()Get the tags property: Resource tags.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.withSku(SnapshotSku sku) Set the sku property: The snapshots sku name.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.Set the tags property: Resource tags.Methods inherited from class java.lang.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
-
SnapshotUpdate
public SnapshotUpdate()Creates an instance of SnapshotUpdate class.
-
-
Method Details
-
tags
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
Set the tags property: Resource tags.- Parameters:
tags- the tags value to set.- Returns:
- the SnapshotUpdate object itself.
-
sku
Get the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot.- Returns:
- the sku value.
-
withSku
Set the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot.- Parameters:
sku- the sku value to set.- Returns:
- the SnapshotUpdate object itself.
-
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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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 SnapshotUpdate 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
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 SnapshotUpdate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SnapshotUpdate>- Throws:
IOException
-
fromJson
Reads an instance of SnapshotUpdate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SnapshotUpdate 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 SnapshotUpdate.
-