Class SnapshotUpdate
java.lang.Object
com.microsoft.azure.management.compute.SnapshotUpdate
Snapshot update resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet aRM id of the DiskAccess resource for using private endpoints on disks.Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create.Get encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.Get encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.Get possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.osType()
Get the Operating System type.sku()
Get the sku value.tags()
Get resource tags.withDiskAccessId
(String diskAccessId) Set aRM id of the DiskAccess resource for using private endpoints on disks.withDiskSizeGB
(Integer diskSizeGB) Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create.withEncryption
(Encryption encryption) Set encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.withEncryptionSettingsCollection
(EncryptionSettingsCollection encryptionSettingsCollection) Set encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.withNetworkAccessPolicy
(NetworkAccessPolicy networkAccessPolicy) Set possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.withOsType
(OperatingSystemTypes osType) Set the Operating System type.withSku
(SnapshotSku sku) Set the sku value.Set resource tags.
-
Constructor Details
-
SnapshotUpdate
public SnapshotUpdate()
-
-
Method Details
-
osType
Get the Operating System type. Possible values include: 'Windows', 'Linux'.- Returns:
- the osType value
-
withOsType
Set the Operating System type. Possible values include: 'Windows', 'Linux'.- Parameters:
osType
- the osType value to set- Returns:
- the SnapshotUpdate object itself.
-
diskSizeGB
Get 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 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 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 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 encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.- Returns:
- the encryption value
-
withEncryption
Set 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 possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.- Returns:
- the networkAccessPolicy value
-
withNetworkAccessPolicy
Set possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.- Parameters:
networkAccessPolicy
- the networkAccessPolicy value to set- Returns:
- the SnapshotUpdate object itself.
-
diskAccessId
Get aRM id of the DiskAccess resource for using private endpoints on disks.- Returns:
- the diskAccessId value
-
withDiskAccessId
Set aRM id of the DiskAccess resource for using private endpoints on disks.- Parameters:
diskAccessId
- the diskAccessId value to set- Returns:
- the SnapshotUpdate object itself.
-
tags
Get resource tags.- Returns:
- the tags value
-
withTags
Set resource tags.- Parameters:
tags
- the tags value to set- Returns:
- the SnapshotUpdate object itself.
-
sku
Get the sku value.- Returns:
- the sku value
-
withSku
Set the sku value.- Parameters:
sku
- the sku value to set- Returns:
- the SnapshotUpdate object itself.
-