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

com.pulumi.azurenative.alertsmanagement.inputs.ScheduleArgs 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.alertsmanagement.inputs;

import com.pulumi.azurenative.alertsmanagement.inputs.DailyRecurrenceArgs;
import com.pulumi.azurenative.alertsmanagement.inputs.MonthlyRecurrenceArgs;
import com.pulumi.azurenative.alertsmanagement.inputs.WeeklyRecurrenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Scheduling configuration for a given alert processing rule.
 * 
 */
public final class ScheduleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ScheduleArgs Empty = new ScheduleArgs();

    /**
     * Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
     * 
     */
    @Import(name="effectiveFrom")
    private @Nullable Output effectiveFrom;

    /**
     * @return Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
     * 
     */
    public Optional> effectiveFrom() {
        return Optional.ofNullable(this.effectiveFrom);
    }

    /**
     * Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
     * 
     */
    @Import(name="effectiveUntil")
    private @Nullable Output effectiveUntil;

    /**
     * @return Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
     * 
     */
    public Optional> effectiveUntil() {
        return Optional.ofNullable(this.effectiveUntil);
    }

    /**
     * List of recurrences.
     * 
     */
    @Import(name="recurrences")
    private @Nullable Output> recurrences;

    /**
     * @return List of recurrences.
     * 
     */
    public Optional>> recurrences() {
        return Optional.ofNullable(this.recurrences);
    }

    /**
     * Scheduling time zone.
     * 
     */
    @Import(name="timeZone")
    private @Nullable Output timeZone;

    /**
     * @return Scheduling time zone.
     * 
     */
    public Optional> timeZone() {
        return Optional.ofNullable(this.timeZone);
    }

    private ScheduleArgs() {}

    private ScheduleArgs(ScheduleArgs $) {
        this.effectiveFrom = $.effectiveFrom;
        this.effectiveUntil = $.effectiveUntil;
        this.recurrences = $.recurrences;
        this.timeZone = $.timeZone;
    }

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

    public static final class Builder {
        private ScheduleArgs $;

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

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

        /**
         * @param effectiveFrom Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
         * 
         * @return builder
         * 
         */
        public Builder effectiveFrom(@Nullable Output effectiveFrom) {
            $.effectiveFrom = effectiveFrom;
            return this;
        }

        /**
         * @param effectiveFrom Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
         * 
         * @return builder
         * 
         */
        public Builder effectiveFrom(String effectiveFrom) {
            return effectiveFrom(Output.of(effectiveFrom));
        }

        /**
         * @param effectiveUntil Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
         * 
         * @return builder
         * 
         */
        public Builder effectiveUntil(@Nullable Output effectiveUntil) {
            $.effectiveUntil = effectiveUntil;
            return this;
        }

        /**
         * @param effectiveUntil Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
         * 
         * @return builder
         * 
         */
        public Builder effectiveUntil(String effectiveUntil) {
            return effectiveUntil(Output.of(effectiveUntil));
        }

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

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

        /**
         * @param recurrences List of recurrences.
         * 
         * @return builder
         * 
         */
        public Builder recurrences(Object... recurrences) {
            return recurrences(List.of(recurrences));
        }

        /**
         * @param timeZone Scheduling time zone.
         * 
         * @return builder
         * 
         */
        public Builder timeZone(@Nullable Output timeZone) {
            $.timeZone = timeZone;
            return this;
        }

        /**
         * @param timeZone Scheduling time zone.
         * 
         * @return builder
         * 
         */
        public Builder timeZone(String timeZone) {
            return timeZone(Output.of(timeZone));
        }

        public ScheduleArgs build() {
            return $;
        }
    }

}