Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Encryption settings for disk or snapshot.
/** * Encryption settings for disk or snapshot. */
public class EncryptionSettingsCollection {
Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
/** * Set this flag to true and provide DiskEncryptionKey and optional * KeyEncryptionKey to enable encryption. Set this flag to false and remove * DiskEncryptionKey and KeyEncryptionKey to disable encryption. If * EncryptionSettings is null in the request object, the existing settings * remain unchanged. */
@JsonProperty(value = "enabled", required = true) private boolean enabled;
A collection of encryption settings, one for each disk volume.
/** * A collection of encryption settings, one for each disk volume. */
@JsonProperty(value = "encryptionSettings") private List<EncryptionSettingsElement> encryptionSettings;
Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
/** * Describes what type of encryption is used for the disks. Once this field * is set, it cannot be overwritten. '1.0' corresponds to Azure Disk * Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption. */
@JsonProperty(value = "encryptionSettingsVersion") private String encryptionSettingsVersion;
Get set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
Returns:the enabled value
/** * Get set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged. * * @return the enabled value */
public boolean enabled() { return this.enabled; }
Set set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
Params:
  • enabled – the enabled value to set
Returns:the EncryptionSettingsCollection object itself.
/** * Set set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged. * * @param enabled the enabled value to set * @return the EncryptionSettingsCollection object itself. */
public EncryptionSettingsCollection withEnabled(boolean enabled) { this.enabled = enabled; return this; }
Get a collection of encryption settings, one for each disk volume.
Returns:the encryptionSettings value
/** * Get a collection of encryption settings, one for each disk volume. * * @return the encryptionSettings value */
public List<EncryptionSettingsElement> encryptionSettings() { return this.encryptionSettings; }
Set a collection of encryption settings, one for each disk volume.
Params:
  • encryptionSettings – the encryptionSettings value to set
Returns:the EncryptionSettingsCollection object itself.
/** * Set a collection of encryption settings, one for each disk volume. * * @param encryptionSettings the encryptionSettings value to set * @return the EncryptionSettingsCollection object itself. */
public EncryptionSettingsCollection withEncryptionSettings(List<EncryptionSettingsElement> encryptionSettings) { this.encryptionSettings = encryptionSettings; return this; }
Get describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
Returns:the encryptionSettingsVersion value
/** * Get describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption. * * @return the encryptionSettingsVersion value */
public String encryptionSettingsVersion() { return this.encryptionSettingsVersion; }
Set describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
Params:
  • encryptionSettingsVersion – the encryptionSettingsVersion value to set
Returns:the EncryptionSettingsCollection object itself.
/** * Set describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption. * * @param encryptionSettingsVersion the encryptionSettingsVersion value to set * @return the EncryptionSettingsCollection object itself. */
public EncryptionSettingsCollection withEncryptionSettingsVersion(String encryptionSettingsVersion) { this.encryptionSettingsVersion = encryptionSettingsVersion; return this; } }