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

com.pulumi.aws.ec2.inputs.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs 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.72.0
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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs Empty = new FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs();

    /**
     * The ID of the launch template.
     * 
     */
    @Import(name="launchTemplateId")
    private @Nullable Output launchTemplateId;

    /**
     * @return The ID of the launch template.
     * 
     */
    public Optional> launchTemplateId() {
        return Optional.ofNullable(this.launchTemplateId);
    }

    /**
     * The name of the launch template.
     * 
     */
    @Import(name="launchTemplateName")
    private @Nullable Output launchTemplateName;

    /**
     * @return The name of the launch template.
     * 
     */
    public Optional> launchTemplateName() {
        return Optional.ofNullable(this.launchTemplateName);
    }

    /**
     * The launch template version number, `$Latest`, or `$Default.`
     * 
     */
    @Import(name="version", required=true)
    private Output version;

    /**
     * @return The launch template version number, `$Latest`, or `$Default.`
     * 
     */
    public Output version() {
        return this.version;
    }

    private FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs() {}

    private FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs(FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs $) {
        this.launchTemplateId = $.launchTemplateId;
        this.launchTemplateName = $.launchTemplateName;
        this.version = $.version;
    }

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

    public static final class Builder {
        private FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs $;

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

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

        /**
         * @param launchTemplateId The ID of the launch template.
         * 
         * @return builder
         * 
         */
        public Builder launchTemplateId(@Nullable Output launchTemplateId) {
            $.launchTemplateId = launchTemplateId;
            return this;
        }

        /**
         * @param launchTemplateId The ID of the launch template.
         * 
         * @return builder
         * 
         */
        public Builder launchTemplateId(String launchTemplateId) {
            return launchTemplateId(Output.of(launchTemplateId));
        }

        /**
         * @param launchTemplateName The name of the launch template.
         * 
         * @return builder
         * 
         */
        public Builder launchTemplateName(@Nullable Output launchTemplateName) {
            $.launchTemplateName = launchTemplateName;
            return this;
        }

        /**
         * @param launchTemplateName The name of the launch template.
         * 
         * @return builder
         * 
         */
        public Builder launchTemplateName(String launchTemplateName) {
            return launchTemplateName(Output.of(launchTemplateName));
        }

        /**
         * @param version The launch template version number, `$Latest`, or `$Default.`
         * 
         * @return builder
         * 
         */
        public Builder version(Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The launch template version number, `$Latest`, or `$Default.`
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs build() {
            if ($.version == null) {
                throw new MissingRequiredPropertyException("FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs", "version");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy