// *** 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.azure.compute.inputs;

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


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

    public static final ScaleSetBootDiagnosticsArgs Empty = new ScaleSetBootDiagnosticsArgs();

    /**
     * Whether to enable boot diagnostics for the virtual machine. Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output<Boolean> enabled;

    /**
     * @return Whether to enable boot diagnostics for the virtual machine. Defaults to `true`.
     * 
     */
    public Optional<Output<Boolean>> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Blob endpoint for the storage account to hold the virtual machine&#39;s diagnostic files. This must be the root of a storage account, and not a storage container.
     * 
     */
    @Import(name="storageUri", required=true)
    private Output<String> storageUri;

    /**
     * @return Blob endpoint for the storage account to hold the virtual machine&#39;s diagnostic files. This must be the root of a storage account, and not a storage container.
     * 
     */
    public Output<String> storageUri() {
        return this.storageUri;
    }

    private ScaleSetBootDiagnosticsArgs() {}

    private ScaleSetBootDiagnosticsArgs(ScaleSetBootDiagnosticsArgs $) {
        this.enabled = $.enabled;
        this.storageUri = $.storageUri;
    }

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

    public static final class Builder {
        private ScaleSetBootDiagnosticsArgs $;

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

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

        /**
         * @param enabled Whether to enable boot diagnostics for the virtual machine. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output<Boolean> enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether to enable boot diagnostics for the virtual machine. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param storageUri Blob endpoint for the storage account to hold the virtual machine&#39;s diagnostic files. This must be the root of a storage account, and not a storage container.
         * 
         * @return builder
         * 
         */
        public Builder storageUri(Output<String> storageUri) {
            $.storageUri = storageUri;
            return this;
        }

        /**
         * @param storageUri Blob endpoint for the storage account to hold the virtual machine&#39;s diagnostic files. This must be the root of a storage account, and not a storage container.
         * 
         * @return builder
         * 
         */
        public Builder storageUri(String storageUri) {
            return storageUri(Output.of(storageUri));
        }

        public ScaleSetBootDiagnosticsArgs build() {
            $.storageUri = Objects.requireNonNull($.storageUri, "expected parameter 'storageUri' to be non-null");
            return $;
        }
    }

}
