
com.pulumi.azurenative.azurefleet.outputs.KeyVaultSecretReferenceResponse Maven / Gradle / Ivy
// *** 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.outputs;
import com.pulumi.azurenative.azurefleet.outputs.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class KeyVaultSecretReferenceResponse {
/**
* @return The URL referencing a secret in a Key Vault.
*
*/
private String secretUrl;
/**
* @return The relative URL of the Key Vault containing the secret.
*
*/
private SubResourceResponse sourceVault;
private KeyVaultSecretReferenceResponse() {}
/**
* @return The URL referencing a secret in a Key Vault.
*
*/
public String secretUrl() {
return this.secretUrl;
}
/**
* @return The relative URL of the Key Vault containing the secret.
*
*/
public SubResourceResponse sourceVault() {
return this.sourceVault;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KeyVaultSecretReferenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String secretUrl;
private SubResourceResponse sourceVault;
public Builder() {}
public Builder(KeyVaultSecretReferenceResponse defaults) {
Objects.requireNonNull(defaults);
this.secretUrl = defaults.secretUrl;
this.sourceVault = defaults.sourceVault;
}
@CustomType.Setter
public Builder secretUrl(String secretUrl) {
if (secretUrl == null) {
throw new MissingRequiredPropertyException("KeyVaultSecretReferenceResponse", "secretUrl");
}
this.secretUrl = secretUrl;
return this;
}
@CustomType.Setter
public Builder sourceVault(SubResourceResponse sourceVault) {
if (sourceVault == null) {
throw new MissingRequiredPropertyException("KeyVaultSecretReferenceResponse", "sourceVault");
}
this.sourceVault = sourceVault;
return this;
}
public KeyVaultSecretReferenceResponse build() {
final var _resultValue = new KeyVaultSecretReferenceResponse();
_resultValue.secretUrl = secretUrl;
_resultValue.sourceVault = sourceVault;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy