com.pulumi.aws.ec2.outputs.SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance 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.ec2.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance {
/**
* @return The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`.
*
*/
private @Nullable String replacementStrategy;
private SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance() {}
/**
* @return The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`.
*
*/
public Optional replacementStrategy() {
return Optional.ofNullable(this.replacementStrategy);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String replacementStrategy;
public Builder() {}
public Builder(SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance defaults) {
Objects.requireNonNull(defaults);
this.replacementStrategy = defaults.replacementStrategy;
}
@CustomType.Setter
public Builder replacementStrategy(@Nullable String replacementStrategy) {
this.replacementStrategy = replacementStrategy;
return this;
}
public SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance build() {
final var _resultValue = new SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance();
_resultValue.replacementStrategy = replacementStrategy;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy