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

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

@CustomType
public final class DistributionConfigurationDistributionLaunchTemplateConfiguration {
    /**
     * @return The account ID that this configuration applies to.
     * 
     */
    private @Nullable String accountId;
    /**
     * @return Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to `true`.
     * 
     */
    private @Nullable Boolean default_;
    /**
     * @return The ID of the Amazon EC2 launch template to use.
     * 
     */
    private String launchTemplateId;

    private DistributionConfigurationDistributionLaunchTemplateConfiguration() {}
    /**
     * @return The account ID that this configuration applies to.
     * 
     */
    public Optional<String> accountId() {
        return Optional.ofNullable(this.accountId);
    }
    /**
     * @return Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to `true`.
     * 
     */
    public Optional<Boolean> default_() {
        return Optional.ofNullable(this.default_);
    }
    /**
     * @return The ID of the Amazon EC2 launch template to use.
     * 
     */
    public String launchTemplateId() {
        return this.launchTemplateId;
    }

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

    public static Builder builder(DistributionConfigurationDistributionLaunchTemplateConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String accountId;
        private @Nullable Boolean default_;
        private String launchTemplateId;
        public Builder() {}
        public Builder(DistributionConfigurationDistributionLaunchTemplateConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accountId = defaults.accountId;
    	      this.default_ = defaults.default_;
    	      this.launchTemplateId = defaults.launchTemplateId;
        }

        @CustomType.Setter
        public Builder accountId(@Nullable String accountId) {
            this.accountId = accountId;
            return this;
        }
        @CustomType.Setter("default")
        public Builder default_(@Nullable Boolean default_) {
            this.default_ = default_;
            return this;
        }
        @CustomType.Setter
        public Builder launchTemplateId(String launchTemplateId) {
            this.launchTemplateId = Objects.requireNonNull(launchTemplateId);
            return this;
        }
        public DistributionConfigurationDistributionLaunchTemplateConfiguration build() {
            final var o = new DistributionConfigurationDistributionLaunchTemplateConfiguration();
            o.accountId = accountId;
            o.default_ = default_;
            o.launchTemplateId = launchTemplateId;
            return o;
        }
    }
}
