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

com.pulumi.azure.keyvault.outputs.GetSecretResult Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.keyvault.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetSecretResult {
    /**
     * @return The content type for the Key Vault Secret.
     * 
     */
    private String contentType;
    /**
     * @return The date and time at which the Key Vault Secret expires and is no longer valid.
     * 
     */
    private String expirationDate;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String keyVaultId;
    private String name;
    /**
     * @return The earliest date at which the Key Vault Secret can be used.
     * 
     */
    private String notBeforeDate;
    /**
     * @return The (Versioned) ID for this Key Vault Secret. This property points to a specific version of a Key Vault Secret, as such using this won't auto-rotate values if used in other Azure Services.
     * 
     */
    private String resourceId;
    /**
     * @return The Versionless ID of the Key Vault Secret. This property allows other Azure Services (that support it) to auto-rotate their value when the Key Vault Secret is updated.
     * 
     */
    private String resourceVersionlessId;
    /**
     * @return Any tags assigned to this resource.
     * 
     */
    private Map tags;
    /**
     * @return The value of the Key Vault Secret.
     * 
     */
    private String value;
    private @Nullable String version;
    /**
     * @return The Versionless ID of the Key Vault Secret. This can be used to always get latest secret value, and enable fetching automatically rotating secrets.
     * 
     */
    private String versionlessId;

    private GetSecretResult() {}
    /**
     * @return The content type for the Key Vault Secret.
     * 
     */
    public String contentType() {
        return this.contentType;
    }
    /**
     * @return The date and time at which the Key Vault Secret expires and is no longer valid.
     * 
     */
    public String expirationDate() {
        return this.expirationDate;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String keyVaultId() {
        return this.keyVaultId;
    }
    public String name() {
        return this.name;
    }
    /**
     * @return The earliest date at which the Key Vault Secret can be used.
     * 
     */
    public String notBeforeDate() {
        return this.notBeforeDate;
    }
    /**
     * @return The (Versioned) ID for this Key Vault Secret. This property points to a specific version of a Key Vault Secret, as such using this won't auto-rotate values if used in other Azure Services.
     * 
     */
    public String resourceId() {
        return this.resourceId;
    }
    /**
     * @return The Versionless ID of the Key Vault Secret. This property allows other Azure Services (that support it) to auto-rotate their value when the Key Vault Secret is updated.
     * 
     */
    public String resourceVersionlessId() {
        return this.resourceVersionlessId;
    }
    /**
     * @return Any tags assigned to this resource.
     * 
     */
    public Map tags() {
        return this.tags;
    }
    /**
     * @return The value of the Key Vault Secret.
     * 
     */
    public String value() {
        return this.value;
    }
    public Optional version() {
        return Optional.ofNullable(this.version);
    }
    /**
     * @return The Versionless ID of the Key Vault Secret. This can be used to always get latest secret value, and enable fetching automatically rotating secrets.
     * 
     */
    public String versionlessId() {
        return this.versionlessId;
    }

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

    public static Builder builder(GetSecretResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String contentType;
        private String expirationDate;
        private String id;
        private String keyVaultId;
        private String name;
        private String notBeforeDate;
        private String resourceId;
        private String resourceVersionlessId;
        private Map tags;
        private String value;
        private @Nullable String version;
        private String versionlessId;
        public Builder() {}
        public Builder(GetSecretResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.contentType = defaults.contentType;
    	      this.expirationDate = defaults.expirationDate;
    	      this.id = defaults.id;
    	      this.keyVaultId = defaults.keyVaultId;
    	      this.name = defaults.name;
    	      this.notBeforeDate = defaults.notBeforeDate;
    	      this.resourceId = defaults.resourceId;
    	      this.resourceVersionlessId = defaults.resourceVersionlessId;
    	      this.tags = defaults.tags;
    	      this.value = defaults.value;
    	      this.version = defaults.version;
    	      this.versionlessId = defaults.versionlessId;
        }

        @CustomType.Setter
        public Builder contentType(String contentType) {
            if (contentType == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "contentType");
            }
            this.contentType = contentType;
            return this;
        }
        @CustomType.Setter
        public Builder expirationDate(String expirationDate) {
            if (expirationDate == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "expirationDate");
            }
            this.expirationDate = expirationDate;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder keyVaultId(String keyVaultId) {
            if (keyVaultId == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "keyVaultId");
            }
            this.keyVaultId = keyVaultId;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder notBeforeDate(String notBeforeDate) {
            if (notBeforeDate == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "notBeforeDate");
            }
            this.notBeforeDate = notBeforeDate;
            return this;
        }
        @CustomType.Setter
        public Builder resourceId(String resourceId) {
            if (resourceId == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "resourceId");
            }
            this.resourceId = resourceId;
            return this;
        }
        @CustomType.Setter
        public Builder resourceVersionlessId(String resourceVersionlessId) {
            if (resourceVersionlessId == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "resourceVersionlessId");
            }
            this.resourceVersionlessId = resourceVersionlessId;
            return this;
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder value(String value) {
            if (value == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "value");
            }
            this.value = value;
            return this;
        }
        @CustomType.Setter
        public Builder version(@Nullable String version) {

            this.version = version;
            return this;
        }
        @CustomType.Setter
        public Builder versionlessId(String versionlessId) {
            if (versionlessId == null) {
              throw new MissingRequiredPropertyException("GetSecretResult", "versionlessId");
            }
            this.versionlessId = versionlessId;
            return this;
        }
        public GetSecretResult build() {
            final var _resultValue = new GetSecretResult();
            _resultValue.contentType = contentType;
            _resultValue.expirationDate = expirationDate;
            _resultValue.id = id;
            _resultValue.keyVaultId = keyVaultId;
            _resultValue.name = name;
            _resultValue.notBeforeDate = notBeforeDate;
            _resultValue.resourceId = resourceId;
            _resultValue.resourceVersionlessId = resourceVersionlessId;
            _resultValue.tags = tags;
            _resultValue.value = value;
            _resultValue.version = version;
            _resultValue.versionlessId = versionlessId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy