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

com.pulumi.consul.outputs.GetAclPolicyResult 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.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetAclPolicyResult {
    /**
     * @return The datacenters associated with the ACL Policy.
     * 
     */
    private List datacenters;
    /**
     * @return The description of the ACL Policy.
     * 
     */
    private String description;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String name;
    private @Nullable String namespace;
    private @Nullable String partition;
    /**
     * @return The rules associated with the ACL Policy.
     * 
     */
    private String rules;

    private GetAclPolicyResult() {}
    /**
     * @return The datacenters associated with the ACL Policy.
     * 
     */
    public List datacenters() {
        return this.datacenters;
    }
    /**
     * @return The description of the ACL Policy.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String name() {
        return this.name;
    }
    public Optional namespace() {
        return Optional.ofNullable(this.namespace);
    }
    public Optional partition() {
        return Optional.ofNullable(this.partition);
    }
    /**
     * @return The rules associated with the ACL Policy.
     * 
     */
    public String rules() {
        return this.rules;
    }

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

    public static Builder builder(GetAclPolicyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List datacenters;
        private String description;
        private String id;
        private String name;
        private @Nullable String namespace;
        private @Nullable String partition;
        private String rules;
        public Builder() {}
        public Builder(GetAclPolicyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.datacenters = defaults.datacenters;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.namespace = defaults.namespace;
    	      this.partition = defaults.partition;
    	      this.rules = defaults.rules;
        }

        @CustomType.Setter
        public Builder datacenters(List datacenters) {
            this.datacenters = Objects.requireNonNull(datacenters);
            return this;
        }
        public Builder datacenters(String... datacenters) {
            return datacenters(List.of(datacenters));
        }
        @CustomType.Setter
        public Builder description(String description) {
            this.description = Objects.requireNonNull(description);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder namespace(@Nullable String namespace) {
            this.namespace = namespace;
            return this;
        }
        @CustomType.Setter
        public Builder partition(@Nullable String partition) {
            this.partition = partition;
            return this;
        }
        @CustomType.Setter
        public Builder rules(String rules) {
            this.rules = Objects.requireNonNull(rules);
            return this;
        }
        public GetAclPolicyResult build() {
            final var _resultValue = new GetAclPolicyResult();
            _resultValue.datacenters = datacenters;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.namespace = namespace;
            _resultValue.partition = partition;
            _resultValue.rules = rules;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy