com.pulumi.aws.emr.outputs.ClusterStep Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.aws.emr.outputs.ClusterStepHadoopJarStep;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class ClusterStep {
/**
* @return Action to take if the step fails. Valid values: `TERMINATE_JOB_FLOW`, `TERMINATE_CLUSTER`, `CANCEL_AND_WAIT`, and `CONTINUE`
*
*/
private String actionOnFailure;
/**
* @return JAR file used for the step. See below.
*
*/
private ClusterStepHadoopJarStep hadoopJarStep;
/**
* @return Name of the step.
*
*/
private String name;
private ClusterStep() {}
/**
* @return Action to take if the step fails. Valid values: `TERMINATE_JOB_FLOW`, `TERMINATE_CLUSTER`, `CANCEL_AND_WAIT`, and `CONTINUE`
*
*/
public String actionOnFailure() {
return this.actionOnFailure;
}
/**
* @return JAR file used for the step. See below.
*
*/
public ClusterStepHadoopJarStep hadoopJarStep() {
return this.hadoopJarStep;
}
/**
* @return Name of the step.
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClusterStep defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String actionOnFailure;
private ClusterStepHadoopJarStep hadoopJarStep;
private String name;
public Builder() {}
public Builder(ClusterStep defaults) {
Objects.requireNonNull(defaults);
this.actionOnFailure = defaults.actionOnFailure;
this.hadoopJarStep = defaults.hadoopJarStep;
this.name = defaults.name;
}
@CustomType.Setter
public Builder actionOnFailure(String actionOnFailure) {
if (actionOnFailure == null) {
throw new MissingRequiredPropertyException("ClusterStep", "actionOnFailure");
}
this.actionOnFailure = actionOnFailure;
return this;
}
@CustomType.Setter
public Builder hadoopJarStep(ClusterStepHadoopJarStep hadoopJarStep) {
if (hadoopJarStep == null) {
throw new MissingRequiredPropertyException("ClusterStep", "hadoopJarStep");
}
this.hadoopJarStep = hadoopJarStep;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ClusterStep", "name");
}
this.name = name;
return this;
}
public ClusterStep build() {
final var _resultValue = new ClusterStep();
_resultValue.actionOnFailure = actionOnFailure;
_resultValue.hadoopJarStep = hadoopJarStep;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy