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

import com.pulumi.azure.compute.outputs.OrchestratedVirtualMachineScaleSetOsProfileLinuxConfiguration;
import com.pulumi.azure.compute.outputs.OrchestratedVirtualMachineScaleSetOsProfileWindowsConfiguration;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class OrchestratedVirtualMachineScaleSetOsProfile {
    /**
     * @return The Base64-Encoded Custom Data which should be used for this Orchestrated Virtual Machine Scale Set.
     * 
     * &gt; **NOTE:** When Custom Data has been configured, it&#39;s not possible to remove it without tainting the Orchestrated Virtual Machine Scale Set, due to a limitation of the Azure API.
     * 
     */
    private @Nullable String customData;
    /**
     * @return A `linux_configuration` block as documented below.
     * 
     */
    private @Nullable OrchestratedVirtualMachineScaleSetOsProfileLinuxConfiguration linuxConfiguration;
    /**
     * @return A `windows_configuration` block as documented below.
     * 
     */
    private @Nullable OrchestratedVirtualMachineScaleSetOsProfileWindowsConfiguration windowsConfiguration;

    private OrchestratedVirtualMachineScaleSetOsProfile() {}
    /**
     * @return The Base64-Encoded Custom Data which should be used for this Orchestrated Virtual Machine Scale Set.
     * 
     * &gt; **NOTE:** When Custom Data has been configured, it&#39;s not possible to remove it without tainting the Orchestrated Virtual Machine Scale Set, due to a limitation of the Azure API.
     * 
     */
    public Optional<String> customData() {
        return Optional.ofNullable(this.customData);
    }
    /**
     * @return A `linux_configuration` block as documented below.
     * 
     */
    public Optional<OrchestratedVirtualMachineScaleSetOsProfileLinuxConfiguration> linuxConfiguration() {
        return Optional.ofNullable(this.linuxConfiguration);
    }
    /**
     * @return A `windows_configuration` block as documented below.
     * 
     */
    public Optional<OrchestratedVirtualMachineScaleSetOsProfileWindowsConfiguration> windowsConfiguration() {
        return Optional.ofNullable(this.windowsConfiguration);
    }

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

    public static Builder builder(OrchestratedVirtualMachineScaleSetOsProfile defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String customData;
        private @Nullable OrchestratedVirtualMachineScaleSetOsProfileLinuxConfiguration linuxConfiguration;
        private @Nullable OrchestratedVirtualMachineScaleSetOsProfileWindowsConfiguration windowsConfiguration;
        public Builder() {}
        public Builder(OrchestratedVirtualMachineScaleSetOsProfile defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.customData = defaults.customData;
    	      this.linuxConfiguration = defaults.linuxConfiguration;
    	      this.windowsConfiguration = defaults.windowsConfiguration;
        }

        @CustomType.Setter
        public Builder customData(@Nullable String customData) {
            this.customData = customData;
            return this;
        }
        @CustomType.Setter
        public Builder linuxConfiguration(@Nullable OrchestratedVirtualMachineScaleSetOsProfileLinuxConfiguration linuxConfiguration) {
            this.linuxConfiguration = linuxConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder windowsConfiguration(@Nullable OrchestratedVirtualMachineScaleSetOsProfileWindowsConfiguration windowsConfiguration) {
            this.windowsConfiguration = windowsConfiguration;
            return this;
        }
        public OrchestratedVirtualMachineScaleSetOsProfile build() {
            final var o = new OrchestratedVirtualMachineScaleSetOsProfile();
            o.customData = customData;
            o.linuxConfiguration = linuxConfiguration;
            o.windowsConfiguration = windowsConfiguration;
            return o;
        }
    }
}
