public class SnapshotUpdate extends Object
Constructor and Description |
---|
SnapshotUpdate() |
Modifier and Type | Method and Description |
---|---|
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.
|
OperatingSystemTypes |
osType()
Get the osType property: the Operating System type.
|
SnapshotSku |
sku()
Get the sku property: The snapshots sku name.
|
Map<String,String> |
tags()
Get the tags property: Resource tags.
|
void |
validate()
Validates the instance.
|
SnapshotUpdate |
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.
|
SnapshotUpdate |
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.
|
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.
|
SnapshotUpdate |
withOsType(OperatingSystemTypes osType)
Set the osType property: the Operating System type.
|
SnapshotUpdate |
withSku(SnapshotSku sku)
Set the sku property: The snapshots sku name.
|
SnapshotUpdate |
withTags(Map<String,String> tags)
Set the tags property: Resource tags.
|
public Map<String,String> tags()
public SnapshotUpdate withTags(Map<String,String> tags)
tags
- the tags value to set.public SnapshotSku sku()
public SnapshotUpdate withSku(SnapshotSku sku)
sku
- the sku value to set.public OperatingSystemTypes osType()
public SnapshotUpdate withOsType(OperatingSystemTypes osType)
osType
- the osType value to set.public Integer diskSizeGB()
public SnapshotUpdate withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to set.public EncryptionSettingsCollection encryptionSettingsCollection()
public SnapshotUpdate withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection)
encryptionSettingsCollection
- the encryptionSettingsCollection value to set.public Encryption encryption()
public SnapshotUpdate 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.