// *** 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.aws.quicksight.inputs;

import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;


public final class GetDataSetColumnLevelPermissionRule extends com.pulumi.resources.InvokeArgs {

    public static final GetDataSetColumnLevelPermissionRule Empty = new GetDataSetColumnLevelPermissionRule();

    @Import(name="columnNames", required=true)
    private List<String> columnNames;

    public List<String> columnNames() {
        return this.columnNames;
    }

    @Import(name="principals", required=true)
    private List<String> principals;

    public List<String> principals() {
        return this.principals;
    }

    private GetDataSetColumnLevelPermissionRule() {}

    private GetDataSetColumnLevelPermissionRule(GetDataSetColumnLevelPermissionRule $) {
        this.columnNames = $.columnNames;
        this.principals = $.principals;
    }

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

    public static final class Builder {
        private GetDataSetColumnLevelPermissionRule $;

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

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

        public Builder columnNames(List<String> columnNames) {
            $.columnNames = columnNames;
            return this;
        }

        public Builder columnNames(String... columnNames) {
            return columnNames(List.of(columnNames));
        }

        public Builder principals(List<String> principals) {
            $.principals = principals;
            return this;
        }

        public Builder principals(String... principals) {
            return principals(List.of(principals));
        }

        public GetDataSetColumnLevelPermissionRule build() {
            $.columnNames = Objects.requireNonNull($.columnNames, "expected parameter 'columnNames' to be non-null");
            $.principals = Objects.requireNonNull($.principals, "expected parameter 'principals' to be non-null");
            return $;
        }
    }

}
