// *** 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.emr.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class ClusterBootstrapAction {
    /**
     * @return List of command line arguments to pass to the bootstrap action script.
     * 
     */
    private @Nullable List<String> args;
    /**
     * @return Name of the bootstrap action.
     * 
     */
    private String name;
    /**
     * @return Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
     * 
     */
    private String path;

    private ClusterBootstrapAction() {}
    /**
     * @return List of command line arguments to pass to the bootstrap action script.
     * 
     */
    public List<String> args() {
        return this.args == null ? List.of() : this.args;
    }
    /**
     * @return Name of the bootstrap action.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
     * 
     */
    public String path() {
        return this.path;
    }

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

    public static Builder builder(ClusterBootstrapAction defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<String> args;
        private String name;
        private String path;
        public Builder() {}
        public Builder(ClusterBootstrapAction defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.args = defaults.args;
    	      this.name = defaults.name;
    	      this.path = defaults.path;
        }

        @CustomType.Setter
        public Builder args(@Nullable List<String> args) {
            this.args = args;
            return this;
        }
        public Builder args(String... args) {
            return args(List.of(args));
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder path(String path) {
            this.path = Objects.requireNonNull(path);
            return this;
        }
        public ClusterBootstrapAction build() {
            final var o = new ClusterBootstrapAction();
            o.args = args;
            o.name = name;
            o.path = path;
            return o;
        }
    }
}
