TriggerProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.TriggerProperties

Implements

public final class TriggerProperties
implements JsonSerializable<TriggerProperties>

The properties of a trigger.

Constructor Summary

Constructor Description
TriggerProperties()

Creates an instance of TriggerProperties class.

Method Summary

Modifier and Type Method and Description
BaseImageTrigger baseImageTrigger()

Get the baseImageTrigger property: The trigger based on base image dependencies.

static TriggerProperties fromJson(JsonReader jsonReader)

Reads an instance of TriggerProperties from the JsonReader.

List<SourceTrigger> sourceTriggers()

Get the sourceTriggers property: The collection of triggers based on source code repository.

List<TimerTrigger> timerTriggers()

Get the timerTriggers property: The collection of timer triggers.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TriggerProperties withBaseImageTrigger(BaseImageTrigger baseImageTrigger)

Set the baseImageTrigger property: The trigger based on base image dependencies.

TriggerProperties withSourceTriggers(List<SourceTrigger> sourceTriggers)

Set the sourceTriggers property: The collection of triggers based on source code repository.

TriggerProperties withTimerTriggers(List<TimerTrigger> timerTriggers)

Set the timerTriggers property: The collection of timer triggers.

Methods inherited from java.lang.Object

Constructor Details

TriggerProperties

public TriggerProperties()

Creates an instance of TriggerProperties class.

Method Details

baseImageTrigger

public BaseImageTrigger baseImageTrigger()

Get the baseImageTrigger property: The trigger based on base image dependencies.

Returns:

the baseImageTrigger value.

fromJson

public static TriggerProperties fromJson(JsonReader jsonReader)

Reads an instance of TriggerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TriggerProperties 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 TriggerProperties.

sourceTriggers

public List sourceTriggers()

Get the sourceTriggers property: The collection of triggers based on source code repository.

Returns:

the sourceTriggers value.

timerTriggers

public List timerTriggers()

Get the timerTriggers property: The collection of timer triggers.

Returns:

the timerTriggers value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBaseImageTrigger

public TriggerProperties withBaseImageTrigger(BaseImageTrigger baseImageTrigger)

Set the baseImageTrigger property: The trigger based on base image dependencies.

Parameters:

baseImageTrigger - the baseImageTrigger value to set.

Returns:

the TriggerProperties object itself.

withSourceTriggers

public TriggerProperties withSourceTriggers(List sourceTriggers)

Set the sourceTriggers property: The collection of triggers based on source code repository.

Parameters:

sourceTriggers - the sourceTriggers value to set.

Returns:

the TriggerProperties object itself.

withTimerTriggers

public TriggerProperties withTimerTriggers(List timerTriggers)

Set the timerTriggers property: The collection of timer triggers.

Parameters:

timerTriggers - the timerTriggers value to set.

Returns:

the TriggerProperties object itself.

Applies to