// *** 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.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final LaunchTemplateEnclaveOptionsArgs Empty = new LaunchTemplateEnclaveOptionsArgs();

    /**
     * If set to `true`, Nitro Enclaves will be enabled on the instance.
     * 
     * For more information, see the documentation on [Nitro Enclaves](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html).
     * 
     */
    @Import(name="enabled")
    private @Nullable Output<Boolean> enabled;

    /**
     * @return If set to `true`, Nitro Enclaves will be enabled on the instance.
     * 
     * For more information, see the documentation on [Nitro Enclaves](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html).
     * 
     */
    public Optional<Output<Boolean>> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    private LaunchTemplateEnclaveOptionsArgs() {}

    private LaunchTemplateEnclaveOptionsArgs(LaunchTemplateEnclaveOptionsArgs $) {
        this.enabled = $.enabled;
    }

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

    public static final class Builder {
        private LaunchTemplateEnclaveOptionsArgs $;

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

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

        /**
         * @param enabled If set to `true`, Nitro Enclaves will be enabled on the instance.
         * 
         * For more information, see the documentation on [Nitro Enclaves](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html).
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output<Boolean> enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled If set to `true`, Nitro Enclaves will be enabled on the instance.
         * 
         * For more information, see the documentation on [Nitro Enclaves](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html).
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        public LaunchTemplateEnclaveOptionsArgs build() {
            return $;
        }
    }

}
