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

com.pulumi.azurenative.automation.SoftwareUpdateConfigurationByNameArgs 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.azurenative.automation;

import com.pulumi.azurenative.automation.inputs.ErrorResponseArgs;
import com.pulumi.azurenative.automation.inputs.SUCSchedulePropertiesArgs;
import com.pulumi.azurenative.automation.inputs.SoftwareUpdateConfigurationTasksArgs;
import com.pulumi.azurenative.automation.inputs.UpdateConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SoftwareUpdateConfigurationByNameArgs Empty = new SoftwareUpdateConfigurationByNameArgs();

    /**
     * The name of the automation account.
     * 
     */
    @Import(name="automationAccountName", required=true)
    private Output automationAccountName;

    /**
     * @return The name of the automation account.
     * 
     */
    public Output automationAccountName() {
        return this.automationAccountName;
    }

    /**
     * Details of provisioning error
     * 
     */
    @Import(name="error")
    private @Nullable Output error;

    /**
     * @return Details of provisioning error
     * 
     */
    public Optional> error() {
        return Optional.ofNullable(this.error);
    }

    /**
     * Name of an Azure Resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of an Azure Resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Schedule information for the Software update configuration
     * 
     */
    @Import(name="scheduleInfo", required=true)
    private Output scheduleInfo;

    /**
     * @return Schedule information for the Software update configuration
     * 
     */
    public Output scheduleInfo() {
        return this.scheduleInfo;
    }

    /**
     * The name of the software update configuration to be created.
     * 
     */
    @Import(name="softwareUpdateConfigurationName")
    private @Nullable Output softwareUpdateConfigurationName;

    /**
     * @return The name of the software update configuration to be created.
     * 
     */
    public Optional> softwareUpdateConfigurationName() {
        return Optional.ofNullable(this.softwareUpdateConfigurationName);
    }

    /**
     * Tasks information for the Software update configuration.
     * 
     */
    @Import(name="tasks")
    private @Nullable Output tasks;

    /**
     * @return Tasks information for the Software update configuration.
     * 
     */
    public Optional> tasks() {
        return Optional.ofNullable(this.tasks);
    }

    /**
     * update specific properties for the Software update configuration
     * 
     */
    @Import(name="updateConfiguration", required=true)
    private Output updateConfiguration;

    /**
     * @return update specific properties for the Software update configuration
     * 
     */
    public Output updateConfiguration() {
        return this.updateConfiguration;
    }

    private SoftwareUpdateConfigurationByNameArgs() {}

    private SoftwareUpdateConfigurationByNameArgs(SoftwareUpdateConfigurationByNameArgs $) {
        this.automationAccountName = $.automationAccountName;
        this.error = $.error;
        this.resourceGroupName = $.resourceGroupName;
        this.scheduleInfo = $.scheduleInfo;
        this.softwareUpdateConfigurationName = $.softwareUpdateConfigurationName;
        this.tasks = $.tasks;
        this.updateConfiguration = $.updateConfiguration;
    }

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

    public static final class Builder {
        private SoftwareUpdateConfigurationByNameArgs $;

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

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

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(Output automationAccountName) {
            $.automationAccountName = automationAccountName;
            return this;
        }

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(String automationAccountName) {
            return automationAccountName(Output.of(automationAccountName));
        }

        /**
         * @param error Details of provisioning error
         * 
         * @return builder
         * 
         */
        public Builder error(@Nullable Output error) {
            $.error = error;
            return this;
        }

        /**
         * @param error Details of provisioning error
         * 
         * @return builder
         * 
         */
        public Builder error(ErrorResponseArgs error) {
            return error(Output.of(error));
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param scheduleInfo Schedule information for the Software update configuration
         * 
         * @return builder
         * 
         */
        public Builder scheduleInfo(Output scheduleInfo) {
            $.scheduleInfo = scheduleInfo;
            return this;
        }

        /**
         * @param scheduleInfo Schedule information for the Software update configuration
         * 
         * @return builder
         * 
         */
        public Builder scheduleInfo(SUCSchedulePropertiesArgs scheduleInfo) {
            return scheduleInfo(Output.of(scheduleInfo));
        }

        /**
         * @param softwareUpdateConfigurationName The name of the software update configuration to be created.
         * 
         * @return builder
         * 
         */
        public Builder softwareUpdateConfigurationName(@Nullable Output softwareUpdateConfigurationName) {
            $.softwareUpdateConfigurationName = softwareUpdateConfigurationName;
            return this;
        }

        /**
         * @param softwareUpdateConfigurationName The name of the software update configuration to be created.
         * 
         * @return builder
         * 
         */
        public Builder softwareUpdateConfigurationName(String softwareUpdateConfigurationName) {
            return softwareUpdateConfigurationName(Output.of(softwareUpdateConfigurationName));
        }

        /**
         * @param tasks Tasks information for the Software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder tasks(@Nullable Output tasks) {
            $.tasks = tasks;
            return this;
        }

        /**
         * @param tasks Tasks information for the Software update configuration.
         * 
         * @return builder
         * 
         */
        public Builder tasks(SoftwareUpdateConfigurationTasksArgs tasks) {
            return tasks(Output.of(tasks));
        }

        /**
         * @param updateConfiguration update specific properties for the Software update configuration
         * 
         * @return builder
         * 
         */
        public Builder updateConfiguration(Output updateConfiguration) {
            $.updateConfiguration = updateConfiguration;
            return this;
        }

        /**
         * @param updateConfiguration update specific properties for the Software update configuration
         * 
         * @return builder
         * 
         */
        public Builder updateConfiguration(UpdateConfigurationArgs updateConfiguration) {
            return updateConfiguration(Output.of(updateConfiguration));
        }

        public SoftwareUpdateConfigurationByNameArgs build() {
            if ($.automationAccountName == null) {
                throw new MissingRequiredPropertyException("SoftwareUpdateConfigurationByNameArgs", "automationAccountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SoftwareUpdateConfigurationByNameArgs", "resourceGroupName");
            }
            if ($.scheduleInfo == null) {
                throw new MissingRequiredPropertyException("SoftwareUpdateConfigurationByNameArgs", "scheduleInfo");
            }
            if ($.updateConfiguration == null) {
                throw new MissingRequiredPropertyException("SoftwareUpdateConfigurationByNameArgs", "updateConfiguration");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy