// *** 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.azure.compute.inputs.ScaleSetOsProfileWindowsConfigAdditionalUnattendConfigArgs;
import com.pulumi.azure.compute.inputs.ScaleSetOsProfileWindowsConfigWinrmArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ScaleSetOsProfileWindowsConfigArgs Empty = new ScaleSetOsProfileWindowsConfigArgs();

    /**
     * An Additional Unattended Config block as documented below.
     * 
     */
    @Import(name="additionalUnattendConfigs")
    private @Nullable Output<List<ScaleSetOsProfileWindowsConfigAdditionalUnattendConfigArgs>> additionalUnattendConfigs;

    /**
     * @return An Additional Unattended Config block as documented below.
     * 
     */
    public Optional<Output<List<ScaleSetOsProfileWindowsConfigAdditionalUnattendConfigArgs>>> additionalUnattendConfigs() {
        return Optional.ofNullable(this.additionalUnattendConfigs);
    }

    /**
     * Indicates whether virtual machines in the scale set are enabled for automatic updates.
     * 
     */
    @Import(name="enableAutomaticUpgrades")
    private @Nullable Output<Boolean> enableAutomaticUpgrades;

    /**
     * @return Indicates whether virtual machines in the scale set are enabled for automatic updates.
     * 
     */
    public Optional<Output<Boolean>> enableAutomaticUpgrades() {
        return Optional.ofNullable(this.enableAutomaticUpgrades);
    }

    /**
     * Indicates whether virtual machine agent should be provisioned on the virtual machines in the scale set.
     * 
     */
    @Import(name="provisionVmAgent")
    private @Nullable Output<Boolean> provisionVmAgent;

    /**
     * @return Indicates whether virtual machine agent should be provisioned on the virtual machines in the scale set.
     * 
     */
    public Optional<Output<Boolean>> provisionVmAgent() {
        return Optional.ofNullable(this.provisionVmAgent);
    }

    /**
     * A collection of WinRM configuration blocks as documented below.
     * 
     */
    @Import(name="winrms")
    private @Nullable Output<List<ScaleSetOsProfileWindowsConfigWinrmArgs>> winrms;

    /**
     * @return A collection of WinRM configuration blocks as documented below.
     * 
     */
    public Optional<Output<List<ScaleSetOsProfileWindowsConfigWinrmArgs>>> winrms() {
        return Optional.ofNullable(this.winrms);
    }

    private ScaleSetOsProfileWindowsConfigArgs() {}

    private ScaleSetOsProfileWindowsConfigArgs(ScaleSetOsProfileWindowsConfigArgs $) {
        this.additionalUnattendConfigs = $.additionalUnattendConfigs;
        this.enableAutomaticUpgrades = $.enableAutomaticUpgrades;
        this.provisionVmAgent = $.provisionVmAgent;
        this.winrms = $.winrms;
    }

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

    public static final class Builder {
        private ScaleSetOsProfileWindowsConfigArgs $;

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

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

        /**
         * @param additionalUnattendConfigs An Additional Unattended Config block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder additionalUnattendConfigs(@Nullable Output<List<ScaleSetOsProfileWindowsConfigAdditionalUnattendConfigArgs>> additionalUnattendConfigs) {
            $.additionalUnattendConfigs = additionalUnattendConfigs;
            return this;
        }

        /**
         * @param additionalUnattendConfigs An Additional Unattended Config block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder additionalUnattendConfigs(List<ScaleSetOsProfileWindowsConfigAdditionalUnattendConfigArgs> additionalUnattendConfigs) {
            return additionalUnattendConfigs(Output.of(additionalUnattendConfigs));
        }

        /**
         * @param additionalUnattendConfigs An Additional Unattended Config block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder additionalUnattendConfigs(ScaleSetOsProfileWindowsConfigAdditionalUnattendConfigArgs... additionalUnattendConfigs) {
            return additionalUnattendConfigs(List.of(additionalUnattendConfigs));
        }

        /**
         * @param enableAutomaticUpgrades Indicates whether virtual machines in the scale set are enabled for automatic updates.
         * 
         * @return builder
         * 
         */
        public Builder enableAutomaticUpgrades(@Nullable Output<Boolean> enableAutomaticUpgrades) {
            $.enableAutomaticUpgrades = enableAutomaticUpgrades;
            return this;
        }

        /**
         * @param enableAutomaticUpgrades Indicates whether virtual machines in the scale set are enabled for automatic updates.
         * 
         * @return builder
         * 
         */
        public Builder enableAutomaticUpgrades(Boolean enableAutomaticUpgrades) {
            return enableAutomaticUpgrades(Output.of(enableAutomaticUpgrades));
        }

        /**
         * @param provisionVmAgent Indicates whether virtual machine agent should be provisioned on the virtual machines in the scale set.
         * 
         * @return builder
         * 
         */
        public Builder provisionVmAgent(@Nullable Output<Boolean> provisionVmAgent) {
            $.provisionVmAgent = provisionVmAgent;
            return this;
        }

        /**
         * @param provisionVmAgent Indicates whether virtual machine agent should be provisioned on the virtual machines in the scale set.
         * 
         * @return builder
         * 
         */
        public Builder provisionVmAgent(Boolean provisionVmAgent) {
            return provisionVmAgent(Output.of(provisionVmAgent));
        }

        /**
         * @param winrms A collection of WinRM configuration blocks as documented below.
         * 
         * @return builder
         * 
         */
        public Builder winrms(@Nullable Output<List<ScaleSetOsProfileWindowsConfigWinrmArgs>> winrms) {
            $.winrms = winrms;
            return this;
        }

        /**
         * @param winrms A collection of WinRM configuration blocks as documented below.
         * 
         * @return builder
         * 
         */
        public Builder winrms(List<ScaleSetOsProfileWindowsConfigWinrmArgs> winrms) {
            return winrms(Output.of(winrms));
        }

        /**
         * @param winrms A collection of WinRM configuration blocks as documented below.
         * 
         * @return builder
         * 
         */
        public Builder winrms(ScaleSetOsProfileWindowsConfigWinrmArgs... winrms) {
            return winrms(List.of(winrms));
        }

        public ScaleSetOsProfileWindowsConfigArgs build() {
            return $;
        }
    }

}
