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

com.pulumi.azurenative.automation.JobScheduleArgs 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.RunbookAssociationPropertyArgs;
import com.pulumi.azurenative.automation.inputs.ScheduleAssociationPropertyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final JobScheduleArgs Empty = new JobScheduleArgs();

    /**
     * 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;
    }

    /**
     * The job schedule name.
     * 
     */
    @Import(name="jobScheduleId")
    private @Nullable Output jobScheduleId;

    /**
     * @return The job schedule name.
     * 
     */
    public Optional> jobScheduleId() {
        return Optional.ofNullable(this.jobScheduleId);
    }

    /**
     * Gets or sets a list of job properties.
     * 
     */
    @Import(name="parameters")
    private @Nullable Output> parameters;

    /**
     * @return Gets or sets a list of job properties.
     * 
     */
    public Optional>> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * 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;
    }

    /**
     * Gets or sets the hybrid worker group that the scheduled job should run on.
     * 
     */
    @Import(name="runOn")
    private @Nullable Output runOn;

    /**
     * @return Gets or sets the hybrid worker group that the scheduled job should run on.
     * 
     */
    public Optional> runOn() {
        return Optional.ofNullable(this.runOn);
    }

    /**
     * Gets or sets the runbook.
     * 
     */
    @Import(name="runbook", required=true)
    private Output runbook;

    /**
     * @return Gets or sets the runbook.
     * 
     */
    public Output runbook() {
        return this.runbook;
    }

    /**
     * Gets or sets the schedule.
     * 
     */
    @Import(name="schedule", required=true)
    private Output schedule;

    /**
     * @return Gets or sets the schedule.
     * 
     */
    public Output schedule() {
        return this.schedule;
    }

    private JobScheduleArgs() {}

    private JobScheduleArgs(JobScheduleArgs $) {
        this.automationAccountName = $.automationAccountName;
        this.jobScheduleId = $.jobScheduleId;
        this.parameters = $.parameters;
        this.resourceGroupName = $.resourceGroupName;
        this.runOn = $.runOn;
        this.runbook = $.runbook;
        this.schedule = $.schedule;
    }

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

    public static final class Builder {
        private JobScheduleArgs $;

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

        public Builder(JobScheduleArgs defaults) {
            $ = new JobScheduleArgs(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 jobScheduleId The job schedule name.
         * 
         * @return builder
         * 
         */
        public Builder jobScheduleId(@Nullable Output jobScheduleId) {
            $.jobScheduleId = jobScheduleId;
            return this;
        }

        /**
         * @param jobScheduleId The job schedule name.
         * 
         * @return builder
         * 
         */
        public Builder jobScheduleId(String jobScheduleId) {
            return jobScheduleId(Output.of(jobScheduleId));
        }

        /**
         * @param parameters Gets or sets a list of job properties.
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters Gets or sets a list of job properties.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @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 runOn Gets or sets the hybrid worker group that the scheduled job should run on.
         * 
         * @return builder
         * 
         */
        public Builder runOn(@Nullable Output runOn) {
            $.runOn = runOn;
            return this;
        }

        /**
         * @param runOn Gets or sets the hybrid worker group that the scheduled job should run on.
         * 
         * @return builder
         * 
         */
        public Builder runOn(String runOn) {
            return runOn(Output.of(runOn));
        }

        /**
         * @param runbook Gets or sets the runbook.
         * 
         * @return builder
         * 
         */
        public Builder runbook(Output runbook) {
            $.runbook = runbook;
            return this;
        }

        /**
         * @param runbook Gets or sets the runbook.
         * 
         * @return builder
         * 
         */
        public Builder runbook(RunbookAssociationPropertyArgs runbook) {
            return runbook(Output.of(runbook));
        }

        /**
         * @param schedule Gets or sets the schedule.
         * 
         * @return builder
         * 
         */
        public Builder schedule(Output schedule) {
            $.schedule = schedule;
            return this;
        }

        /**
         * @param schedule Gets or sets the schedule.
         * 
         * @return builder
         * 
         */
        public Builder schedule(ScheduleAssociationPropertyArgs schedule) {
            return schedule(Output.of(schedule));
        }

        public JobScheduleArgs build() {
            if ($.automationAccountName == null) {
                throw new MissingRequiredPropertyException("JobScheduleArgs", "automationAccountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("JobScheduleArgs", "resourceGroupName");
            }
            if ($.runbook == null) {
                throw new MissingRequiredPropertyException("JobScheduleArgs", "runbook");
            }
            if ($.schedule == null) {
                throw new MissingRequiredPropertyException("JobScheduleArgs", "schedule");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy