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

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

import com.pulumi.azurenative.automation.outputs.AdvancedScheduleMonthlyOccurrenceResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class AdvancedScheduleResponse {
    /**
     * @return Days of the month that the job should execute on. Must be between 1 and 31.
     * 
     */
    private @Nullable List monthDays;
    /**
     * @return Occurrences of days within a month.
     * 
     */
    private @Nullable List monthlyOccurrences;
    /**
     * @return Days of the week that the job should execute on.
     * 
     */
    private @Nullable List weekDays;

    private AdvancedScheduleResponse() {}
    /**
     * @return Days of the month that the job should execute on. Must be between 1 and 31.
     * 
     */
    public List monthDays() {
        return this.monthDays == null ? List.of() : this.monthDays;
    }
    /**
     * @return Occurrences of days within a month.
     * 
     */
    public List monthlyOccurrences() {
        return this.monthlyOccurrences == null ? List.of() : this.monthlyOccurrences;
    }
    /**
     * @return Days of the week that the job should execute on.
     * 
     */
    public List weekDays() {
        return this.weekDays == null ? List.of() : this.weekDays;
    }

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

    public static Builder builder(AdvancedScheduleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List monthDays;
        private @Nullable List monthlyOccurrences;
        private @Nullable List weekDays;
        public Builder() {}
        public Builder(AdvancedScheduleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.monthDays = defaults.monthDays;
    	      this.monthlyOccurrences = defaults.monthlyOccurrences;
    	      this.weekDays = defaults.weekDays;
        }

        @CustomType.Setter
        public Builder monthDays(@Nullable List monthDays) {

            this.monthDays = monthDays;
            return this;
        }
        public Builder monthDays(Integer... monthDays) {
            return monthDays(List.of(monthDays));
        }
        @CustomType.Setter
        public Builder monthlyOccurrences(@Nullable List monthlyOccurrences) {

            this.monthlyOccurrences = monthlyOccurrences;
            return this;
        }
        public Builder monthlyOccurrences(AdvancedScheduleMonthlyOccurrenceResponse... monthlyOccurrences) {
            return monthlyOccurrences(List.of(monthlyOccurrences));
        }
        @CustomType.Setter
        public Builder weekDays(@Nullable List weekDays) {

            this.weekDays = weekDays;
            return this;
        }
        public Builder weekDays(String... weekDays) {
            return weekDays(List.of(weekDays));
        }
        public AdvancedScheduleResponse build() {
            final var _resultValue = new AdvancedScheduleResponse();
            _resultValue.monthDays = monthDays;
            _resultValue.monthlyOccurrences = monthlyOccurrences;
            _resultValue.weekDays = weekDays;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy