All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.keyvault.outputs.SecretPropertiesResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.keyvault.outputs;

import com.pulumi.azurenative.keyvault.outputs.SecretAttributesResponse;
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 SecretPropertiesResponse {
    /**
     * @return The attributes of the secret.
     * 
     */
    private @Nullable SecretAttributesResponse attributes;
    /**
     * @return The content type of the secret.
     * 
     */
    private @Nullable String contentType;
    /**
     * @return The URI to retrieve the current version of the secret.
     * 
     */
    private String secretUri;
    /**
     * @return The URI to retrieve the specific version of the secret.
     * 
     */
    private String secretUriWithVersion;
    /**
     * @return The value of the secret. NOTE: 'value' will never be returned from the service, as APIs using this model are is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
     * 
     */
    private @Nullable String value;

    private SecretPropertiesResponse() {}
    /**
     * @return The attributes of the secret.
     * 
     */
    public Optional attributes() {
        return Optional.ofNullable(this.attributes);
    }
    /**
     * @return The content type of the secret.
     * 
     */
    public Optional contentType() {
        return Optional.ofNullable(this.contentType);
    }
    /**
     * @return The URI to retrieve the current version of the secret.
     * 
     */
    public String secretUri() {
        return this.secretUri;
    }
    /**
     * @return The URI to retrieve the specific version of the secret.
     * 
     */
    public String secretUriWithVersion() {
        return this.secretUriWithVersion;
    }
    /**
     * @return The value of the secret. NOTE: 'value' will never be returned from the service, as APIs using this model are is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
     * 
     */
    public Optional value() {
        return Optional.ofNullable(this.value);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(SecretPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable SecretAttributesResponse attributes;
        private @Nullable String contentType;
        private String secretUri;
        private String secretUriWithVersion;
        private @Nullable String value;
        public Builder() {}
        public Builder(SecretPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.attributes = defaults.attributes;
    	      this.contentType = defaults.contentType;
    	      this.secretUri = defaults.secretUri;
    	      this.secretUriWithVersion = defaults.secretUriWithVersion;
    	      this.value = defaults.value;
        }

        @CustomType.Setter
        public Builder attributes(@Nullable SecretAttributesResponse attributes) {

            this.attributes = attributes;
            return this;
        }
        @CustomType.Setter
        public Builder contentType(@Nullable String contentType) {

            this.contentType = contentType;
            return this;
        }
        @CustomType.Setter
        public Builder secretUri(String secretUri) {
            if (secretUri == null) {
              throw new MissingRequiredPropertyException("SecretPropertiesResponse", "secretUri");
            }
            this.secretUri = secretUri;
            return this;
        }
        @CustomType.Setter
        public Builder secretUriWithVersion(String secretUriWithVersion) {
            if (secretUriWithVersion == null) {
              throw new MissingRequiredPropertyException("SecretPropertiesResponse", "secretUriWithVersion");
            }
            this.secretUriWithVersion = secretUriWithVersion;
            return this;
        }
        @CustomType.Setter
        public Builder value(@Nullable String value) {

            this.value = value;
            return this;
        }
        public SecretPropertiesResponse build() {
            final var _resultValue = new SecretPropertiesResponse();
            _resultValue.attributes = attributes;
            _resultValue.contentType = contentType;
            _resultValue.secretUri = secretUri;
            _resultValue.secretUriWithVersion = secretUriWithVersion;
            _resultValue.value = value;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy