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

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

// *** 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.String;
import java.util.Objects;


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

    public static final WindowsVirtualMachineAdditionalUnattendContentArgs Empty = new WindowsVirtualMachineAdditionalUnattendContentArgs();

    /**
     * The XML formatted content that is added to the unattend.xml file for the specified path and component. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="content", required=true)
    private Output content;

    /**
     * @return The XML formatted content that is added to the unattend.xml file for the specified path and component. Changing this forces a new resource to be created.
     * 
     */
    public Output content() {
        return this.content;
    }

    /**
     * The name of the setting to which the content applies. Possible values are `AutoLogon` and `FirstLogonCommands`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="setting", required=true)
    private Output setting;

    /**
     * @return The name of the setting to which the content applies. Possible values are `AutoLogon` and `FirstLogonCommands`. Changing this forces a new resource to be created.
     * 
     */
    public Output setting() {
        return this.setting;
    }

    private WindowsVirtualMachineAdditionalUnattendContentArgs() {}

    private WindowsVirtualMachineAdditionalUnattendContentArgs(WindowsVirtualMachineAdditionalUnattendContentArgs $) {
        this.content = $.content;
        this.setting = $.setting;
    }

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

    public static final class Builder {
        private WindowsVirtualMachineAdditionalUnattendContentArgs $;

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

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

        /**
         * @param content The XML formatted content that is added to the unattend.xml file for the specified path and component. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder content(Output content) {
            $.content = content;
            return this;
        }

        /**
         * @param content The XML formatted content that is added to the unattend.xml file for the specified path and component. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder content(String content) {
            return content(Output.of(content));
        }

        /**
         * @param setting The name of the setting to which the content applies. Possible values are `AutoLogon` and `FirstLogonCommands`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder setting(Output setting) {
            $.setting = setting;
            return this;
        }

        /**
         * @param setting The name of the setting to which the content applies. Possible values are `AutoLogon` and `FirstLogonCommands`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder setting(String setting) {
            return setting(Output.of(setting));
        }

        public WindowsVirtualMachineAdditionalUnattendContentArgs build() {
            if ($.content == null) {
                throw new MissingRequiredPropertyException("WindowsVirtualMachineAdditionalUnattendContentArgs", "content");
            }
            if ($.setting == null) {
                throw new MissingRequiredPropertyException("WindowsVirtualMachineAdditionalUnattendContentArgs", "setting");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy