com.pulumi.aws.emr.outputs.ClusterMasterInstanceFleetLaunchSpecifications 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.aws.emr.outputs.ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification;
import com.pulumi.aws.emr.outputs.ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ClusterMasterInstanceFleetLaunchSpecifications {
/**
* @return Configuration block for on demand instances launch specifications.
*
*/
private @Nullable List onDemandSpecifications;
/**
* @return Configuration block for spot instances launch specifications.
*
*/
private @Nullable List spotSpecifications;
private ClusterMasterInstanceFleetLaunchSpecifications() {}
/**
* @return Configuration block for on demand instances launch specifications.
*
*/
public List onDemandSpecifications() {
return this.onDemandSpecifications == null ? List.of() : this.onDemandSpecifications;
}
/**
* @return Configuration block for spot instances launch specifications.
*
*/
public List spotSpecifications() {
return this.spotSpecifications == null ? List.of() : this.spotSpecifications;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClusterMasterInstanceFleetLaunchSpecifications defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List onDemandSpecifications;
private @Nullable List spotSpecifications;
public Builder() {}
public Builder(ClusterMasterInstanceFleetLaunchSpecifications defaults) {
Objects.requireNonNull(defaults);
this.onDemandSpecifications = defaults.onDemandSpecifications;
this.spotSpecifications = defaults.spotSpecifications;
}
@CustomType.Setter
public Builder onDemandSpecifications(@Nullable List onDemandSpecifications) {
this.onDemandSpecifications = onDemandSpecifications;
return this;
}
public Builder onDemandSpecifications(ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification... onDemandSpecifications) {
return onDemandSpecifications(List.of(onDemandSpecifications));
}
@CustomType.Setter
public Builder spotSpecifications(@Nullable List spotSpecifications) {
this.spotSpecifications = spotSpecifications;
return this;
}
public Builder spotSpecifications(ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification... spotSpecifications) {
return spotSpecifications(List.of(spotSpecifications));
}
public ClusterMasterInstanceFleetLaunchSpecifications build() {
final var _resultValue = new ClusterMasterInstanceFleetLaunchSpecifications();
_resultValue.onDemandSpecifications = onDemandSpecifications;
_resultValue.spotSpecifications = spotSpecifications;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy