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

com.pulumi.vault.outputs.GetPolicyDocumentRuleAllowedParameter 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetPolicyDocumentRuleAllowedParameter {
    /**
     * @return name of permitted or denied parameter.
     * 
     */
    private String key;
    /**
     * @return list of values what are permitted or denied by policy rule.
     * 
     */
    private List values;

    private GetPolicyDocumentRuleAllowedParameter() {}
    /**
     * @return name of permitted or denied parameter.
     * 
     */
    public String key() {
        return this.key;
    }
    /**
     * @return list of values what are permitted or denied by policy rule.
     * 
     */
    public List values() {
        return this.values;
    }

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

    public static Builder builder(GetPolicyDocumentRuleAllowedParameter defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String key;
        private List values;
        public Builder() {}
        public Builder(GetPolicyDocumentRuleAllowedParameter defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.key = defaults.key;
    	      this.values = defaults.values;
        }

        @CustomType.Setter
        public Builder key(String key) {
            if (key == null) {
              throw new MissingRequiredPropertyException("GetPolicyDocumentRuleAllowedParameter", "key");
            }
            this.key = key;
            return this;
        }
        @CustomType.Setter
        public Builder values(List values) {
            if (values == null) {
              throw new MissingRequiredPropertyException("GetPolicyDocumentRuleAllowedParameter", "values");
            }
            this.values = values;
            return this;
        }
        public Builder values(String... values) {
            return values(List.of(values));
        }
        public GetPolicyDocumentRuleAllowedParameter build() {
            final var _resultValue = new GetPolicyDocumentRuleAllowedParameter();
            _resultValue.key = key;
            _resultValue.values = values;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy