
com.pulumi.azurenative.servicelinker.outputs.KeyVaultSecretReferenceSecretInfoResponse 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.servicelinker.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class KeyVaultSecretReferenceSecretInfoResponse {
/**
* @return Name of the Key Vault secret.
*
*/
private @Nullable String name;
/**
* @return The secret type.
* Expected value is 'keyVaultSecretReference'.
*
*/
private String secretType;
/**
* @return Version of the Key Vault secret.
*
*/
private @Nullable String version;
private KeyVaultSecretReferenceSecretInfoResponse() {}
/**
* @return Name of the Key Vault secret.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The secret type.
* Expected value is 'keyVaultSecretReference'.
*
*/
public String secretType() {
return this.secretType;
}
/**
* @return Version of the Key Vault secret.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KeyVaultSecretReferenceSecretInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String name;
private String secretType;
private @Nullable String version;
public Builder() {}
public Builder(KeyVaultSecretReferenceSecretInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.secretType = defaults.secretType;
this.version = defaults.version;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder secretType(String secretType) {
if (secretType == null) {
throw new MissingRequiredPropertyException("KeyVaultSecretReferenceSecretInfoResponse", "secretType");
}
this.secretType = secretType;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public KeyVaultSecretReferenceSecretInfoResponse build() {
final var _resultValue = new KeyVaultSecretReferenceSecretInfoResponse();
_resultValue.name = name;
_resultValue.secretType = secretType;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy