Class SnapshotInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.compute.fluent.models.SnapshotInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class SnapshotInner
extends com.azure.core.management.Resource
Snapshot resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the completionPercent property: Percentage complete for the background copy when a resource is created via the CopyStart operation.Get the copyCompletionError property: Indicates the error details if the background copy of a resource created via the CopyStart operation fails.Get the creationData property: Disk source information.Get 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 diskSizeBytes property: The size of the disk in bytes.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 diskState property: The state of the snapshot.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.Get the extendedLocation property: The extended location where the snapshot will be created.static SnapshotInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SnapshotInner from the JsonReader.Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.id()Get the id property: Fully qualified resource Id for the resource.Get the incremental property: Whether a snapshot is incremental.Get the incrementalSnapshotFamilyId property: Incremental snapshots for a disk share an incremental snapshot family id.Get the managedBy property: Unused.name()Get the name property: The name of the resource.Get the networkAccessPolicy property: Policy for accessing the disk via network.osType()Get the osType property: The Operating System type.Get the provisioningState property: The disk provisioning state.Get the publicNetworkAccess property: Policy for controlling export on the disk.Get the purchasePlan property: Purchase plan information for the image from which the source disk for the snapshot was originally created.Get the securityProfile property: Contains the security related information for the resource.sku()Get the sku property: The snapshots sku name.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 source disk from the snapshot was originally created.Get the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.com.azure.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.Get the timeCreated property: The time when the snapshot was created.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.uniqueId()Get the uniqueId property: Unique Guid identifying the resource.voidvalidate()Validates the instance.withCompletionPercent(Float completionPercent) Set the completionPercent property: Percentage complete for the background copy when a resource is created via the CopyStart operation.withCopyCompletionError(CopyCompletionError copyCompletionError) Set the copyCompletionError property: Indicates the error details if the background copy of a resource created via the CopyStart operation fails.withCreationData(CreationData creationData) Set the creationData property: Disk source information.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.withExtendedLocation(ExtendedLocation extendedLocation) Set the extendedLocation property: The extended location where the snapshot will be created.withHyperVGeneration(HyperVGeneration hyperVGeneration) Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.withIncremental(Boolean incremental) Set the incremental property: Whether a snapshot is incremental.withLocation(String location) 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.withPurchasePlan(DiskPurchasePlan purchasePlan) Set the purchasePlan property: Purchase plan information for the image from which the source disk for the snapshot was originally created.withSecurityProfile(DiskSecurityProfile securityProfile) Set the securityProfile property: Contains the security related information for the resource.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 source disk from the snapshot was originally created.withSupportsHibernation(Boolean supportsHibernation) Set the supportsHibernation property: Indicates the OS on a snapshot supports hibernation.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods 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
-
SnapshotInner
public SnapshotInner()Creates an instance of SnapshotInner class.
-
-
Method Details
-
managedBy
Get the managedBy property: Unused. Always Null.- Returns:
- the managedBy value.
-
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 SnapshotInner object itself.
-
extendedLocation
Get the extendedLocation property: The extended location where the snapshot will be created. Extended location cannot be changed.- Returns:
- the extendedLocation value.
-
withExtendedLocation
Set the extendedLocation property: The extended location where the snapshot will be created. Extended location cannot be changed.- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the SnapshotInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
timeCreated
Get the timeCreated property: The time when the snapshot was created.- Returns:
- the timeCreated value.
-
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 SnapshotInner object itself.
-
hyperVGeneration
Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.- Returns:
- the hyperVGeneration value.
-
withHyperVGeneration
Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.- Parameters:
hyperVGeneration- the hyperVGeneration value to set.- Returns:
- the SnapshotInner object itself.
-
purchasePlan
Get the purchasePlan property: Purchase plan information for the image from which the source disk for the snapshot was originally created.- Returns:
- the purchasePlan value.
-
withPurchasePlan
Set the purchasePlan property: Purchase plan information for the image from which the source disk for the snapshot was originally created.- Parameters:
purchasePlan- the purchasePlan value to set.- Returns:
- the SnapshotInner object itself.
-
supportedCapabilities
Get the supportedCapabilities property: List of supported capabilities for the image from which the source disk from the snapshot was originally created.- Returns:
- the supportedCapabilities value.
-
withSupportedCapabilities
Set the supportedCapabilities property: List of supported capabilities for the image from which the source disk from the snapshot was originally created.- Parameters:
supportedCapabilities- the supportedCapabilities value to set.- Returns:
- the SnapshotInner object itself.
-
creationData
Get the creationData property: Disk source information. CreationData information cannot be changed after the disk has been created.- Returns:
- the creationData value.
-
withCreationData
Set the creationData property: Disk source information. CreationData information cannot be changed after the disk has been created.- Parameters:
creationData- the creationData value to set.- Returns:
- the SnapshotInner 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 SnapshotInner object itself.
-
diskSizeBytes
Get the diskSizeBytes property: The size of the disk in bytes. This field is read only.- Returns:
- the diskSizeBytes value.
-
diskState
Get the diskState property: The state of the snapshot.- Returns:
- the diskState value.
-
uniqueId
Get the uniqueId property: Unique Guid identifying the resource.- Returns:
- the uniqueId value.
-
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 SnapshotInner 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 SnapshotInner object itself.
-
provisioningState
Get the provisioningState property: The disk provisioning state.- Returns:
- the provisioningState value.
-
incremental
Get the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed.- Returns:
- the incremental value.
-
withIncremental
Set the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed.- Parameters:
incremental- the incremental value to set.- Returns:
- the SnapshotInner object itself.
-
incrementalSnapshotFamilyId
Get the incrementalSnapshotFamilyId property: Incremental snapshots for a disk share an incremental snapshot family id. The Get Page Range Diff API can only be called on incremental snapshots with the same family id.- Returns:
- the incrementalSnapshotFamilyId value.
-
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 SnapshotInner 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 SnapshotInner 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 SnapshotInner object itself.
-
securityProfile
Get the securityProfile property: Contains the security related information for the resource.- Returns:
- the securityProfile value.
-
withSecurityProfile
Set the securityProfile property: Contains the security related information for the resource.- Parameters:
securityProfile- the securityProfile value to set.- Returns:
- the SnapshotInner 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 SnapshotInner 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 SnapshotInner object itself.
-
completionPercent
Get the completionPercent property: Percentage complete for the background copy when a resource is created via the CopyStart operation.- Returns:
- the completionPercent value.
-
withCompletionPercent
Set the completionPercent property: Percentage complete for the background copy when a resource is created via the CopyStart operation.- Parameters:
completionPercent- the completionPercent value to set.- Returns:
- the SnapshotInner object itself.
-
copyCompletionError
Get the copyCompletionError property: Indicates the error details if the background copy of a resource created via the CopyStart operation fails.- Returns:
- the copyCompletionError value.
-
withCopyCompletionError
Set the copyCompletionError property: Indicates the error details if the background copy of a resource created via the CopyStart operation fails.- Parameters:
copyCompletionError- the copyCompletionError value to set.- Returns:
- the SnapshotInner 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 SnapshotInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of SnapshotInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SnapshotInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SnapshotInner.
-