Class TriggerUpdateParameters

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

public final class TriggerUpdateParameters extends Object implements com.azure.json.JsonSerializable<TriggerUpdateParameters>
The properties for updating triggers.
  • Constructor Details

    • TriggerUpdateParameters

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

    • timerTriggers

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

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

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

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

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

      public TriggerUpdateParameters withBaseImageTrigger(BaseImageTriggerUpdateParameters baseImageTrigger)
      Set the baseImageTrigger property: The trigger based on base image dependencies.
      Parameters:
      baseImageTrigger - the baseImageTrigger value to set.
      Returns:
      the TriggerUpdateParameters 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<TriggerUpdateParameters>
      Throws:
      IOException
    • fromJson

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