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

com.pulumi.azure.compute.inputs.ScaleSetBootDiagnosticsArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.compute.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 enabled;

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

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

    /**
     * @return Blob endpoint for the storage account to hold the virtual machine's diagnostic files. This must be the root of a storage account, and not a storage container.
     * 
     */
    public Output 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 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's diagnostic files. This must be the root of a storage account, and not a storage container.
         * 
         * @return builder
         * 
         */
        public Builder storageUri(Output storageUri) {
            $.storageUri = storageUri;
            return this;
        }

        /**
         * @param storageUri Blob endpoint for the storage account to hold the virtual machine'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() {
            if ($.storageUri == null) {
                throw new MissingRequiredPropertyException("ScaleSetBootDiagnosticsArgs", "storageUri");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy