TriggerProperties Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. TriggerProperties
- com.
Implements
public final class TriggerProperties
implements JsonSerializable<TriggerProperties>
The properties of a trigger.
Constructor Summary
Constructor | Description |
---|---|
TriggerProperties() |
Creates an instance of Trigger |
Method Summary
Modifier and Type | Method and Description |
---|---|
Base |
baseImageTrigger()
Get the base |
static
Trigger |
fromJson(JsonReader jsonReader)
Reads an instance of Trigger |
List<Source |
sourceTriggers()
Get the source |
List<Timer |
timerTriggers()
Get the timer |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Trigger |
withBaseImageTrigger(BaseImageTrigger baseImageTrigger)
Set the base |
Trigger |
withSourceTriggers(List<SourceTrigger> sourceTriggers)
Set the source |
Trigger |
withTimerTriggers(List<TimerTrigger> timerTriggers)
Set the timer |
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:
fromJson
public static TriggerProperties fromJson(JsonReader jsonReader)
Reads an instance of TriggerProperties from the JsonReader.
Parameters:
Returns:
Throws:
sourceTriggers
public List
Get the sourceTriggers property: The collection of triggers based on source code repository.
Returns:
timerTriggers
public List
Get the timerTriggers property: The collection of timer triggers.
Returns:
toJson
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:
Returns:
withSourceTriggers
public TriggerProperties withSourceTriggers(List
Set the sourceTriggers property: The collection of triggers based on source code repository.
Parameters:
Returns:
withTimerTriggers
public TriggerProperties withTimerTriggers(List
Set the timerTriggers property: The collection of timer triggers.
Parameters:
Returns:
Applies to
Azure SDK for Java