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

com.pulumi.azure.automation.SoftwareUpdateConfigurationArgs 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.automation;

import com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationLinuxArgs;
import com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationPostTaskArgs;
import com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationPreTaskArgs;
import com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationScheduleArgs;
import com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationTargetArgs;
import com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationWindowsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SoftwareUpdateConfigurationArgs Empty = new SoftwareUpdateConfigurationArgs();

    /**
     * The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.
     * 
     */
    @Import(name="automationAccountId", required=true)
    private Output automationAccountId;

    /**
     * @return The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.
     * 
     */
    public Output automationAccountId() {
        return this.automationAccountId;
    }

    /**
     * Maximum time allowed for the software update configuration run. using format `PT[n]H[n]M[n]S` as per ISO8601. Defaults to `PT2H`.
     * 
     */
    @Import(name="duration")
    private @Nullable Output duration;

    /**
     * @return Maximum time allowed for the software update configuration run. using format `PT[n]H[n]M[n]S` as per ISO8601. Defaults to `PT2H`.
     * 
     */
    public Optional> duration() {
        return Optional.ofNullable(this.duration);
    }

    /**
     * A `linux` block as defined below.
     * 
     */
    @Import(name="linux")
    private @Nullable Output linux;

    /**
     * @return A `linux` block as defined below.
     * 
     */
    public Optional> linux() {
        return Optional.ofNullable(this.linux);
    }

    /**
     * The name which should be used for this Automation. Changing this forces a new Automation to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Automation. Changing this forces a new Automation to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies a list of names of non-Azure machines for the software update configuration.
     * 
     */
    @Import(name="nonAzureComputerNames")
    private @Nullable Output> nonAzureComputerNames;

    /**
     * @return Specifies a list of names of non-Azure machines for the software update configuration.
     * 
     */
    public Optional>> nonAzureComputerNames() {
        return Optional.ofNullable(this.nonAzureComputerNames);
    }

    /**
     * A `post_task` blocks as defined below.
     * 
     */
    @Import(name="postTask")
    private @Nullable Output postTask;

    /**
     * @return A `post_task` blocks as defined below.
     * 
     */
    public Optional> postTask() {
        return Optional.ofNullable(this.postTask);
    }

    /**
     * A `pre_task` blocks as defined below.
     * 
     */
    @Import(name="preTask")
    private @Nullable Output preTask;

    /**
     * @return A `pre_task` blocks as defined below.
     * 
     */
    public Optional> preTask() {
        return Optional.ofNullable(this.preTask);
    }

    /**
     * A `schedule` blocks as defined below.
     * 
     */
    @Import(name="schedule", required=true)
    private Output schedule;

    /**
     * @return A `schedule` blocks as defined below.
     * 
     */
    public Output schedule() {
        return this.schedule;
    }

    /**
     * A `target` blocks as defined below.
     * 
     */
    @Import(name="target")
    private @Nullable Output target;

    /**
     * @return A `target` blocks as defined below.
     * 
     */
    public Optional> target() {
        return Optional.ofNullable(this.target);
    }

    /**
     * Specifies a list of Azure Resource IDs of azure virtual machines.
     * 
     */
    @Import(name="virtualMachineIds")
    private @Nullable Output> virtualMachineIds;

    /**
     * @return Specifies a list of Azure Resource IDs of azure virtual machines.
     * 
     */
    public Optional>> virtualMachineIds() {
        return Optional.ofNullable(this.virtualMachineIds);
    }

    /**
     * A `windows` block as defined below.
     * 
     * > **NOTE:** One of `linux` or `windows` must be specified.
     * 
     */
    @Import(name="windows")
    private @Nullable Output windows;

    /**
     * @return A `windows` block as defined below.
     * 
     * > **NOTE:** One of `linux` or `windows` must be specified.
     * 
     */
    public Optional> windows() {
        return Optional.ofNullable(this.windows);
    }

    private SoftwareUpdateConfigurationArgs() {}

    private SoftwareUpdateConfigurationArgs(SoftwareUpdateConfigurationArgs $) {
        this.automationAccountId = $.automationAccountId;
        this.duration = $.duration;
        this.linux = $.linux;
        this.name = $.name;
        this.nonAzureComputerNames = $.nonAzureComputerNames;
        this.postTask = $.postTask;
        this.preTask = $.preTask;
        this.schedule = $.schedule;
        this.target = $.target;
        this.virtualMachineIds = $.virtualMachineIds;
        this.windows = $.windows;
    }

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

    public static final class Builder {
        private SoftwareUpdateConfigurationArgs $;

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

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

        /**
         * @param automationAccountId The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountId(Output automationAccountId) {
            $.automationAccountId = automationAccountId;
            return this;
        }

        /**
         * @param automationAccountId The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountId(String automationAccountId) {
            return automationAccountId(Output.of(automationAccountId));
        }

        /**
         * @param duration Maximum time allowed for the software update configuration run. using format `PT[n]H[n]M[n]S` as per ISO8601. Defaults to `PT2H`.
         * 
         * @return builder
         * 
         */
        public Builder duration(@Nullable Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration Maximum time allowed for the software update configuration run. using format `PT[n]H[n]M[n]S` as per ISO8601. Defaults to `PT2H`.
         * 
         * @return builder
         * 
         */
        public Builder duration(String duration) {
            return duration(Output.of(duration));
        }

        /**
         * @param linux A `linux` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder linux(@Nullable Output linux) {
            $.linux = linux;
            return this;
        }

        /**
         * @param linux A `linux` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder linux(SoftwareUpdateConfigurationLinuxArgs linux) {
            return linux(Output.of(linux));
        }

        /**
         * @param name The name which should be used for this Automation. Changing this forces a new Automation to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Automation. Changing this forces a new Automation to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nonAzureComputerNames Specifies a list of names of non-Azure machines for the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder nonAzureComputerNames(@Nullable Output> nonAzureComputerNames) {
            $.nonAzureComputerNames = nonAzureComputerNames;
            return this;
        }

        /**
         * @param nonAzureComputerNames Specifies a list of names of non-Azure machines for the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder nonAzureComputerNames(List nonAzureComputerNames) {
            return nonAzureComputerNames(Output.of(nonAzureComputerNames));
        }

        /**
         * @param nonAzureComputerNames Specifies a list of names of non-Azure machines for the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder nonAzureComputerNames(String... nonAzureComputerNames) {
            return nonAzureComputerNames(List.of(nonAzureComputerNames));
        }

        /**
         * @param postTask A `post_task` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder postTask(@Nullable Output postTask) {
            $.postTask = postTask;
            return this;
        }

        /**
         * @param postTask A `post_task` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder postTask(SoftwareUpdateConfigurationPostTaskArgs postTask) {
            return postTask(Output.of(postTask));
        }

        /**
         * @param preTask A `pre_task` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder preTask(@Nullable Output preTask) {
            $.preTask = preTask;
            return this;
        }

        /**
         * @param preTask A `pre_task` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder preTask(SoftwareUpdateConfigurationPreTaskArgs preTask) {
            return preTask(Output.of(preTask));
        }

        /**
         * @param schedule A `schedule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schedule(Output schedule) {
            $.schedule = schedule;
            return this;
        }

        /**
         * @param schedule A `schedule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schedule(SoftwareUpdateConfigurationScheduleArgs schedule) {
            return schedule(Output.of(schedule));
        }

        /**
         * @param target A `target` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder target(@Nullable Output target) {
            $.target = target;
            return this;
        }

        /**
         * @param target A `target` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder target(SoftwareUpdateConfigurationTargetArgs target) {
            return target(Output.of(target));
        }

        /**
         * @param virtualMachineIds Specifies a list of Azure Resource IDs of azure virtual machines.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineIds(@Nullable Output> virtualMachineIds) {
            $.virtualMachineIds = virtualMachineIds;
            return this;
        }

        /**
         * @param virtualMachineIds Specifies a list of Azure Resource IDs of azure virtual machines.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineIds(List virtualMachineIds) {
            return virtualMachineIds(Output.of(virtualMachineIds));
        }

        /**
         * @param virtualMachineIds Specifies a list of Azure Resource IDs of azure virtual machines.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineIds(String... virtualMachineIds) {
            return virtualMachineIds(List.of(virtualMachineIds));
        }

        /**
         * @param windows A `windows` block as defined below.
         * 
         * > **NOTE:** One of `linux` or `windows` must be specified.
         * 
         * @return builder
         * 
         */
        public Builder windows(@Nullable Output windows) {
            $.windows = windows;
            return this;
        }

        /**
         * @param windows A `windows` block as defined below.
         * 
         * > **NOTE:** One of `linux` or `windows` must be specified.
         * 
         * @return builder
         * 
         */
        public Builder windows(SoftwareUpdateConfigurationWindowsArgs windows) {
            return windows(Output.of(windows));
        }

        public SoftwareUpdateConfigurationArgs build() {
            if ($.automationAccountId == null) {
                throw new MissingRequiredPropertyException("SoftwareUpdateConfigurationArgs", "automationAccountId");
            }
            if ($.schedule == null) {
                throw new MissingRequiredPropertyException("SoftwareUpdateConfigurationArgs", "schedule");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy