public class SnapshotInner
extends com.azure.core.management.Resource
Constructor and Description |
---|
SnapshotInner() |
Modifier and Type | Method and Description |
---|---|
CreationData |
creationData()
Get the creationData property: Disk source information.
|
Long |
diskSizeBytes()
Get the diskSizeBytes property: The size of the disk in bytes.
|
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.
|
Encryption |
encryption()
Get the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys
or platform managed keys.
|
EncryptionSettingsCollection |
encryptionSettingsCollection()
Get the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can
contain multiple encryption settings per disk or snapshot.
|
HyperVGeneration |
hyperVGeneration()
Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.
|
Boolean |
incremental()
Get the incremental property: Whether a snapshot is incremental.
|
String |
managedBy()
Get the managedBy property: Unused.
|
OperatingSystemTypes |
osType()
Get the osType property: The Operating System type.
|
String |
provisioningState()
Get the provisioningState property: The disk provisioning state.
|
SnapshotSku |
sku()
Get the sku property: The snapshots sku name.
|
OffsetDateTime |
timeCreated()
Get the timeCreated property: The time when the disk was created.
|
String |
uniqueId()
Get the uniqueId property: Unique Guid identifying the resource.
|
void |
validate()
Validates the instance.
|
SnapshotInner |
withCreationData(CreationData creationData)
Set the creationData property: Disk source information.
|
SnapshotInner |
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.
|
SnapshotInner |
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.
|
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.
|
SnapshotInner |
withHyperVGeneration(HyperVGeneration hyperVGeneration)
Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.
|
SnapshotInner |
withIncremental(Boolean incremental)
Set the incremental property: Whether a snapshot is incremental.
|
SnapshotInner |
withOsType(OperatingSystemTypes osType)
Set the osType property: The Operating System type.
|
SnapshotInner |
withSku(SnapshotSku sku)
Set the sku property: The snapshots sku name.
|
public String managedBy()
public SnapshotSku sku()
public SnapshotInner withSku(SnapshotSku sku)
sku
- the sku value to set.public OffsetDateTime timeCreated()
public OperatingSystemTypes osType()
public SnapshotInner withOsType(OperatingSystemTypes osType)
osType
- the osType value to set.public HyperVGeneration hyperVGeneration()
public SnapshotInner withHyperVGeneration(HyperVGeneration hyperVGeneration)
hyperVGeneration
- the hyperVGeneration value to set.public CreationData creationData()
public SnapshotInner withCreationData(CreationData creationData)
creationData
- the creationData value to set.public Integer diskSizeGB()
public SnapshotInner withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to set.public Long diskSizeBytes()
public String uniqueId()
public EncryptionSettingsCollection encryptionSettingsCollection()
public SnapshotInner withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection)
encryptionSettingsCollection
- the encryptionSettingsCollection value to set.public String provisioningState()
public Boolean incremental()
public SnapshotInner withIncremental(Boolean incremental)
incremental
- the incremental value to set.public Encryption encryption()
public SnapshotInner withEncryption(Encryption encryption)
encryption
- the encryption value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.