
com.azure.resourcemanager.datafactory.models.ChainingTrigger 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.ChainingTriggerTypeProperties;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Trigger that allows the referenced pipeline to depend on other pipeline runs based on runDimension Name/Value pairs.
* Upstream pipelines should declare the same runDimension Name and their runs should have the values for those
* runDimensions. The referenced pipeline run would be triggered if the values for the runDimension match for all
* upstream pipeline runs.
*/
@Fluent
public final class ChainingTrigger extends Trigger {
/*
* Trigger type.
*/
private String type = "ChainingTrigger";
/*
* Pipeline for which runs are created when all upstream pipelines complete successfully.
*/
private TriggerPipelineReference pipeline;
/*
* Chaining Trigger properties.
*/
private ChainingTriggerTypeProperties innerTypeProperties = new ChainingTriggerTypeProperties();
/**
* Creates an instance of ChainingTrigger class.
*/
public ChainingTrigger() {
}
/**
* 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 all upstream pipelines complete successfully.
*
* @return the pipeline value.
*/
public TriggerPipelineReference pipeline() {
return this.pipeline;
}
/**
* Set the pipeline property: Pipeline for which runs are created when all upstream pipelines complete successfully.
*
* @param pipeline the pipeline value to set.
* @return the ChainingTrigger object itself.
*/
public ChainingTrigger withPipeline(TriggerPipelineReference pipeline) {
this.pipeline = pipeline;
return this;
}
/**
* Get the innerTypeProperties property: Chaining Trigger properties.
*
* @return the innerTypeProperties value.
*/
private ChainingTriggerTypeProperties innerTypeProperties() {
return this.innerTypeProperties;
}
/**
* {@inheritDoc}
*/
@Override
public ChainingTrigger withDescription(String description) {
super.withDescription(description);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ChainingTrigger withAnnotations(List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy