Share via


MultiplePipelineTrigger Class

public class MultiplePipelineTrigger
extends Trigger

Base class for all triggers that support one to many model for trigger to pipeline.

Constructor Summary

Constructor Description
MultiplePipelineTrigger()

Creates an instance of MultiplePipelineTrigger class.

Method Summary

Modifier and Type Method and Description
static MultiplePipelineTrigger fromJson(JsonReader jsonReader)

Reads an instance of MultiplePipelineTrigger from the JsonReader.

List<TriggerPipelineReference> pipelines()

Get the pipelines property: Pipelines that need to be started.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Trigger type.

void validate()

Validates the instance.

MultiplePipelineTrigger withAnnotations(List<Object> annotations)

Set the annotations property: List of tags that can be used for describing the trigger.

MultiplePipelineTrigger withDescription(String description)

Set the description property: Trigger description.

MultiplePipelineTrigger withPipelines(List<TriggerPipelineReference> pipelines)

Set the pipelines property: Pipelines that need to be started.

Methods inherited from Trigger

Methods inherited from java.lang.Object

Constructor Details

MultiplePipelineTrigger

public MultiplePipelineTrigger()

Creates an instance of MultiplePipelineTrigger class.

Method Details

fromJson

public static MultiplePipelineTrigger fromJson(JsonReader jsonReader)

Reads an instance of MultiplePipelineTrigger from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MultiplePipelineTrigger if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MultiplePipelineTrigger.

pipelines

public List<TriggerPipelineReference> pipelines()

Get the pipelines property: Pipelines that need to be started.

Returns:

the pipelines value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MultiplePipelineTrigger.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Trigger type.

Overrides:

MultiplePipelineTrigger.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

MultiplePipelineTrigger.validate()

withAnnotations

public MultiplePipelineTrigger withAnnotations(List<Object> annotations)

Set the annotations property: List of tags that can be used for describing the trigger.

Overrides:

MultiplePipelineTrigger.withAnnotations(List<Object> annotations)

Parameters:

annotations

withDescription

public MultiplePipelineTrigger withDescription(String description)

Set the description property: Trigger description.

Overrides:

MultiplePipelineTrigger.withDescription(String description)

Parameters:

description

withPipelines

public MultiplePipelineTrigger withPipelines(List<TriggerPipelineReference> pipelines)

Set the pipelines property: Pipelines that need to be started.

Parameters:

pipelines - the pipelines value to set.

Returns:

the MultiplePipelineTrigger object itself.

Applies to