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

com.pulumi.consul.outputs.AclAuthMethodNamespaceRule 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.consul.outputs;

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 AclAuthMethodNamespaceRule {
    /**
     * @return If the namespace rule's `selector` matches then this is used to control the namespace where the token is created.
     * 
     */
    private String bindNamespace;
    /**
     * @return Specifies the expression used to match this namespace rule against valid identities returned from an auth method validation.
     * 
     */
    private @Nullable String selector;

    private AclAuthMethodNamespaceRule() {}
    /**
     * @return If the namespace rule's `selector` matches then this is used to control the namespace where the token is created.
     * 
     */
    public String bindNamespace() {
        return this.bindNamespace;
    }
    /**
     * @return Specifies the expression used to match this namespace rule against valid identities returned from an auth method validation.
     * 
     */
    public Optional selector() {
        return Optional.ofNullable(this.selector);
    }

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

    public static Builder builder(AclAuthMethodNamespaceRule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String bindNamespace;
        private @Nullable String selector;
        public Builder() {}
        public Builder(AclAuthMethodNamespaceRule defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bindNamespace = defaults.bindNamespace;
    	      this.selector = defaults.selector;
        }

        @CustomType.Setter
        public Builder bindNamespace(String bindNamespace) {
            if (bindNamespace == null) {
              throw new MissingRequiredPropertyException("AclAuthMethodNamespaceRule", "bindNamespace");
            }
            this.bindNamespace = bindNamespace;
            return this;
        }
        @CustomType.Setter
        public Builder selector(@Nullable String selector) {

            this.selector = selector;
            return this;
        }
        public AclAuthMethodNamespaceRule build() {
            final var _resultValue = new AclAuthMethodNamespaceRule();
            _resultValue.bindNamespace = bindNamespace;
            _resultValue.selector = selector;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy