Class SourceTriggerUpdateParameters
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.SourceTriggerUpdateParameters
-
public final class SourceTriggerUpdateParameters extends Object
The properties for updating a source based trigger.
-
-
Constructor Summary
Constructors Constructor Description SourceTriggerUpdateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: The name of the trigger.SourceUpdateParameterssourceRepository()Get the sourceRepository property: The properties that describes the source(code) for the task.List<SourceTriggerEvent>sourceTriggerEvents()Get the sourceTriggerEvents property: The source event corresponding to the trigger.TriggerStatusstatus()Get the status property: The current status of trigger.voidvalidate()Validates the instance.SourceTriggerUpdateParameterswithName(String name)Set the name property: The name of the trigger.SourceTriggerUpdateParameterswithSourceRepository(SourceUpdateParameters sourceRepository)Set the sourceRepository property: The properties that describes the source(code) for the task.SourceTriggerUpdateParameterswithSourceTriggerEvents(List<SourceTriggerEvent> sourceTriggerEvents)Set the sourceTriggerEvents property: The source event corresponding to the trigger.SourceTriggerUpdateParameterswithStatus(TriggerStatus status)Set the status property: The current status of trigger.
-
-
-
Method Detail
-
sourceRepository
public SourceUpdateParameters sourceRepository()
Get the sourceRepository property: The properties that describes the source(code) for the task.- Returns:
- the sourceRepository value.
-
withSourceRepository
public SourceTriggerUpdateParameters withSourceRepository(SourceUpdateParameters sourceRepository)
Set the sourceRepository property: The properties that describes the source(code) for the task.- Parameters:
sourceRepository- the sourceRepository value to set.- Returns:
- the SourceTriggerUpdateParameters object itself.
-
sourceTriggerEvents
public List<SourceTriggerEvent> sourceTriggerEvents()
Get the sourceTriggerEvents property: The source event corresponding to the trigger.- Returns:
- the sourceTriggerEvents value.
-
withSourceTriggerEvents
public SourceTriggerUpdateParameters withSourceTriggerEvents(List<SourceTriggerEvent> sourceTriggerEvents)
Set the sourceTriggerEvents property: The source event corresponding to the trigger.- Parameters:
sourceTriggerEvents- the sourceTriggerEvents value to set.- Returns:
- the SourceTriggerUpdateParameters object itself.
-
status
public TriggerStatus status()
Get the status property: The current status of trigger.- Returns:
- the status value.
-
withStatus
public SourceTriggerUpdateParameters withStatus(TriggerStatus status)
Set the status property: The current status of trigger.- Parameters:
status- the status value to set.- Returns:
- the SourceTriggerUpdateParameters object itself.
-
name
public String name()
Get the name property: The name of the trigger.- Returns:
- the name value.
-
withName
public SourceTriggerUpdateParameters withName(String name)
Set the name property: The name of the trigger.- Parameters:
name- the name value to set.- Returns:
- the SourceTriggerUpdateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-