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

com.pulumi.consul.outputs.GetAclRoleTemplatedPolicy Maven / Gradle / Ivy

There is a newer version: 3.13.0-alpha.1732771629
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.consul.outputs;

import com.pulumi.consul.outputs.GetAclRoleTemplatedPolicyTemplateVariable;
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 GetAclRoleTemplatedPolicy {
    /**
     * @return Specifies the datacenters the effective policy is valid within.
     * 
     */
    private List datacenters;
    /**
     * @return The name of the templated policies.
     * 
     */
    private String templateName;
    /**
     * @return The templated policy variables.
     * 
     */
    private List templateVariables;

    private GetAclRoleTemplatedPolicy() {}
    /**
     * @return Specifies the datacenters the effective policy is valid within.
     * 
     */
    public List datacenters() {
        return this.datacenters;
    }
    /**
     * @return The name of the templated policies.
     * 
     */
    public String templateName() {
        return this.templateName;
    }
    /**
     * @return The templated policy variables.
     * 
     */
    public List templateVariables() {
        return this.templateVariables;
    }

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

    public static Builder builder(GetAclRoleTemplatedPolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List datacenters;
        private String templateName;
        private List templateVariables;
        public Builder() {}
        public Builder(GetAclRoleTemplatedPolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.datacenters = defaults.datacenters;
    	      this.templateName = defaults.templateName;
    	      this.templateVariables = defaults.templateVariables;
        }

        @CustomType.Setter
        public Builder datacenters(List datacenters) {
            if (datacenters == null) {
              throw new MissingRequiredPropertyException("GetAclRoleTemplatedPolicy", "datacenters");
            }
            this.datacenters = datacenters;
            return this;
        }
        public Builder datacenters(String... datacenters) {
            return datacenters(List.of(datacenters));
        }
        @CustomType.Setter
        public Builder templateName(String templateName) {
            if (templateName == null) {
              throw new MissingRequiredPropertyException("GetAclRoleTemplatedPolicy", "templateName");
            }
            this.templateName = templateName;
            return this;
        }
        @CustomType.Setter
        public Builder templateVariables(List templateVariables) {
            if (templateVariables == null) {
              throw new MissingRequiredPropertyException("GetAclRoleTemplatedPolicy", "templateVariables");
            }
            this.templateVariables = templateVariables;
            return this;
        }
        public Builder templateVariables(GetAclRoleTemplatedPolicyTemplateVariable... templateVariables) {
            return templateVariables(List.of(templateVariables));
        }
        public GetAclRoleTemplatedPolicy build() {
            final var _resultValue = new GetAclRoleTemplatedPolicy();
            _resultValue.datacenters = datacenters;
            _resultValue.templateName = templateName;
            _resultValue.templateVariables = templateVariables;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy