Class TriggerProperties

java.lang.Object
com.azure.resourcemanager.containerregistry.models.TriggerProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<TriggerProperties>

public final class TriggerProperties extends Object implements com.azure.json.JsonSerializable<TriggerProperties>
The properties of a trigger.
  • Constructor Details

    • TriggerProperties

      public TriggerProperties()
      Creates an instance of TriggerProperties class.
  • Method Details

    • timerTriggers

      public List<TimerTrigger> timerTriggers()
      Get the timerTriggers property: The collection of timer triggers.
      Returns:
      the timerTriggers value.
    • withTimerTriggers

      public TriggerProperties withTimerTriggers(List<TimerTrigger> timerTriggers)
      Set the timerTriggers property: The collection of timer triggers.
      Parameters:
      timerTriggers - the timerTriggers value to set.
      Returns:
      the TriggerProperties object itself.
    • sourceTriggers

      public List<SourceTrigger> sourceTriggers()
      Get the sourceTriggers property: The collection of triggers based on source code repository.
      Returns:
      the sourceTriggers value.
    • withSourceTriggers

      public TriggerProperties withSourceTriggers(List<SourceTrigger> sourceTriggers)
      Set the sourceTriggers property: The collection of triggers based on source code repository.
      Parameters:
      sourceTriggers - the sourceTriggers value to set.
      Returns:
      the TriggerProperties object itself.
    • baseImageTrigger

      public BaseImageTrigger baseImageTrigger()
      Get the baseImageTrigger property: The trigger based on base image dependencies.
      Returns:
      the baseImageTrigger value.
    • withBaseImageTrigger

      public TriggerProperties withBaseImageTrigger(BaseImageTrigger baseImageTrigger)
      Set the baseImageTrigger property: The trigger based on base image dependencies.
      Parameters:
      baseImageTrigger - the baseImageTrigger value to set.
      Returns:
      the TriggerProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TriggerProperties>
      Throws:
      IOException
    • fromJson

      public static TriggerProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TriggerProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TriggerProperties 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 TriggerProperties.