
com.pulumi.aws.emr.inputs.ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs 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.inputs;
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 ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs extends com.pulumi.resources.ResourceArgs {
public static final ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs Empty = new ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs();
/**
* Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option is `lowest-price` (the default), which launches the lowest price first.
*
*/
@Import(name="allocationStrategy", required=true)
private Output allocationStrategy;
/**
* @return Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option is `lowest-price` (the default), which launches the lowest price first.
*
*/
public Output allocationStrategy() {
return this.allocationStrategy;
}
private ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs() {}
private ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs(ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs $) {
this.allocationStrategy = $.allocationStrategy;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs $;
public Builder() {
$ = new ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs();
}
public Builder(ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs defaults) {
$ = new ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs(Objects.requireNonNull(defaults));
}
/**
* @param allocationStrategy Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option is `lowest-price` (the default), which launches the lowest price first.
*
* @return builder
*
*/
public Builder allocationStrategy(Output allocationStrategy) {
$.allocationStrategy = allocationStrategy;
return this;
}
/**
* @param allocationStrategy Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option is `lowest-price` (the default), which launches the lowest price first.
*
* @return builder
*
*/
public Builder allocationStrategy(String allocationStrategy) {
return allocationStrategy(Output.of(allocationStrategy));
}
public ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs build() {
if ($.allocationStrategy == null) {
throw new MissingRequiredPropertyException("ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs", "allocationStrategy");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy