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

com.pulumi.azurenative.machinelearningservices.inputs.CronTriggerArgs 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.machinelearningservices.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class CronTriggerArgs extends com.pulumi.resources.ResourceArgs {

    public static final CronTriggerArgs Empty = new CronTriggerArgs();

    /**
     * Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601.
     * Recommented format would be "2022-06-01T00:00:01"
     * If not present, the schedule will run indefinitely
     * 
     */
    @Import(name="endTime")
    private @Nullable Output endTime;

    /**
     * @return Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601.
     * Recommented format would be "2022-06-01T00:00:01"
     * If not present, the schedule will run indefinitely
     * 
     */
    public Optional> endTime() {
        return Optional.ofNullable(this.endTime);
    }

    /**
     * [Required] Specifies cron expression of schedule.
     * The expression should follow NCronTab format.
     * 
     */
    @Import(name="expression", required=true)
    private Output expression;

    /**
     * @return [Required] Specifies cron expression of schedule.
     * The expression should follow NCronTab format.
     * 
     */
    public Output expression() {
        return this.expression;
    }

    /**
     * Specifies start time of schedule in ISO 8601 format, but without a UTC offset.
     * 
     */
    @Import(name="startTime")
    private @Nullable Output startTime;

    /**
     * @return Specifies start time of schedule in ISO 8601 format, but without a UTC offset.
     * 
     */
    public Optional> startTime() {
        return Optional.ofNullable(this.startTime);
    }

    /**
     * Specifies time zone in which the schedule runs.
     * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11
     * 
     */
    @Import(name="timeZone")
    private @Nullable Output timeZone;

    /**
     * @return Specifies time zone in which the schedule runs.
     * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11
     * 
     */
    public Optional> timeZone() {
        return Optional.ofNullable(this.timeZone);
    }

    /**
     * Expected value is 'Cron'.
     * 
     */
    @Import(name="triggerType", required=true)
    private Output triggerType;

    /**
     * @return
     * Expected value is 'Cron'.
     * 
     */
    public Output triggerType() {
        return this.triggerType;
    }

    private CronTriggerArgs() {}

    private CronTriggerArgs(CronTriggerArgs $) {
        this.endTime = $.endTime;
        this.expression = $.expression;
        this.startTime = $.startTime;
        this.timeZone = $.timeZone;
        this.triggerType = $.triggerType;
    }

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

    public static final class Builder {
        private CronTriggerArgs $;

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

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

        /**
         * @param endTime Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601.
         * Recommented format would be "2022-06-01T00:00:01"
         * If not present, the schedule will run indefinitely
         * 
         * @return builder
         * 
         */
        public Builder endTime(@Nullable Output endTime) {
            $.endTime = endTime;
            return this;
        }

        /**
         * @param endTime Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601.
         * Recommented format would be "2022-06-01T00:00:01"
         * If not present, the schedule will run indefinitely
         * 
         * @return builder
         * 
         */
        public Builder endTime(String endTime) {
            return endTime(Output.of(endTime));
        }

        /**
         * @param expression [Required] Specifies cron expression of schedule.
         * The expression should follow NCronTab format.
         * 
         * @return builder
         * 
         */
        public Builder expression(Output expression) {
            $.expression = expression;
            return this;
        }

        /**
         * @param expression [Required] Specifies cron expression of schedule.
         * The expression should follow NCronTab format.
         * 
         * @return builder
         * 
         */
        public Builder expression(String expression) {
            return expression(Output.of(expression));
        }

        /**
         * @param startTime Specifies start time of schedule in ISO 8601 format, but without a UTC offset.
         * 
         * @return builder
         * 
         */
        public Builder startTime(@Nullable Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime Specifies start time of schedule in ISO 8601 format, but without a UTC offset.
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        /**
         * @param timeZone Specifies time zone in which the schedule runs.
         * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11
         * 
         * @return builder
         * 
         */
        public Builder timeZone(@Nullable Output timeZone) {
            $.timeZone = timeZone;
            return this;
        }

        /**
         * @param timeZone Specifies time zone in which the schedule runs.
         * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11
         * 
         * @return builder
         * 
         */
        public Builder timeZone(String timeZone) {
            return timeZone(Output.of(timeZone));
        }

        /**
         * @param triggerType
         * Expected value is 'Cron'.
         * 
         * @return builder
         * 
         */
        public Builder triggerType(Output triggerType) {
            $.triggerType = triggerType;
            return this;
        }

        /**
         * @param triggerType
         * Expected value is 'Cron'.
         * 
         * @return builder
         * 
         */
        public Builder triggerType(String triggerType) {
            return triggerType(Output.of(triggerType));
        }

        public CronTriggerArgs build() {
            if ($.expression == null) {
                throw new MissingRequiredPropertyException("CronTriggerArgs", "expression");
            }
            $.timeZone = Codegen.stringProp("timeZone").output().arg($.timeZone).def("UTC").getNullable();
            $.triggerType = Codegen.stringProp("triggerType").output().arg($.triggerType).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy