
com.pulumi.azurenative.databricks.outputs.ManagedDiskEncryptionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.databricks.outputs;
import com.pulumi.azurenative.databricks.outputs.ManagedDiskEncryptionResponseKeyVaultProperties;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ManagedDiskEncryptionResponse {
/**
* @return The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Keyvault
*
*/
private String keySource;
/**
* @return Key Vault input properties for encryption.
*
*/
private ManagedDiskEncryptionResponseKeyVaultProperties keyVaultProperties;
/**
* @return Indicate whether the latest key version should be automatically used for Managed Disk Encryption.
*
*/
private @Nullable Boolean rotationToLatestKeyVersionEnabled;
private ManagedDiskEncryptionResponse() {}
/**
* @return The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Keyvault
*
*/
public String keySource() {
return this.keySource;
}
/**
* @return Key Vault input properties for encryption.
*
*/
public ManagedDiskEncryptionResponseKeyVaultProperties keyVaultProperties() {
return this.keyVaultProperties;
}
/**
* @return Indicate whether the latest key version should be automatically used for Managed Disk Encryption.
*
*/
public Optional rotationToLatestKeyVersionEnabled() {
return Optional.ofNullable(this.rotationToLatestKeyVersionEnabled);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ManagedDiskEncryptionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String keySource;
private ManagedDiskEncryptionResponseKeyVaultProperties keyVaultProperties;
private @Nullable Boolean rotationToLatestKeyVersionEnabled;
public Builder() {}
public Builder(ManagedDiskEncryptionResponse defaults) {
Objects.requireNonNull(defaults);
this.keySource = defaults.keySource;
this.keyVaultProperties = defaults.keyVaultProperties;
this.rotationToLatestKeyVersionEnabled = defaults.rotationToLatestKeyVersionEnabled;
}
@CustomType.Setter
public Builder keySource(String keySource) {
if (keySource == null) {
throw new MissingRequiredPropertyException("ManagedDiskEncryptionResponse", "keySource");
}
this.keySource = keySource;
return this;
}
@CustomType.Setter
public Builder keyVaultProperties(ManagedDiskEncryptionResponseKeyVaultProperties keyVaultProperties) {
if (keyVaultProperties == null) {
throw new MissingRequiredPropertyException("ManagedDiskEncryptionResponse", "keyVaultProperties");
}
this.keyVaultProperties = keyVaultProperties;
return this;
}
@CustomType.Setter
public Builder rotationToLatestKeyVersionEnabled(@Nullable Boolean rotationToLatestKeyVersionEnabled) {
this.rotationToLatestKeyVersionEnabled = rotationToLatestKeyVersionEnabled;
return this;
}
public ManagedDiskEncryptionResponse build() {
final var _resultValue = new ManagedDiskEncryptionResponse();
_resultValue.keySource = keySource;
_resultValue.keyVaultProperties = keyVaultProperties;
_resultValue.rotationToLatestKeyVersionEnabled = rotationToLatestKeyVersionEnabled;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy