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

com.pulumi.azurenative.logic.inputs.WorkflowTriggerRecurrenceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.logic.inputs;

import com.pulumi.azurenative.logic.enums.RecurrenceFrequency;
import com.pulumi.azurenative.logic.inputs.RecurrenceScheduleArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The workflow trigger recurrence.
 * 
 */
public final class WorkflowTriggerRecurrenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkflowTriggerRecurrenceArgs Empty = new WorkflowTriggerRecurrenceArgs();

    /**
     * The end time.
     * 
     */
    @Import(name="endTime")
    private @Nullable Output endTime;

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

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

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

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

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

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

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

    /**
     * The start time.
     * 
     */
    @Import(name="startTime")
    private @Nullable Output startTime;

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

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

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

    private WorkflowTriggerRecurrenceArgs() {}

    private WorkflowTriggerRecurrenceArgs(WorkflowTriggerRecurrenceArgs $) {
        this.endTime = $.endTime;
        this.frequency = $.frequency;
        this.interval = $.interval;
        this.schedule = $.schedule;
        this.startTime = $.startTime;
        this.timeZone = $.timeZone;
    }

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

    public static final class Builder {
        private WorkflowTriggerRecurrenceArgs $;

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

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

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

        /**
         * @param endTime The end time.
         * 
         * @return builder
         * 
         */
        public Builder endTime(String endTime) {
            return endTime(Output.of(endTime));
        }

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

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

        /**
         * @param frequency The frequency.
         * 
         * @return builder
         * 
         */
        public Builder frequency(String frequency) {
            return frequency(Either.ofLeft(frequency));
        }

        /**
         * @param frequency The frequency.
         * 
         * @return builder
         * 
         */
        public Builder frequency(RecurrenceFrequency frequency) {
            return frequency(Either.ofRight(frequency));
        }

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

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

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

        /**
         * @param schedule The recurrence schedule.
         * 
         * @return builder
         * 
         */
        public Builder schedule(RecurrenceScheduleArgs schedule) {
            return schedule(Output.of(schedule));
        }

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

        /**
         * @param startTime The start time.
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

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

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

        public WorkflowTriggerRecurrenceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy