
com.pulumi.azurenative.azurefleet.inputs.KeyVaultSecretReferenceArgs 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.azurefleet.inputs;
import com.pulumi.azurenative.azurefleet.inputs.SubResourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Describes a reference to Key Vault Secret
*
*/
public final class KeyVaultSecretReferenceArgs extends com.pulumi.resources.ResourceArgs {
public static final KeyVaultSecretReferenceArgs Empty = new KeyVaultSecretReferenceArgs();
/**
* The URL referencing a secret in a Key Vault.
*
*/
@Import(name="secretUrl", required=true)
private Output secretUrl;
/**
* @return The URL referencing a secret in a Key Vault.
*
*/
public Output secretUrl() {
return this.secretUrl;
}
/**
* The relative URL of the Key Vault containing the secret.
*
*/
@Import(name="sourceVault", required=true)
private Output sourceVault;
/**
* @return The relative URL of the Key Vault containing the secret.
*
*/
public Output sourceVault() {
return this.sourceVault;
}
private KeyVaultSecretReferenceArgs() {}
private KeyVaultSecretReferenceArgs(KeyVaultSecretReferenceArgs $) {
this.secretUrl = $.secretUrl;
this.sourceVault = $.sourceVault;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KeyVaultSecretReferenceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private KeyVaultSecretReferenceArgs $;
public Builder() {
$ = new KeyVaultSecretReferenceArgs();
}
public Builder(KeyVaultSecretReferenceArgs defaults) {
$ = new KeyVaultSecretReferenceArgs(Objects.requireNonNull(defaults));
}
/**
* @param secretUrl The URL referencing a secret in a Key Vault.
*
* @return builder
*
*/
public Builder secretUrl(Output secretUrl) {
$.secretUrl = secretUrl;
return this;
}
/**
* @param secretUrl The URL referencing a secret in a Key Vault.
*
* @return builder
*
*/
public Builder secretUrl(String secretUrl) {
return secretUrl(Output.of(secretUrl));
}
/**
* @param sourceVault The relative URL of the Key Vault containing the secret.
*
* @return builder
*
*/
public Builder sourceVault(Output sourceVault) {
$.sourceVault = sourceVault;
return this;
}
/**
* @param sourceVault The relative URL of the Key Vault containing the secret.
*
* @return builder
*
*/
public Builder sourceVault(SubResourceArgs sourceVault) {
return sourceVault(Output.of(sourceVault));
}
public KeyVaultSecretReferenceArgs build() {
if ($.secretUrl == null) {
throw new MissingRequiredPropertyException("KeyVaultSecretReferenceArgs", "secretUrl");
}
if ($.sourceVault == null) {
throw new MissingRequiredPropertyException("KeyVaultSecretReferenceArgs", "sourceVault");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy