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

com.pulumi.vault.azure.inputs.BackendState 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.vault.azure.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class BackendState extends com.pulumi.resources.ResourceArgs {

    public static final BackendState Empty = new BackendState();

    /**
     * The OAuth2 client id to connect to Azure.
     * 
     */
    @Import(name="clientId")
    private @Nullable Output clientId;

    /**
     * @return The OAuth2 client id to connect to Azure.
     * 
     */
    public Optional> clientId() {
        return Optional.ofNullable(this.clientId);
    }

    /**
     * The OAuth2 client secret to connect to Azure.
     * 
     */
    @Import(name="clientSecret")
    private @Nullable Output clientSecret;

    /**
     * @return The OAuth2 client secret to connect to Azure.
     * 
     */
    public Optional> clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }

    /**
     * Human-friendly description of the mount for the backend.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Human-friendly description of the mount for the backend.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * If set, opts out of mount migration on path updates.
     * See here for more info on [Mount Migration](https://www.vaultproject.io/docs/concepts/mount-migration)
     * 
     */
    @Import(name="disableRemount")
    private @Nullable Output disableRemount;

    /**
     * @return If set, opts out of mount migration on path updates.
     * See here for more info on [Mount Migration](https://www.vaultproject.io/docs/concepts/mount-migration)
     * 
     */
    public Optional> disableRemount() {
        return Optional.ofNullable(this.disableRemount);
    }

    /**
     * The Azure environment.
     * 
     */
    @Import(name="environment")
    private @Nullable Output environment;

    /**
     * @return The Azure environment.
     * 
     */
    public Optional> environment() {
        return Optional.ofNullable(this.environment);
    }

    /**
     * The audience claim value. Requires Vault 1.17+.
     * *Available only for Vault Enterprise*
     * 
     */
    @Import(name="identityTokenAudience")
    private @Nullable Output identityTokenAudience;

    /**
     * @return The audience claim value. Requires Vault 1.17+.
     * *Available only for Vault Enterprise*
     * 
     */
    public Optional> identityTokenAudience() {
        return Optional.ofNullable(this.identityTokenAudience);
    }

    /**
     * The key to use for signing identity tokens. Requires Vault 1.17+.
     * *Available only for Vault Enterprise*
     * 
     */
    @Import(name="identityTokenKey")
    private @Nullable Output identityTokenKey;

    /**
     * @return The key to use for signing identity tokens. Requires Vault 1.17+.
     * *Available only for Vault Enterprise*
     * 
     */
    public Optional> identityTokenKey() {
        return Optional.ofNullable(this.identityTokenKey);
    }

    /**
     * The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
     * *Available only for Vault Enterprise*
     * 
     */
    @Import(name="identityTokenTtl")
    private @Nullable Output identityTokenTtl;

    /**
     * @return The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
     * *Available only for Vault Enterprise*
     * 
     */
    public Optional> identityTokenTtl() {
        return Optional.ofNullable(this.identityTokenTtl);
    }

    /**
     * The namespace to provision the resource in.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     * 
     */
    @Import(name="namespace")
    private @Nullable Output namespace;

    /**
     * @return The namespace to provision the resource in.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     * 
     */
    public Optional> namespace() {
        return Optional.ofNullable(this.namespace);
    }

    /**
     * The unique path this backend should be mounted at. Defaults to `azure`.
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return The unique path this backend should be mounted at. Defaults to `azure`.
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * The subscription id for the Azure Active Directory.
     * 
     */
    @Import(name="subscriptionId")
    private @Nullable Output subscriptionId;

    /**
     * @return The subscription id for the Azure Active Directory.
     * 
     */
    public Optional> subscriptionId() {
        return Optional.ofNullable(this.subscriptionId);
    }

    /**
     * The tenant id for the Azure Active Directory.
     * 
     */
    @Import(name="tenantId")
    private @Nullable Output tenantId;

    /**
     * @return The tenant id for the Azure Active Directory.
     * 
     */
    public Optional> tenantId() {
        return Optional.ofNullable(this.tenantId);
    }

    /**
     * Use the Microsoft Graph API. Should be set to true on vault-1.10+
     * 
     * @deprecated
     * This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.
     * 
     */
    @Deprecated /* This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider. */
    @Import(name="useMicrosoftGraphApi")
    private @Nullable Output useMicrosoftGraphApi;

    /**
     * @return Use the Microsoft Graph API. Should be set to true on vault-1.10+
     * 
     * @deprecated
     * This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.
     * 
     */
    @Deprecated /* This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider. */
    public Optional> useMicrosoftGraphApi() {
        return Optional.ofNullable(this.useMicrosoftGraphApi);
    }

    private BackendState() {}

    private BackendState(BackendState $) {
        this.clientId = $.clientId;
        this.clientSecret = $.clientSecret;
        this.description = $.description;
        this.disableRemount = $.disableRemount;
        this.environment = $.environment;
        this.identityTokenAudience = $.identityTokenAudience;
        this.identityTokenKey = $.identityTokenKey;
        this.identityTokenTtl = $.identityTokenTtl;
        this.namespace = $.namespace;
        this.path = $.path;
        this.subscriptionId = $.subscriptionId;
        this.tenantId = $.tenantId;
        this.useMicrosoftGraphApi = $.useMicrosoftGraphApi;
    }

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

    public static final class Builder {
        private BackendState $;

        public Builder() {
            $ = new BackendState();
        }

        public Builder(BackendState defaults) {
            $ = new BackendState(Objects.requireNonNull(defaults));
        }

        /**
         * @param clientId The OAuth2 client id to connect to Azure.
         * 
         * @return builder
         * 
         */
        public Builder clientId(@Nullable Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId The OAuth2 client id to connect to Azure.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecret The OAuth2 client secret to connect to Azure.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(@Nullable Output clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        /**
         * @param clientSecret The OAuth2 client secret to connect to Azure.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(String clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        /**
         * @param description Human-friendly description of the mount for the backend.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Human-friendly description of the mount for the backend.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param disableRemount If set, opts out of mount migration on path updates.
         * See here for more info on [Mount Migration](https://www.vaultproject.io/docs/concepts/mount-migration)
         * 
         * @return builder
         * 
         */
        public Builder disableRemount(@Nullable Output disableRemount) {
            $.disableRemount = disableRemount;
            return this;
        }

        /**
         * @param disableRemount If set, opts out of mount migration on path updates.
         * See here for more info on [Mount Migration](https://www.vaultproject.io/docs/concepts/mount-migration)
         * 
         * @return builder
         * 
         */
        public Builder disableRemount(Boolean disableRemount) {
            return disableRemount(Output.of(disableRemount));
        }

        /**
         * @param environment The Azure environment.
         * 
         * @return builder
         * 
         */
        public Builder environment(@Nullable Output environment) {
            $.environment = environment;
            return this;
        }

        /**
         * @param environment The Azure environment.
         * 
         * @return builder
         * 
         */
        public Builder environment(String environment) {
            return environment(Output.of(environment));
        }

        /**
         * @param identityTokenAudience The audience claim value. Requires Vault 1.17+.
         * *Available only for Vault Enterprise*
         * 
         * @return builder
         * 
         */
        public Builder identityTokenAudience(@Nullable Output identityTokenAudience) {
            $.identityTokenAudience = identityTokenAudience;
            return this;
        }

        /**
         * @param identityTokenAudience The audience claim value. Requires Vault 1.17+.
         * *Available only for Vault Enterprise*
         * 
         * @return builder
         * 
         */
        public Builder identityTokenAudience(String identityTokenAudience) {
            return identityTokenAudience(Output.of(identityTokenAudience));
        }

        /**
         * @param identityTokenKey The key to use for signing identity tokens. Requires Vault 1.17+.
         * *Available only for Vault Enterprise*
         * 
         * @return builder
         * 
         */
        public Builder identityTokenKey(@Nullable Output identityTokenKey) {
            $.identityTokenKey = identityTokenKey;
            return this;
        }

        /**
         * @param identityTokenKey The key to use for signing identity tokens. Requires Vault 1.17+.
         * *Available only for Vault Enterprise*
         * 
         * @return builder
         * 
         */
        public Builder identityTokenKey(String identityTokenKey) {
            return identityTokenKey(Output.of(identityTokenKey));
        }

        /**
         * @param identityTokenTtl The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
         * *Available only for Vault Enterprise*
         * 
         * @return builder
         * 
         */
        public Builder identityTokenTtl(@Nullable Output identityTokenTtl) {
            $.identityTokenTtl = identityTokenTtl;
            return this;
        }

        /**
         * @param identityTokenTtl The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
         * *Available only for Vault Enterprise*
         * 
         * @return builder
         * 
         */
        public Builder identityTokenTtl(Integer identityTokenTtl) {
            return identityTokenTtl(Output.of(identityTokenTtl));
        }

        /**
         * @param namespace The namespace to provision the resource in.
         * The value should not contain leading or trailing forward slashes.
         * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
         * *Available only for Vault Enterprise*.
         * 
         * @return builder
         * 
         */
        public Builder namespace(@Nullable Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace The namespace to provision the resource in.
         * The value should not contain leading or trailing forward slashes.
         * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
         * *Available only for Vault Enterprise*.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        /**
         * @param path The unique path this backend should be mounted at. Defaults to `azure`.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The unique path this backend should be mounted at. Defaults to `azure`.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param subscriptionId The subscription id for the Azure Active Directory.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(@Nullable Output subscriptionId) {
            $.subscriptionId = subscriptionId;
            return this;
        }

        /**
         * @param subscriptionId The subscription id for the Azure Active Directory.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(String subscriptionId) {
            return subscriptionId(Output.of(subscriptionId));
        }

        /**
         * @param tenantId The tenant id for the Azure Active Directory.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(@Nullable Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

        /**
         * @param tenantId The tenant id for the Azure Active Directory.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(String tenantId) {
            return tenantId(Output.of(tenantId));
        }

        /**
         * @param useMicrosoftGraphApi Use the Microsoft Graph API. Should be set to true on vault-1.10+
         * 
         * @return builder
         * 
         * @deprecated
         * This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.
         * 
         */
        @Deprecated /* This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider. */
        public Builder useMicrosoftGraphApi(@Nullable Output useMicrosoftGraphApi) {
            $.useMicrosoftGraphApi = useMicrosoftGraphApi;
            return this;
        }

        /**
         * @param useMicrosoftGraphApi Use the Microsoft Graph API. Should be set to true on vault-1.10+
         * 
         * @return builder
         * 
         * @deprecated
         * This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.
         * 
         */
        @Deprecated /* This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider. */
        public Builder useMicrosoftGraphApi(Boolean useMicrosoftGraphApi) {
            return useMicrosoftGraphApi(Output.of(useMicrosoftGraphApi));
        }

        public BackendState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy