com.pulumi.azure.compute.inputs.SnapshotEncryptionSettingsDiskEncryptionKeyArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.compute.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class SnapshotEncryptionSettingsDiskEncryptionKeyArgs extends com.pulumi.resources.ResourceArgs {
public static final SnapshotEncryptionSettingsDiskEncryptionKeyArgs Empty = new SnapshotEncryptionSettingsDiskEncryptionKeyArgs();
/**
* The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as `id` on the `azure.keyvault.Secret` resource.
*
*/
@Import(name="secretUrl", required=true)
private Output secretUrl;
/**
* @return The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as `id` on the `azure.keyvault.Secret` resource.
*
*/
public Output secretUrl() {
return this.secretUrl;
}
/**
* The ID of the source Key Vault. This can be found as `id` on the `azure.keyvault.KeyVault` resource.
*
*/
@Import(name="sourceVaultId", required=true)
private Output sourceVaultId;
/**
* @return The ID of the source Key Vault. This can be found as `id` on the `azure.keyvault.KeyVault` resource.
*
*/
public Output sourceVaultId() {
return this.sourceVaultId;
}
private SnapshotEncryptionSettingsDiskEncryptionKeyArgs() {}
private SnapshotEncryptionSettingsDiskEncryptionKeyArgs(SnapshotEncryptionSettingsDiskEncryptionKeyArgs $) {
this.secretUrl = $.secretUrl;
this.sourceVaultId = $.sourceVaultId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SnapshotEncryptionSettingsDiskEncryptionKeyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private SnapshotEncryptionSettingsDiskEncryptionKeyArgs $;
public Builder() {
$ = new SnapshotEncryptionSettingsDiskEncryptionKeyArgs();
}
public Builder(SnapshotEncryptionSettingsDiskEncryptionKeyArgs defaults) {
$ = new SnapshotEncryptionSettingsDiskEncryptionKeyArgs(Objects.requireNonNull(defaults));
}
/**
* @param secretUrl The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as `id` on the `azure.keyvault.Secret` resource.
*
* @return builder
*
*/
public Builder secretUrl(Output secretUrl) {
$.secretUrl = secretUrl;
return this;
}
/**
* @param secretUrl The URL to the Key Vault Secret used as the Disk Encryption Key. This can be found as `id` on the `azure.keyvault.Secret` resource.
*
* @return builder
*
*/
public Builder secretUrl(String secretUrl) {
return secretUrl(Output.of(secretUrl));
}
/**
* @param sourceVaultId The ID of the source Key Vault. This can be found as `id` on the `azure.keyvault.KeyVault` resource.
*
* @return builder
*
*/
public Builder sourceVaultId(Output sourceVaultId) {
$.sourceVaultId = sourceVaultId;
return this;
}
/**
* @param sourceVaultId The ID of the source Key Vault. This can be found as `id` on the `azure.keyvault.KeyVault` resource.
*
* @return builder
*
*/
public Builder sourceVaultId(String sourceVaultId) {
return sourceVaultId(Output.of(sourceVaultId));
}
public SnapshotEncryptionSettingsDiskEncryptionKeyArgs build() {
if ($.secretUrl == null) {
throw new MissingRequiredPropertyException("SnapshotEncryptionSettingsDiskEncryptionKeyArgs", "secretUrl");
}
if ($.sourceVaultId == null) {
throw new MissingRequiredPropertyException("SnapshotEncryptionSettingsDiskEncryptionKeyArgs", "sourceVaultId");
}
return $;
}
}
}