java.lang.Object
com.microsoft.azure.management.containerregistry.SourceTrigger

public class SourceTrigger extends Object
The properties of a source based trigger.
  • Constructor Details

    • SourceTrigger

      public SourceTrigger()
  • Method Details

    • sourceRepository

      public SourceProperties sourceRepository()
      Get the properties that describes the source(code) for the task.
      Returns:
      the sourceRepository value
    • withSourceRepository

      public SourceTrigger withSourceRepository(SourceProperties sourceRepository)
      Set the properties that describes the source(code) for the task.
      Parameters:
      sourceRepository - the sourceRepository value to set
      Returns:
      the SourceTrigger object itself.
    • sourceTriggerEvents

      public List<SourceTriggerEvent> sourceTriggerEvents()
      Get the source event corresponding to the trigger.
      Returns:
      the sourceTriggerEvents value
    • withSourceTriggerEvents

      public SourceTrigger withSourceTriggerEvents(List<SourceTriggerEvent> sourceTriggerEvents)
      Set the source event corresponding to the trigger.
      Parameters:
      sourceTriggerEvents - the sourceTriggerEvents value to set
      Returns:
      the SourceTrigger object itself.
    • status

      public TriggerStatus status()
      Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
      Returns:
      the status value
    • withStatus

      public SourceTrigger withStatus(TriggerStatus status)
      Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
      Parameters:
      status - the status value to set
      Returns:
      the SourceTrigger object itself.
    • name

      public String name()
      Get the name of the trigger.
      Returns:
      the name value
    • withName

      public SourceTrigger withName(String name)
      Set the name of the trigger.
      Parameters:
      name - the name value to set
      Returns:
      the SourceTrigger object itself.