
com.azure.resourcemanager.datafactory.models.TumblingWindowTrigger Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.datafactory.fluent.models.TumblingWindowTriggerTypeProperties;
import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Trigger that schedules pipeline runs for all fixed time interval windows from a start time without gaps and also
* supports backfill scenarios (when start time is in the past).
*/
@Fluent
public final class TumblingWindowTrigger extends Trigger {
/*
* Trigger type.
*/
private String type = "TumblingWindowTrigger";
/*
* Pipeline for which runs are created when an event is fired for trigger window that is ready.
*/
private TriggerPipelineReference pipeline;
/*
* Tumbling Window Trigger properties.
*/
private TumblingWindowTriggerTypeProperties innerTypeProperties = new TumblingWindowTriggerTypeProperties();
/**
* Creates an instance of TumblingWindowTrigger class.
*/
public TumblingWindowTrigger() {
}
/**
* Get the type property: Trigger type.
*
* @return the type value.
*/
@Override
public String type() {
return this.type;
}
/**
* Get the pipeline property: Pipeline for which runs are created when an event is fired for trigger window that is
* ready.
*
* @return the pipeline value.
*/
public TriggerPipelineReference pipeline() {
return this.pipeline;
}
/**
* Set the pipeline property: Pipeline for which runs are created when an event is fired for trigger window that is
* ready.
*
* @param pipeline the pipeline value to set.
* @return the TumblingWindowTrigger object itself.
*/
public TumblingWindowTrigger withPipeline(TriggerPipelineReference pipeline) {
this.pipeline = pipeline;
return this;
}
/**
* Get the innerTypeProperties property: Tumbling Window Trigger properties.
*
* @return the innerTypeProperties value.
*/
private TumblingWindowTriggerTypeProperties innerTypeProperties() {
return this.innerTypeProperties;
}
/**
* {@inheritDoc}
*/
@Override
public TumblingWindowTrigger withDescription(String description) {
super.withDescription(description);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TumblingWindowTrigger withAnnotations(List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy