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

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

There is a newer version: 2.78.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.inputs.AdvancedScheduleMonthlyOccurrenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The properties of the create Advanced Schedule.
 * 
 */
public final class AdvancedScheduleArgs extends com.pulumi.resources.ResourceArgs {

    public static final AdvancedScheduleArgs Empty = new AdvancedScheduleArgs();

    /**
     * Days of the month that the job should execute on. Must be between 1 and 31.
     * 
     */
    @Import(name="monthDays")
    private @Nullable Output> monthDays;

    /**
     * @return Days of the month that the job should execute on. Must be between 1 and 31.
     * 
     */
    public Optional>> monthDays() {
        return Optional.ofNullable(this.monthDays);
    }

    /**
     * Occurrences of days within a month.
     * 
     */
    @Import(name="monthlyOccurrences")
    private @Nullable Output> monthlyOccurrences;

    /**
     * @return Occurrences of days within a month.
     * 
     */
    public Optional>> monthlyOccurrences() {
        return Optional.ofNullable(this.monthlyOccurrences);
    }

    /**
     * Days of the week that the job should execute on.
     * 
     */
    @Import(name="weekDays")
    private @Nullable Output> weekDays;

    /**
     * @return Days of the week that the job should execute on.
     * 
     */
    public Optional>> weekDays() {
        return Optional.ofNullable(this.weekDays);
    }

    private AdvancedScheduleArgs() {}

    private AdvancedScheduleArgs(AdvancedScheduleArgs $) {
        this.monthDays = $.monthDays;
        this.monthlyOccurrences = $.monthlyOccurrences;
        this.weekDays = $.weekDays;
    }

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

    public static final class Builder {
        private AdvancedScheduleArgs $;

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

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

        /**
         * @param monthDays Days of the month that the job should execute on. Must be between 1 and 31.
         * 
         * @return builder
         * 
         */
        public Builder monthDays(@Nullable Output> monthDays) {
            $.monthDays = monthDays;
            return this;
        }

        /**
         * @param monthDays Days of the month that the job should execute on. Must be between 1 and 31.
         * 
         * @return builder
         * 
         */
        public Builder monthDays(List monthDays) {
            return monthDays(Output.of(monthDays));
        }

        /**
         * @param monthDays Days of the month that the job should execute on. Must be between 1 and 31.
         * 
         * @return builder
         * 
         */
        public Builder monthDays(Integer... monthDays) {
            return monthDays(List.of(monthDays));
        }

        /**
         * @param monthlyOccurrences Occurrences of days within a month.
         * 
         * @return builder
         * 
         */
        public Builder monthlyOccurrences(@Nullable Output> monthlyOccurrences) {
            $.monthlyOccurrences = monthlyOccurrences;
            return this;
        }

        /**
         * @param monthlyOccurrences Occurrences of days within a month.
         * 
         * @return builder
         * 
         */
        public Builder monthlyOccurrences(List monthlyOccurrences) {
            return monthlyOccurrences(Output.of(monthlyOccurrences));
        }

        /**
         * @param monthlyOccurrences Occurrences of days within a month.
         * 
         * @return builder
         * 
         */
        public Builder monthlyOccurrences(AdvancedScheduleMonthlyOccurrenceArgs... monthlyOccurrences) {
            return monthlyOccurrences(List.of(monthlyOccurrences));
        }

        /**
         * @param weekDays Days of the week that the job should execute on.
         * 
         * @return builder
         * 
         */
        public Builder weekDays(@Nullable Output> weekDays) {
            $.weekDays = weekDays;
            return this;
        }

        /**
         * @param weekDays Days of the week that the job should execute on.
         * 
         * @return builder
         * 
         */
        public Builder weekDays(List weekDays) {
            return weekDays(Output.of(weekDays));
        }

        /**
         * @param weekDays Days of the week that the job should execute on.
         * 
         * @return builder
         * 
         */
        public Builder weekDays(String... weekDays) {
            return weekDays(List.of(weekDays));
        }

        public AdvancedScheduleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy