// *** 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;


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

    public static final DataSourcePermissionArgs Empty = new DataSourcePermissionArgs();

    /**
     * Set of IAM actions to grant or revoke permissions on. Max of 16 items.
     * 
     */
    @Import(name="actions", required=true)
    private Output<List<String>> actions;

    /**
     * @return Set of IAM actions to grant or revoke permissions on. Max of 16 items.
     * 
     */
    public Output<List<String>> actions() {
        return this.actions;
    }

    /**
     * The Amazon Resource Name (ARN) of the principal.
     * 
     */
    @Import(name="principal", required=true)
    private Output<String> principal;

    /**
     * @return The Amazon Resource Name (ARN) of the principal.
     * 
     */
    public Output<String> principal() {
        return this.principal;
    }

    private DataSourcePermissionArgs() {}

    private DataSourcePermissionArgs(DataSourcePermissionArgs $) {
        this.actions = $.actions;
        this.principal = $.principal;
    }

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

    public static final class Builder {
        private DataSourcePermissionArgs $;

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

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

        /**
         * @param actions Set of IAM actions to grant or revoke permissions on. Max of 16 items.
         * 
         * @return builder
         * 
         */
        public Builder actions(Output<List<String>> actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions Set of IAM actions to grant or revoke permissions on. Max of 16 items.
         * 
         * @return builder
         * 
         */
        public Builder actions(List<String> actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param actions Set of IAM actions to grant or revoke permissions on. Max of 16 items.
         * 
         * @return builder
         * 
         */
        public Builder actions(String... actions) {
            return actions(List.of(actions));
        }

        /**
         * @param principal The Amazon Resource Name (ARN) of the principal.
         * 
         * @return builder
         * 
         */
        public Builder principal(Output<String> principal) {
            $.principal = principal;
            return this;
        }

        /**
         * @param principal The Amazon Resource Name (ARN) of the principal.
         * 
         * @return builder
         * 
         */
        public Builder principal(String principal) {
            return principal(Output.of(principal));
        }

        public DataSourcePermissionArgs build() {
            $.actions = Objects.requireNonNull($.actions, "expected parameter 'actions' to be non-null");
            $.principal = Objects.requireNonNull($.principal, "expected parameter 'principal' to be non-null");
            return $;
        }
    }

}
