
com.pulumi.aws.emr.outputs.ClusterBootstrapAction Maven / Gradle / Ivy
// *** 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 com.pulumi.exceptions.MissingRequiredPropertyException;
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 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 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 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 args) {
this.args = args;
return this;
}
public Builder args(String... args) {
return args(List.of(args));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ClusterBootstrapAction", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder path(String path) {
if (path == null) {
throw new MissingRequiredPropertyException("ClusterBootstrapAction", "path");
}
this.path = path;
return this;
}
public ClusterBootstrapAction build() {
final var _resultValue = new ClusterBootstrapAction();
_resultValue.args = args;
_resultValue.name = name;
_resultValue.path = path;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy