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

com.pulumi.azurenative.automation.inputs.UpdateConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.automation.inputs;

import com.pulumi.azurenative.automation.enums.OperatingSystemType;
import com.pulumi.azurenative.automation.inputs.LinuxPropertiesArgs;
import com.pulumi.azurenative.automation.inputs.TargetPropertiesArgs;
import com.pulumi.azurenative.automation.inputs.WindowsPropertiesArgs;
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;


/**
 * Update specific properties of the software update configuration.
 * 
 */
public final class UpdateConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final UpdateConfigurationArgs Empty = new UpdateConfigurationArgs();

    /**
     * List of azure resource Ids for azure virtual machines targeted by the software update configuration.
     * 
     */
    @Import(name="azureVirtualMachines")
    private @Nullable Output> azureVirtualMachines;

    /**
     * @return List of azure resource Ids for azure virtual machines targeted by the software update configuration.
     * 
     */
    public Optional>> azureVirtualMachines() {
        return Optional.ofNullable(this.azureVirtualMachines);
    }

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

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

    /**
     * Linux specific update configuration.
     * 
     */
    @Import(name="linux")
    private @Nullable Output linux;

    /**
     * @return Linux specific update configuration.
     * 
     */
    public Optional> linux() {
        return Optional.ofNullable(this.linux);
    }

    /**
     * List of names of non-azure machines targeted by the software update configuration.
     * 
     */
    @Import(name="nonAzureComputerNames")
    private @Nullable Output> nonAzureComputerNames;

    /**
     * @return List of names of non-azure machines targeted by the software update configuration.
     * 
     */
    public Optional>> nonAzureComputerNames() {
        return Optional.ofNullable(this.nonAzureComputerNames);
    }

    /**
     * operating system of target machines
     * 
     */
    @Import(name="operatingSystem", required=true)
    private Output operatingSystem;

    /**
     * @return operating system of target machines
     * 
     */
    public Output operatingSystem() {
        return this.operatingSystem;
    }

    /**
     * Group targets for the software update configuration.
     * 
     */
    @Import(name="targets")
    private @Nullable Output targets;

    /**
     * @return Group targets for the software update configuration.
     * 
     */
    public Optional> targets() {
        return Optional.ofNullable(this.targets);
    }

    /**
     * Windows specific update configuration.
     * 
     */
    @Import(name="windows")
    private @Nullable Output windows;

    /**
     * @return Windows specific update configuration.
     * 
     */
    public Optional> windows() {
        return Optional.ofNullable(this.windows);
    }

    private UpdateConfigurationArgs() {}

    private UpdateConfigurationArgs(UpdateConfigurationArgs $) {
        this.azureVirtualMachines = $.azureVirtualMachines;
        this.duration = $.duration;
        this.linux = $.linux;
        this.nonAzureComputerNames = $.nonAzureComputerNames;
        this.operatingSystem = $.operatingSystem;
        this.targets = $.targets;
        this.windows = $.windows;
    }

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

    public static final class Builder {
        private UpdateConfigurationArgs $;

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

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

        /**
         * @param azureVirtualMachines List of azure resource Ids for azure virtual machines targeted by the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder azureVirtualMachines(@Nullable Output> azureVirtualMachines) {
            $.azureVirtualMachines = azureVirtualMachines;
            return this;
        }

        /**
         * @param azureVirtualMachines List of azure resource Ids for azure virtual machines targeted by the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder azureVirtualMachines(List azureVirtualMachines) {
            return azureVirtualMachines(Output.of(azureVirtualMachines));
        }

        /**
         * @param azureVirtualMachines List of azure resource Ids for azure virtual machines targeted by the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder azureVirtualMachines(String... azureVirtualMachines) {
            return azureVirtualMachines(List.of(azureVirtualMachines));
        }

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

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

        /**
         * @param linux Linux specific update configuration.
         * 
         * @return builder
         * 
         */
        public Builder linux(@Nullable Output linux) {
            $.linux = linux;
            return this;
        }

        /**
         * @param linux Linux specific update configuration.
         * 
         * @return builder
         * 
         */
        public Builder linux(LinuxPropertiesArgs linux) {
            return linux(Output.of(linux));
        }

        /**
         * @param nonAzureComputerNames List of names of non-azure machines targeted by the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder nonAzureComputerNames(@Nullable Output> nonAzureComputerNames) {
            $.nonAzureComputerNames = nonAzureComputerNames;
            return this;
        }

        /**
         * @param nonAzureComputerNames List of names of non-azure machines targeted by the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder nonAzureComputerNames(List nonAzureComputerNames) {
            return nonAzureComputerNames(Output.of(nonAzureComputerNames));
        }

        /**
         * @param nonAzureComputerNames List of names of non-azure machines targeted by the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder nonAzureComputerNames(String... nonAzureComputerNames) {
            return nonAzureComputerNames(List.of(nonAzureComputerNames));
        }

        /**
         * @param operatingSystem operating system of target machines
         * 
         * @return builder
         * 
         */
        public Builder operatingSystem(Output operatingSystem) {
            $.operatingSystem = operatingSystem;
            return this;
        }

        /**
         * @param operatingSystem operating system of target machines
         * 
         * @return builder
         * 
         */
        public Builder operatingSystem(OperatingSystemType operatingSystem) {
            return operatingSystem(Output.of(operatingSystem));
        }

        /**
         * @param targets Group targets for the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder targets(@Nullable Output targets) {
            $.targets = targets;
            return this;
        }

        /**
         * @param targets Group targets for the software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder targets(TargetPropertiesArgs targets) {
            return targets(Output.of(targets));
        }

        /**
         * @param windows Windows specific update configuration.
         * 
         * @return builder
         * 
         */
        public Builder windows(@Nullable Output windows) {
            $.windows = windows;
            return this;
        }

        /**
         * @param windows Windows specific update configuration.
         * 
         * @return builder
         * 
         */
        public Builder windows(WindowsPropertiesArgs windows) {
            return windows(Output.of(windows));
        }

        public UpdateConfigurationArgs build() {
            if ($.operatingSystem == null) {
                throw new MissingRequiredPropertyException("UpdateConfigurationArgs", "operatingSystem");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy