All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.compute.inputs.BootDiagnosticsArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.azurenative.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;


/**
 * Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor.
 * 
 */
public final class BootDiagnosticsArgs extends com.pulumi.resources.ResourceArgs {

    public static final BootDiagnosticsArgs Empty = new BootDiagnosticsArgs();

    /**
     * Whether boot diagnostics should be enabled on the Virtual Machine.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Whether boot diagnostics should be enabled on the Virtual Machine.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used.
     * 
     */
    @Import(name="storageUri")
    private @Nullable Output storageUri;

    /**
     * @return Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used.
     * 
     */
    public Optional> storageUri() {
        return Optional.ofNullable(this.storageUri);
    }

    private BootDiagnosticsArgs() {}

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

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

    public static final class Builder {
        private BootDiagnosticsArgs $;

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

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

        /**
         * @param enabled Whether boot diagnostics should be enabled on the Virtual Machine.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether boot diagnostics should be enabled on the Virtual Machine.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param storageUri Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used.
         * 
         * @return builder
         * 
         */
        public Builder storageUri(@Nullable Output storageUri) {
            $.storageUri = storageUri;
            return this;
        }

        /**
         * @param storageUri Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used.
         * 
         * @return builder
         * 
         */
        public Builder storageUri(String storageUri) {
            return storageUri(Output.of(storageUri));
        }

        public BootDiagnosticsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy