// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs extends com.pulumi.resources.ResourceArgs {

    public static final SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs Empty = new SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs();

    /**
     * The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`.
     * 
     */
    @Import(name="replacementStrategy")
    private @Nullable Output<String> replacementStrategy;

    /**
     * @return The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`.
     * 
     */
    public Optional<Output<String>> replacementStrategy() {
        return Optional.ofNullable(this.replacementStrategy);
    }

    private SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs() {}

    private SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs(SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs $) {
        this.replacementStrategy = $.replacementStrategy;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs $;

        public Builder() {
            $ = new SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs();
        }

        public Builder(SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs defaults) {
            $ = new SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param replacementStrategy The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`.
         * 
         * @return builder
         * 
         */
        public Builder replacementStrategy(@Nullable Output<String> replacementStrategy) {
            $.replacementStrategy = replacementStrategy;
            return this;
        }

        /**
         * @param replacementStrategy The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`.
         * 
         * @return builder
         * 
         */
        public Builder replacementStrategy(String replacementStrategy) {
            return replacementStrategy(Output.of(replacementStrategy));
        }

        public SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs build() {
            return $;
        }
    }

}
