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

com.pulumi.aws.ec2.inputs.SpotInstanceRequestLaunchTemplateArgs 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.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 SpotInstanceRequestLaunchTemplateArgs extends com.pulumi.resources.ResourceArgs {

    public static final SpotInstanceRequestLaunchTemplateArgs Empty = new SpotInstanceRequestLaunchTemplateArgs();

    /**
     * ID of the launch template. Conflicts with `name`.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return ID of the launch template. Conflicts with `name`.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Name of the launch template. Conflicts with `id`.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the launch template. Conflicts with `id`.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Template version. Can be a specific version number, `$Latest` or `$Default`. The default value is `$Default`.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Template version. Can be a specific version number, `$Latest` or `$Default`. The default value is `$Default`.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private SpotInstanceRequestLaunchTemplateArgs() {}

    private SpotInstanceRequestLaunchTemplateArgs(SpotInstanceRequestLaunchTemplateArgs $) {
        this.id = $.id;
        this.name = $.name;
        this.version = $.version;
    }

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

    public static final class Builder {
        private SpotInstanceRequestLaunchTemplateArgs $;

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

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

        /**
         * @param id ID of the launch template. Conflicts with `name`.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id ID of the launch template. Conflicts with `name`.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param name Name of the launch template. Conflicts with `id`.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the launch template. Conflicts with `id`.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param version Template version. Can be a specific version number, `$Latest` or `$Default`. The default value is `$Default`.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Template version. Can be a specific version number, `$Latest` or `$Default`. The default value is `$Default`.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public SpotInstanceRequestLaunchTemplateArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy