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

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

@CustomType
public final class GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification {
    /**
     * @return ID of the launch template. Conflicts with `launch_template_name`.
     * 
     */
    private @Nullable String launchTemplateId;
    /**
     * @return Name of the launch template. Conflicts with `launch_template_id`.
     * 
     */
    private @Nullable String launchTemplateName;
    /**
     * @return Template version. Can be version number, `$Latest`, or `$Default`. (Default: `$Default`).
     * 
     */
    private @Nullable String version;

    private GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification() {}
    /**
     * @return ID of the launch template. Conflicts with `launch_template_name`.
     * 
     */
    public Optional<String> launchTemplateId() {
        return Optional.ofNullable(this.launchTemplateId);
    }
    /**
     * @return Name of the launch template. Conflicts with `launch_template_id`.
     * 
     */
    public Optional<String> launchTemplateName() {
        return Optional.ofNullable(this.launchTemplateName);
    }
    /**
     * @return Template version. Can be version number, `$Latest`, or `$Default`. (Default: `$Default`).
     * 
     */
    public Optional<String> version() {
        return Optional.ofNullable(this.version);
    }

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

    public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String launchTemplateId;
        private @Nullable String launchTemplateName;
        private @Nullable String version;
        public Builder() {}
        public Builder(GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.launchTemplateId = defaults.launchTemplateId;
    	      this.launchTemplateName = defaults.launchTemplateName;
    	      this.version = defaults.version;
        }

        @CustomType.Setter
        public Builder launchTemplateId(@Nullable String launchTemplateId) {
            this.launchTemplateId = launchTemplateId;
            return this;
        }
        @CustomType.Setter
        public Builder launchTemplateName(@Nullable String launchTemplateName) {
            this.launchTemplateName = launchTemplateName;
            return this;
        }
        @CustomType.Setter
        public Builder version(@Nullable String version) {
            this.version = version;
            return this;
        }
        public GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification build() {
            final var o = new GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification();
            o.launchTemplateId = launchTemplateId;
            o.launchTemplateName = launchTemplateName;
            o.version = version;
            return o;
        }
    }
}
