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

com.pulumi.vault.NamespaceArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing HashiCorp Vault cloud resources.

There is a newer version: 6.6.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.vault;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


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

    public static final NamespaceArgs Empty = new NamespaceArgs();

    /**
     * Custom metadata describing this namespace. Value type
     * is `map[string]string`. Requires Vault version 1.12+.
     * 
     */
    @Import(name="customMetadata")
    private @Nullable Output> customMetadata;

    /**
     * @return Custom metadata describing this namespace. Value type
     * is `map[string]string`. Requires Vault version 1.12+.
     * 
     */
    public Optional>> customMetadata() {
        return Optional.ofNullable(this.customMetadata);
    }

    /**
     * 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 path of the namespace. Must not have a trailing `/`.
     * 
     */
    @Import(name="path", required=true)
    private Output path;

    /**
     * @return The path of the namespace. Must not have a trailing `/`.
     * 
     */
    public Output path() {
        return this.path;
    }

    /**
     * The fully qualified path to the namespace. Useful when provisioning resources in a child `namespace`.
     * The path is relative to the provider's `namespace` argument.
     * 
     */
    @Import(name="pathFq")
    private @Nullable Output pathFq;

    /**
     * @return The fully qualified path to the namespace. Useful when provisioning resources in a child `namespace`.
     * The path is relative to the provider's `namespace` argument.
     * 
     */
    public Optional> pathFq() {
        return Optional.ofNullable(this.pathFq);
    }

    private NamespaceArgs() {}

    private NamespaceArgs(NamespaceArgs $) {
        this.customMetadata = $.customMetadata;
        this.namespace = $.namespace;
        this.path = $.path;
        this.pathFq = $.pathFq;
    }

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

    public static final class Builder {
        private NamespaceArgs $;

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

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

        /**
         * @param customMetadata Custom metadata describing this namespace. Value type
         * is `map[string]string`. Requires Vault version 1.12+.
         * 
         * @return builder
         * 
         */
        public Builder customMetadata(@Nullable Output> customMetadata) {
            $.customMetadata = customMetadata;
            return this;
        }

        /**
         * @param customMetadata Custom metadata describing this namespace. Value type
         * is `map[string]string`. Requires Vault version 1.12+.
         * 
         * @return builder
         * 
         */
        public Builder customMetadata(Map customMetadata) {
            return customMetadata(Output.of(customMetadata));
        }

        /**
         * @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 path of the namespace. Must not have a trailing `/`.
         * 
         * @return builder
         * 
         */
        public Builder path(Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path of the namespace. Must not have a trailing `/`.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param pathFq The fully qualified path to the namespace. Useful when provisioning resources in a child `namespace`.
         * The path is relative to the provider's `namespace` argument.
         * 
         * @return builder
         * 
         */
        public Builder pathFq(@Nullable Output pathFq) {
            $.pathFq = pathFq;
            return this;
        }

        /**
         * @param pathFq The fully qualified path to the namespace. Useful when provisioning resources in a child `namespace`.
         * The path is relative to the provider's `namespace` argument.
         * 
         * @return builder
         * 
         */
        public Builder pathFq(String pathFq) {
            return pathFq(Output.of(pathFq));
        }

        public NamespaceArgs build() {
            if ($.path == null) {
                throw new MissingRequiredPropertyException("NamespaceArgs", "path");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy