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

com.pulumi.aws.emr.inputs.ClusterStepArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.emr.inputs;

import com.pulumi.aws.emr.inputs.ClusterStepHadoopJarStepArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final ClusterStepArgs Empty = new ClusterStepArgs();

    /**
     * Action to take if the step fails. Valid values: `TERMINATE_JOB_FLOW`, `TERMINATE_CLUSTER`, `CANCEL_AND_WAIT`, and `CONTINUE`
     * 
     */
    @Import(name="actionOnFailure", required=true)
    private Output actionOnFailure;

    /**
     * @return Action to take if the step fails. Valid values: `TERMINATE_JOB_FLOW`, `TERMINATE_CLUSTER`, `CANCEL_AND_WAIT`, and `CONTINUE`
     * 
     */
    public Output actionOnFailure() {
        return this.actionOnFailure;
    }

    /**
     * JAR file used for the step. See below.
     * 
     */
    @Import(name="hadoopJarStep", required=true)
    private Output hadoopJarStep;

    /**
     * @return JAR file used for the step. See below.
     * 
     */
    public Output hadoopJarStep() {
        return this.hadoopJarStep;
    }

    /**
     * Name of the step.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the step.
     * 
     */
    public Output name() {
        return this.name;
    }

    private ClusterStepArgs() {}

    private ClusterStepArgs(ClusterStepArgs $) {
        this.actionOnFailure = $.actionOnFailure;
        this.hadoopJarStep = $.hadoopJarStep;
        this.name = $.name;
    }

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

    public static final class Builder {
        private ClusterStepArgs $;

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

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

        /**
         * @param actionOnFailure Action to take if the step fails. Valid values: `TERMINATE_JOB_FLOW`, `TERMINATE_CLUSTER`, `CANCEL_AND_WAIT`, and `CONTINUE`
         * 
         * @return builder
         * 
         */
        public Builder actionOnFailure(Output actionOnFailure) {
            $.actionOnFailure = actionOnFailure;
            return this;
        }

        /**
         * @param actionOnFailure Action to take if the step fails. Valid values: `TERMINATE_JOB_FLOW`, `TERMINATE_CLUSTER`, `CANCEL_AND_WAIT`, and `CONTINUE`
         * 
         * @return builder
         * 
         */
        public Builder actionOnFailure(String actionOnFailure) {
            return actionOnFailure(Output.of(actionOnFailure));
        }

        /**
         * @param hadoopJarStep JAR file used for the step. See below.
         * 
         * @return builder
         * 
         */
        public Builder hadoopJarStep(Output hadoopJarStep) {
            $.hadoopJarStep = hadoopJarStep;
            return this;
        }

        /**
         * @param hadoopJarStep JAR file used for the step. See below.
         * 
         * @return builder
         * 
         */
        public Builder hadoopJarStep(ClusterStepHadoopJarStepArgs hadoopJarStep) {
            return hadoopJarStep(Output.of(hadoopJarStep));
        }

        /**
         * @param name Name of the step.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the step.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public ClusterStepArgs build() {
            if ($.actionOnFailure == null) {
                throw new MissingRequiredPropertyException("ClusterStepArgs", "actionOnFailure");
            }
            if ($.hadoopJarStep == null) {
                throw new MissingRequiredPropertyException("ClusterStepArgs", "hadoopJarStep");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ClusterStepArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy