All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.ec2.inputs.SpotFleetRequestLaunchTemplateConfigOverrideArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SpotFleetRequestLaunchTemplateConfigOverrideArgs Empty = new SpotFleetRequestLaunchTemplateConfigOverrideArgs();

    /**
     * The availability zone in which to place the request.
     * 
     */
    @Import(name="availabilityZone")
    private @Nullable Output availabilityZone;

    /**
     * @return The availability zone in which to place the request.
     * 
     */
    public Optional> availabilityZone() {
        return Optional.ofNullable(this.availabilityZone);
    }

    /**
     * The instance requirements. See below.
     * 
     */
    @Import(name="instanceRequirements")
    private @Nullable Output instanceRequirements;

    /**
     * @return The instance requirements. See below.
     * 
     */
    public Optional> instanceRequirements() {
        return Optional.ofNullable(this.instanceRequirements);
    }

    /**
     * The type of instance to request.
     * 
     */
    @Import(name="instanceType")
    private @Nullable Output instanceType;

    /**
     * @return The type of instance to request.
     * 
     */
    public Optional> instanceType() {
        return Optional.ofNullable(this.instanceType);
    }

    /**
     * The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority.
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    /**
     * The maximum spot bid for this override request.
     * 
     */
    @Import(name="spotPrice")
    private @Nullable Output spotPrice;

    /**
     * @return The maximum spot bid for this override request.
     * 
     */
    public Optional> spotPrice() {
        return Optional.ofNullable(this.spotPrice);
    }

    /**
     * The subnet in which to launch the requested instance.
     * 
     */
    @Import(name="subnetId")
    private @Nullable Output subnetId;

    /**
     * @return The subnet in which to launch the requested instance.
     * 
     */
    public Optional> subnetId() {
        return Optional.ofNullable(this.subnetId);
    }

    /**
     * The capacity added to the fleet by a fulfilled request.
     * 
     */
    @Import(name="weightedCapacity")
    private @Nullable Output weightedCapacity;

    /**
     * @return The capacity added to the fleet by a fulfilled request.
     * 
     */
    public Optional> weightedCapacity() {
        return Optional.ofNullable(this.weightedCapacity);
    }

    private SpotFleetRequestLaunchTemplateConfigOverrideArgs() {}

    private SpotFleetRequestLaunchTemplateConfigOverrideArgs(SpotFleetRequestLaunchTemplateConfigOverrideArgs $) {
        this.availabilityZone = $.availabilityZone;
        this.instanceRequirements = $.instanceRequirements;
        this.instanceType = $.instanceType;
        this.priority = $.priority;
        this.spotPrice = $.spotPrice;
        this.subnetId = $.subnetId;
        this.weightedCapacity = $.weightedCapacity;
    }

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

    public static final class Builder {
        private SpotFleetRequestLaunchTemplateConfigOverrideArgs $;

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

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

        /**
         * @param availabilityZone The availability zone in which to place the request.
         * 
         * @return builder
         * 
         */
        public Builder availabilityZone(@Nullable Output availabilityZone) {
            $.availabilityZone = availabilityZone;
            return this;
        }

        /**
         * @param availabilityZone The availability zone in which to place the request.
         * 
         * @return builder
         * 
         */
        public Builder availabilityZone(String availabilityZone) {
            return availabilityZone(Output.of(availabilityZone));
        }

        /**
         * @param instanceRequirements The instance requirements. See below.
         * 
         * @return builder
         * 
         */
        public Builder instanceRequirements(@Nullable Output instanceRequirements) {
            $.instanceRequirements = instanceRequirements;
            return this;
        }

        /**
         * @param instanceRequirements The instance requirements. See below.
         * 
         * @return builder
         * 
         */
        public Builder instanceRequirements(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsArgs instanceRequirements) {
            return instanceRequirements(Output.of(instanceRequirements));
        }

        /**
         * @param instanceType The type of instance to request.
         * 
         * @return builder
         * 
         */
        public Builder instanceType(@Nullable Output instanceType) {
            $.instanceType = instanceType;
            return this;
        }

        /**
         * @param instanceType The type of instance to request.
         * 
         * @return builder
         * 
         */
        public Builder instanceType(String instanceType) {
            return instanceType(Output.of(instanceType));
        }

        /**
         * @param priority The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority.
         * 
         * @return builder
         * 
         */
        public Builder priority(Double priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param spotPrice The maximum spot bid for this override request.
         * 
         * @return builder
         * 
         */
        public Builder spotPrice(@Nullable Output spotPrice) {
            $.spotPrice = spotPrice;
            return this;
        }

        /**
         * @param spotPrice The maximum spot bid for this override request.
         * 
         * @return builder
         * 
         */
        public Builder spotPrice(String spotPrice) {
            return spotPrice(Output.of(spotPrice));
        }

        /**
         * @param subnetId The subnet in which to launch the requested instance.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(@Nullable Output subnetId) {
            $.subnetId = subnetId;
            return this;
        }

        /**
         * @param subnetId The subnet in which to launch the requested instance.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

        /**
         * @param weightedCapacity The capacity added to the fleet by a fulfilled request.
         * 
         * @return builder
         * 
         */
        public Builder weightedCapacity(@Nullable Output weightedCapacity) {
            $.weightedCapacity = weightedCapacity;
            return this;
        }

        /**
         * @param weightedCapacity The capacity added to the fleet by a fulfilled request.
         * 
         * @return builder
         * 
         */
        public Builder weightedCapacity(Double weightedCapacity) {
            return weightedCapacity(Output.of(weightedCapacity));
        }

        public SpotFleetRequestLaunchTemplateConfigOverrideArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy