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

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 EncryptionByDefaultArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncryptionByDefaultArgs Empty = new EncryptionByDefaultArgs();

    /**
     * Whether or not default EBS encryption is enabled. Valid values are `true` or `false`. Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output<Boolean> enabled;

    /**
     * @return Whether or not default EBS encryption is enabled. Valid values are `true` or `false`. Defaults to `true`.
     * 
     */
    public Optional<Output<Boolean>> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    private EncryptionByDefaultArgs() {}

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

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

    public static final class Builder {
        private EncryptionByDefaultArgs $;

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

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

        /**
         * @param enabled Whether or not default EBS encryption is enabled. Valid values are `true` or `false`. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output<Boolean> enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether or not default EBS encryption is enabled. Valid values are `true` or `false`. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        public EncryptionByDefaultArgs build() {
            return $;
        }
    }

}
