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

com.pulumi.azurenative.datafactory.inputs.RerunTumblingWindowTriggerArgs 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.datafactory.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.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Trigger that schedules pipeline reruns for all fixed time interval windows from a requested start time to requested end time.
 * 
 */
public final class RerunTumblingWindowTriggerArgs extends com.pulumi.resources.ResourceArgs {

    public static final RerunTumblingWindowTriggerArgs Empty = new RerunTumblingWindowTriggerArgs();

    /**
     * List of tags that can be used for describing the trigger.
     * 
     */
    @Import(name="annotations")
    private @Nullable Output> annotations;

    /**
     * @return List of tags that can be used for describing the trigger.
     * 
     */
    public Optional>> annotations() {
        return Optional.ofNullable(this.annotations);
    }

    /**
     * Trigger description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Trigger description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The parent trigger reference.
     * 
     */
    @Import(name="parentTrigger", required=true)
    private Output parentTrigger;

    /**
     * @return The parent trigger reference.
     * 
     */
    public Output parentTrigger() {
        return this.parentTrigger;
    }

    /**
     * The end time for the time period for which restatement is initiated. Only UTC time is currently supported.
     * 
     */
    @Import(name="requestedEndTime", required=true)
    private Output requestedEndTime;

    /**
     * @return The end time for the time period for which restatement is initiated. Only UTC time is currently supported.
     * 
     */
    public Output requestedEndTime() {
        return this.requestedEndTime;
    }

    /**
     * The start time for the time period for which restatement is initiated. Only UTC time is currently supported.
     * 
     */
    @Import(name="requestedStartTime", required=true)
    private Output requestedStartTime;

    /**
     * @return The start time for the time period for which restatement is initiated. Only UTC time is currently supported.
     * 
     */
    public Output requestedStartTime() {
        return this.requestedStartTime;
    }

    /**
     * The max number of parallel time windows (ready for execution) for which a rerun is triggered.
     * 
     */
    @Import(name="rerunConcurrency", required=true)
    private Output rerunConcurrency;

    /**
     * @return The max number of parallel time windows (ready for execution) for which a rerun is triggered.
     * 
     */
    public Output rerunConcurrency() {
        return this.rerunConcurrency;
    }

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

    /**
     * @return Trigger type.
     * Expected value is 'RerunTumblingWindowTrigger'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private RerunTumblingWindowTriggerArgs() {}

    private RerunTumblingWindowTriggerArgs(RerunTumblingWindowTriggerArgs $) {
        this.annotations = $.annotations;
        this.description = $.description;
        this.parentTrigger = $.parentTrigger;
        this.requestedEndTime = $.requestedEndTime;
        this.requestedStartTime = $.requestedStartTime;
        this.rerunConcurrency = $.rerunConcurrency;
        this.type = $.type;
    }

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

    public static final class Builder {
        private RerunTumblingWindowTriggerArgs $;

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

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

        /**
         * @param annotations List of tags that can be used for describing the trigger.
         * 
         * @return builder
         * 
         */
        public Builder annotations(@Nullable Output> annotations) {
            $.annotations = annotations;
            return this;
        }

        /**
         * @param annotations List of tags that can be used for describing the trigger.
         * 
         * @return builder
         * 
         */
        public Builder annotations(List annotations) {
            return annotations(Output.of(annotations));
        }

        /**
         * @param annotations List of tags that can be used for describing the trigger.
         * 
         * @return builder
         * 
         */
        public Builder annotations(Object... annotations) {
            return annotations(List.of(annotations));
        }

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

        /**
         * @param description Trigger description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param parentTrigger The parent trigger reference.
         * 
         * @return builder
         * 
         */
        public Builder parentTrigger(Output parentTrigger) {
            $.parentTrigger = parentTrigger;
            return this;
        }

        /**
         * @param parentTrigger The parent trigger reference.
         * 
         * @return builder
         * 
         */
        public Builder parentTrigger(Object parentTrigger) {
            return parentTrigger(Output.of(parentTrigger));
        }

        /**
         * @param requestedEndTime The end time for the time period for which restatement is initiated. Only UTC time is currently supported.
         * 
         * @return builder
         * 
         */
        public Builder requestedEndTime(Output requestedEndTime) {
            $.requestedEndTime = requestedEndTime;
            return this;
        }

        /**
         * @param requestedEndTime The end time for the time period for which restatement is initiated. Only UTC time is currently supported.
         * 
         * @return builder
         * 
         */
        public Builder requestedEndTime(String requestedEndTime) {
            return requestedEndTime(Output.of(requestedEndTime));
        }

        /**
         * @param requestedStartTime The start time for the time period for which restatement is initiated. Only UTC time is currently supported.
         * 
         * @return builder
         * 
         */
        public Builder requestedStartTime(Output requestedStartTime) {
            $.requestedStartTime = requestedStartTime;
            return this;
        }

        /**
         * @param requestedStartTime The start time for the time period for which restatement is initiated. Only UTC time is currently supported.
         * 
         * @return builder
         * 
         */
        public Builder requestedStartTime(String requestedStartTime) {
            return requestedStartTime(Output.of(requestedStartTime));
        }

        /**
         * @param rerunConcurrency The max number of parallel time windows (ready for execution) for which a rerun is triggered.
         * 
         * @return builder
         * 
         */
        public Builder rerunConcurrency(Output rerunConcurrency) {
            $.rerunConcurrency = rerunConcurrency;
            return this;
        }

        /**
         * @param rerunConcurrency The max number of parallel time windows (ready for execution) for which a rerun is triggered.
         * 
         * @return builder
         * 
         */
        public Builder rerunConcurrency(Integer rerunConcurrency) {
            return rerunConcurrency(Output.of(rerunConcurrency));
        }

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

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

        public RerunTumblingWindowTriggerArgs build() {
            if ($.parentTrigger == null) {
                throw new MissingRequiredPropertyException("RerunTumblingWindowTriggerArgs", "parentTrigger");
            }
            if ($.requestedEndTime == null) {
                throw new MissingRequiredPropertyException("RerunTumblingWindowTriggerArgs", "requestedEndTime");
            }
            if ($.requestedStartTime == null) {
                throw new MissingRequiredPropertyException("RerunTumblingWindowTriggerArgs", "requestedStartTime");
            }
            if ($.rerunConcurrency == null) {
                throw new MissingRequiredPropertyException("RerunTumblingWindowTriggerArgs", "rerunConcurrency");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}