Class SourceTrigger
java.lang.Object
com.azure.resourcemanager.containerregistry.models.SourceTrigger
The properties of a source based trigger.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname()Get the name property: The name of the trigger.Get the sourceRepository property: The properties that describes the source(code) for the task.Get the sourceTriggerEvents property: The source event corresponding to the trigger.status()Get the status property: The current status of trigger.voidvalidate()Validates the instance.Set the name property: The name of the trigger.withSourceRepository(SourceProperties sourceRepository) Set the sourceRepository property: The properties that describes the source(code) for the task.withSourceTriggerEvents(List<SourceTriggerEvent> sourceTriggerEvents) Set the sourceTriggerEvents property: The source event corresponding to the trigger.withStatus(TriggerStatus status) Set the status property: The current status of trigger.
-
Constructor Details
-
SourceTrigger
public SourceTrigger()Creates an instance of SourceTrigger class.
-
-
Method Details
-
sourceRepository
Get the sourceRepository property: The properties that describes the source(code) for the task.- Returns:
- the sourceRepository value.
-
withSourceRepository
Set the sourceRepository property: The properties that describes the source(code) for the task.- Parameters:
sourceRepository- the sourceRepository value to set.- Returns:
- the SourceTrigger object itself.
-
sourceTriggerEvents
Get the sourceTriggerEvents property: The source event corresponding to the trigger.- Returns:
- the sourceTriggerEvents value.
-
withSourceTriggerEvents
Set the sourceTriggerEvents property: The source event corresponding to the trigger.- Parameters:
sourceTriggerEvents- the sourceTriggerEvents value to set.- Returns:
- the SourceTrigger object itself.
-
status
Get the status property: The current status of trigger.- Returns:
- the status value.
-
withStatus
Set the status property: The current status of trigger.- Parameters:
status- the status value to set.- Returns:
- the SourceTrigger object itself.
-
name
Get the name property: The name of the trigger.- Returns:
- the name value.
-
withName
Set the name property: The name of the trigger.- Parameters:
name- the name value to set.- Returns:
- the SourceTrigger object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-