Class SnapshotUpdateProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.SnapshotUpdateProperties
-
public final class SnapshotUpdateProperties extends Object
Snapshot resource update properties.
-
-
Constructor Summary
Constructors Constructor Description SnapshotUpdateProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataAccessAuthModedataAccessAuthMode()Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.StringdiskAccessId()Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.IntegerdiskSizeGB()Get the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create.Encryptionencryption()Get the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.EncryptionSettingsCollectionencryptionSettingsCollection()Get the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.NetworkAccessPolicynetworkAccessPolicy()Get the networkAccessPolicy property: Policy for accessing the disk via network.OperatingSystemTypesosType()Get the osType property: the Operating System type.PublicNetworkAccesspublicNetworkAccess()Get the publicNetworkAccess property: Policy for controlling export on the disk.SupportedCapabilitiessupportedCapabilities()Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.BooleansupportsHibernation()Get the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.voidvalidate()Validates the instance.SnapshotUpdatePropertieswithDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode)Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.SnapshotUpdatePropertieswithDiskAccessId(String diskAccessId)Set the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.SnapshotUpdatePropertieswithDiskSizeGB(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.SnapshotUpdatePropertieswithEncryption(Encryption encryption)Set the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.SnapshotUpdatePropertieswithEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection)Set the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.SnapshotUpdatePropertieswithNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy)Set the networkAccessPolicy property: Policy for accessing the disk via network.SnapshotUpdatePropertieswithOsType(OperatingSystemTypes osType)Set the osType property: the Operating System type.SnapshotUpdatePropertieswithPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)Set the publicNetworkAccess property: Policy for controlling export on the disk.SnapshotUpdatePropertieswithSupportedCapabilities(SupportedCapabilities supportedCapabilities)Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.SnapshotUpdatePropertieswithSupportsHibernation(Boolean supportsHibernation)Set the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.
-
-
-
Method Detail
-
osType
public OperatingSystemTypes osType()
Get the osType property: the Operating System type.- Returns:
- the osType value.
-
withOsType
public SnapshotUpdateProperties withOsType(OperatingSystemTypes osType)
Set the osType property: the Operating System type.- Parameters:
osType- the osType value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
diskSizeGB
public Integer 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
public SnapshotUpdateProperties 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. 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
public EncryptionSettingsCollection 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
public Encryption 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
public SnapshotUpdateProperties 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.- Parameters:
encryption- the encryption value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
networkAccessPolicy
public NetworkAccessPolicy networkAccessPolicy()
Get the networkAccessPolicy property: Policy for accessing the disk via network.- Returns:
- the networkAccessPolicy value.
-
withNetworkAccessPolicy
public SnapshotUpdateProperties withNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy)
Set the networkAccessPolicy property: Policy for accessing the disk via network.- Parameters:
networkAccessPolicy- the networkAccessPolicy value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
diskAccessId
public String diskAccessId()
Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.- Returns:
- the diskAccessId value.
-
withDiskAccessId
public SnapshotUpdateProperties withDiskAccessId(String diskAccessId)
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
public Boolean supportsHibernation()
Get the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.- Returns:
- the supportsHibernation value.
-
withSupportsHibernation
public SnapshotUpdateProperties withSupportsHibernation(Boolean supportsHibernation)
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
public PublicNetworkAccess publicNetworkAccess()
Get the publicNetworkAccess property: Policy for controlling export on the disk.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
public SnapshotUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
Set the publicNetworkAccess property: Policy for controlling export on the disk.- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the SnapshotUpdateProperties object itself.
-
dataAccessAuthMode
public DataAccessAuthMode dataAccessAuthMode()
Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.- Returns:
- the dataAccessAuthMode value.
-
withDataAccessAuthMode
public SnapshotUpdateProperties withDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode)
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
public SupportedCapabilities 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-