// *** 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.aws.ec2.inputs.FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FleetSpotOptionsMaintenanceStrategiesArgs Empty = new FleetSpotOptionsMaintenanceStrategiesArgs();

    /**
     * Nested argument containing the capacity rebalance for your fleet request. Defined below.
     * 
     */
    @Import(name="capacityRebalance")
    private @Nullable Output<FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs> capacityRebalance;

    /**
     * @return Nested argument containing the capacity rebalance for your fleet request. Defined below.
     * 
     */
    public Optional<Output<FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs>> capacityRebalance() {
        return Optional.ofNullable(this.capacityRebalance);
    }

    private FleetSpotOptionsMaintenanceStrategiesArgs() {}

    private FleetSpotOptionsMaintenanceStrategiesArgs(FleetSpotOptionsMaintenanceStrategiesArgs $) {
        this.capacityRebalance = $.capacityRebalance;
    }

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

    public static final class Builder {
        private FleetSpotOptionsMaintenanceStrategiesArgs $;

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

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

        /**
         * @param capacityRebalance Nested argument containing the capacity rebalance for your fleet request. Defined below.
         * 
         * @return builder
         * 
         */
        public Builder capacityRebalance(@Nullable Output<FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs> capacityRebalance) {
            $.capacityRebalance = capacityRebalance;
            return this;
        }

        /**
         * @param capacityRebalance Nested argument containing the capacity rebalance for your fleet request. Defined below.
         * 
         * @return builder
         * 
         */
        public Builder capacityRebalance(FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs capacityRebalance) {
            return capacityRebalance(Output.of(capacityRebalance));
        }

        public FleetSpotOptionsMaintenanceStrategiesArgs build() {
            return $;
        }
    }

}
