// *** 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.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DataSetColumnLevelPermissionRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataSetColumnLevelPermissionRuleArgs Empty = new DataSetColumnLevelPermissionRuleArgs();

    /**
     * An array of column names.
     * 
     */
    @Import(name="columnNames")
    private @Nullable Output<List<String>> columnNames;

    /**
     * @return An array of column names.
     * 
     */
    public Optional<Output<List<String>>> columnNames() {
        return Optional.ofNullable(this.columnNames);
    }

    /**
     * An array of ARNs for Amazon QuickSight users or groups.
     * 
     */
    @Import(name="principals")
    private @Nullable Output<List<String>> principals;

    /**
     * @return An array of ARNs for Amazon QuickSight users or groups.
     * 
     */
    public Optional<Output<List<String>>> principals() {
        return Optional.ofNullable(this.principals);
    }

    private DataSetColumnLevelPermissionRuleArgs() {}

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

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

    public static final class Builder {
        private DataSetColumnLevelPermissionRuleArgs $;

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

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

        /**
         * @param columnNames An array of column names.
         * 
         * @return builder
         * 
         */
        public Builder columnNames(@Nullable Output<List<String>> columnNames) {
            $.columnNames = columnNames;
            return this;
        }

        /**
         * @param columnNames An array of column names.
         * 
         * @return builder
         * 
         */
        public Builder columnNames(List<String> columnNames) {
            return columnNames(Output.of(columnNames));
        }

        /**
         * @param columnNames An array of column names.
         * 
         * @return builder
         * 
         */
        public Builder columnNames(String... columnNames) {
            return columnNames(List.of(columnNames));
        }

        /**
         * @param principals An array of ARNs for Amazon QuickSight users or groups.
         * 
         * @return builder
         * 
         */
        public Builder principals(@Nullable Output<List<String>> principals) {
            $.principals = principals;
            return this;
        }

        /**
         * @param principals An array of ARNs for Amazon QuickSight users or groups.
         * 
         * @return builder
         * 
         */
        public Builder principals(List<String> principals) {
            return principals(Output.of(principals));
        }

        /**
         * @param principals An array of ARNs for Amazon QuickSight users or groups.
         * 
         * @return builder
         * 
         */
        public Builder principals(String... principals) {
            return principals(List.of(principals));
        }

        public DataSetColumnLevelPermissionRuleArgs build() {
            return $;
        }
    }

}
