Partager via


TriggerUpdateParameters Class

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

Implements

public final class TriggerUpdateParameters
implements JsonSerializable<TriggerUpdateParameters>

The properties for updating triggers.

Constructor Summary

Constructor Description
TriggerUpdateParameters()

Creates an instance of TriggerUpdateParameters class.

Method Summary

Modifier and Type Method and Description
BaseImageTriggerUpdateParameters baseImageTrigger()

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

static TriggerUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of TriggerUpdateParameters from the JsonReader.

List<SourceTriggerUpdateParameters> sourceTriggers()

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

List<TimerTriggerUpdateParameters> timerTriggers()

Get the timerTriggers property: The collection of timer triggers.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TriggerUpdateParameters withBaseImageTrigger(BaseImageTriggerUpdateParameters baseImageTrigger)

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

TriggerUpdateParameters withSourceTriggers(List<SourceTriggerUpdateParameters> sourceTriggers)

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

TriggerUpdateParameters withTimerTriggers(List<TimerTriggerUpdateParameters> timerTriggers)

Set the timerTriggers property: The collection of timer triggers.

Methods inherited from java.lang.Object

Constructor Details

TriggerUpdateParameters

public TriggerUpdateParameters()

Creates an instance of TriggerUpdateParameters class.

Method Details

baseImageTrigger

public BaseImageTriggerUpdateParameters baseImageTrigger()

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

Returns:

the baseImageTrigger value.

fromJson

public static TriggerUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of TriggerUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

sourceTriggers

public List<SourceTriggerUpdateParameters> sourceTriggers()

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

Returns:

the sourceTriggers value.

timerTriggers

public List<TimerTriggerUpdateParameters> 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 TriggerUpdateParameters withBaseImageTrigger(BaseImageTriggerUpdateParameters baseImageTrigger)

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

Parameters:

baseImageTrigger - the baseImageTrigger value to set.

Returns:

the TriggerUpdateParameters object itself.

withSourceTriggers

public TriggerUpdateParameters withSourceTriggers(List<SourceTriggerUpdateParameters> sourceTriggers)

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

Parameters:

sourceTriggers - the sourceTriggers value to set.

Returns:

the TriggerUpdateParameters object itself.

withTimerTriggers

public TriggerUpdateParameters withTimerTriggers(List<TimerTriggerUpdateParameters> timerTriggers)

Set the timerTriggers property: The collection of timer triggers.

Parameters:

timerTriggers - the timerTriggers value to set.

Returns:

the TriggerUpdateParameters object itself.

Applies to