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

com.pulumi.vault.terraformcloud.SecretRoleArgs 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.terraformcloud;

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


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

    public static final SecretRoleArgs Empty = new SecretRoleArgs();

    @Import(name="backend")
    private @Nullable Output backend;

    public Optional> backend() {
        return Optional.ofNullable(this.backend);
    }

    /**
     * Maximum TTL for leases associated with this role, in seconds.
     * 
     */
    @Import(name="maxTtl")
    private @Nullable Output maxTtl;

    /**
     * @return Maximum TTL for leases associated with this role, in seconds.
     * 
     */
    public Optional> maxTtl() {
        return Optional.ofNullable(this.maxTtl);
    }

    @Import(name="name")
    private @Nullable Output name;

    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * 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);
    }

    @Import(name="organization")
    private @Nullable Output organization;

    public Optional> organization() {
        return Optional.ofNullable(this.organization);
    }

    @Import(name="teamId")
    private @Nullable Output teamId;

    public Optional> teamId() {
        return Optional.ofNullable(this.teamId);
    }

    /**
     * Specifies the TTL for this role.
     * 
     */
    @Import(name="ttl")
    private @Nullable Output ttl;

    /**
     * @return Specifies the TTL for this role.
     * 
     */
    public Optional> ttl() {
        return Optional.ofNullable(this.ttl);
    }

    @Import(name="userId")
    private @Nullable Output userId;

    public Optional> userId() {
        return Optional.ofNullable(this.userId);
    }

    private SecretRoleArgs() {}

    private SecretRoleArgs(SecretRoleArgs $) {
        this.backend = $.backend;
        this.maxTtl = $.maxTtl;
        this.name = $.name;
        this.namespace = $.namespace;
        this.organization = $.organization;
        this.teamId = $.teamId;
        this.ttl = $.ttl;
        this.userId = $.userId;
    }

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

    public static final class Builder {
        private SecretRoleArgs $;

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

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

        public Builder backend(@Nullable Output backend) {
            $.backend = backend;
            return this;
        }

        public Builder backend(String backend) {
            return backend(Output.of(backend));
        }

        /**
         * @param maxTtl Maximum TTL for leases associated with this role, in seconds.
         * 
         * @return builder
         * 
         */
        public Builder maxTtl(@Nullable Output maxTtl) {
            $.maxTtl = maxTtl;
            return this;
        }

        /**
         * @param maxTtl Maximum TTL for leases associated with this role, in seconds.
         * 
         * @return builder
         * 
         */
        public Builder maxTtl(Integer maxTtl) {
            return maxTtl(Output.of(maxTtl));
        }

        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @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));
        }

        public Builder organization(@Nullable Output organization) {
            $.organization = organization;
            return this;
        }

        public Builder organization(String organization) {
            return organization(Output.of(organization));
        }

        public Builder teamId(@Nullable Output teamId) {
            $.teamId = teamId;
            return this;
        }

        public Builder teamId(String teamId) {
            return teamId(Output.of(teamId));
        }

        /**
         * @param ttl Specifies the TTL for this role.
         * 
         * @return builder
         * 
         */
        public Builder ttl(@Nullable Output ttl) {
            $.ttl = ttl;
            return this;
        }

        /**
         * @param ttl Specifies the TTL for this role.
         * 
         * @return builder
         * 
         */
        public Builder ttl(Integer ttl) {
            return ttl(Output.of(ttl));
        }

        public Builder userId(@Nullable Output userId) {
            $.userId = userId;
            return this;
        }

        public Builder userId(String userId) {
            return userId(Output.of(userId));
        }

        public SecretRoleArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy