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

com.pulumi.azurenative.datafactory.inputs.RecurrenceScheduleArgs 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.datafactory.inputs;

import com.pulumi.azurenative.datafactory.enums.DaysOfWeek;
import com.pulumi.azurenative.datafactory.inputs.RecurrenceScheduleOccurrenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The recurrence schedule.
 * 
 */
public final class RecurrenceScheduleArgs extends com.pulumi.resources.ResourceArgs {

    public static final RecurrenceScheduleArgs Empty = new RecurrenceScheduleArgs();

    /**
     * The hours.
     * 
     */
    @Import(name="hours")
    private @Nullable Output> hours;

    /**
     * @return The hours.
     * 
     */
    public Optional>> hours() {
        return Optional.ofNullable(this.hours);
    }

    /**
     * The minutes.
     * 
     */
    @Import(name="minutes")
    private @Nullable Output> minutes;

    /**
     * @return The minutes.
     * 
     */
    public Optional>> minutes() {
        return Optional.ofNullable(this.minutes);
    }

    /**
     * The month days.
     * 
     */
    @Import(name="monthDays")
    private @Nullable Output> monthDays;

    /**
     * @return The month days.
     * 
     */
    public Optional>> monthDays() {
        return Optional.ofNullable(this.monthDays);
    }

    /**
     * The monthly occurrences.
     * 
     */
    @Import(name="monthlyOccurrences")
    private @Nullable Output> monthlyOccurrences;

    /**
     * @return The monthly occurrences.
     * 
     */
    public Optional>> monthlyOccurrences() {
        return Optional.ofNullable(this.monthlyOccurrences);
    }

    /**
     * The days of the week.
     * 
     */
    @Import(name="weekDays")
    private @Nullable Output> weekDays;

    /**
     * @return The days of the week.
     * 
     */
    public Optional>> weekDays() {
        return Optional.ofNullable(this.weekDays);
    }

    private RecurrenceScheduleArgs() {}

    private RecurrenceScheduleArgs(RecurrenceScheduleArgs $) {
        this.hours = $.hours;
        this.minutes = $.minutes;
        this.monthDays = $.monthDays;
        this.monthlyOccurrences = $.monthlyOccurrences;
        this.weekDays = $.weekDays;
    }

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

    public static final class Builder {
        private RecurrenceScheduleArgs $;

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

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

        /**
         * @param hours The hours.
         * 
         * @return builder
         * 
         */
        public Builder hours(@Nullable Output> hours) {
            $.hours = hours;
            return this;
        }

        /**
         * @param hours The hours.
         * 
         * @return builder
         * 
         */
        public Builder hours(List hours) {
            return hours(Output.of(hours));
        }

        /**
         * @param hours The hours.
         * 
         * @return builder
         * 
         */
        public Builder hours(Integer... hours) {
            return hours(List.of(hours));
        }

        /**
         * @param minutes The minutes.
         * 
         * @return builder
         * 
         */
        public Builder minutes(@Nullable Output> minutes) {
            $.minutes = minutes;
            return this;
        }

        /**
         * @param minutes The minutes.
         * 
         * @return builder
         * 
         */
        public Builder minutes(List minutes) {
            return minutes(Output.of(minutes));
        }

        /**
         * @param minutes The minutes.
         * 
         * @return builder
         * 
         */
        public Builder minutes(Integer... minutes) {
            return minutes(List.of(minutes));
        }

        /**
         * @param monthDays The month days.
         * 
         * @return builder
         * 
         */
        public Builder monthDays(@Nullable Output> monthDays) {
            $.monthDays = monthDays;
            return this;
        }

        /**
         * @param monthDays The month days.
         * 
         * @return builder
         * 
         */
        public Builder monthDays(List monthDays) {
            return monthDays(Output.of(monthDays));
        }

        /**
         * @param monthDays The month days.
         * 
         * @return builder
         * 
         */
        public Builder monthDays(Integer... monthDays) {
            return monthDays(List.of(monthDays));
        }

        /**
         * @param monthlyOccurrences The monthly occurrences.
         * 
         * @return builder
         * 
         */
        public Builder monthlyOccurrences(@Nullable Output> monthlyOccurrences) {
            $.monthlyOccurrences = monthlyOccurrences;
            return this;
        }

        /**
         * @param monthlyOccurrences The monthly occurrences.
         * 
         * @return builder
         * 
         */
        public Builder monthlyOccurrences(List monthlyOccurrences) {
            return monthlyOccurrences(Output.of(monthlyOccurrences));
        }

        /**
         * @param monthlyOccurrences The monthly occurrences.
         * 
         * @return builder
         * 
         */
        public Builder monthlyOccurrences(RecurrenceScheduleOccurrenceArgs... monthlyOccurrences) {
            return monthlyOccurrences(List.of(monthlyOccurrences));
        }

        /**
         * @param weekDays The days of the week.
         * 
         * @return builder
         * 
         */
        public Builder weekDays(@Nullable Output> weekDays) {
            $.weekDays = weekDays;
            return this;
        }

        /**
         * @param weekDays The days of the week.
         * 
         * @return builder
         * 
         */
        public Builder weekDays(List weekDays) {
            return weekDays(Output.of(weekDays));
        }

        /**
         * @param weekDays The days of the week.
         * 
         * @return builder
         * 
         */
        public Builder weekDays(DaysOfWeek... weekDays) {
            return weekDays(List.of(weekDays));
        }

        public RecurrenceScheduleArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy