Class BaseImageTrigger

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

public final class BaseImageTrigger extends Object implements com.azure.json.JsonSerializable<BaseImageTrigger>
The trigger based on base image dependency.
  • Constructor Details

    • BaseImageTrigger

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

    • baseImageTriggerType

      public BaseImageTriggerType baseImageTriggerType()
      Get the baseImageTriggerType property: The type of the auto trigger for base image dependency updates.
      Returns:
      the baseImageTriggerType value.
    • withBaseImageTriggerType

      public BaseImageTrigger withBaseImageTriggerType(BaseImageTriggerType baseImageTriggerType)
      Set the baseImageTriggerType property: The type of the auto trigger for base image dependency updates.
      Parameters:
      baseImageTriggerType - the baseImageTriggerType value to set.
      Returns:
      the BaseImageTrigger object itself.
    • updateTriggerEndpoint

      public String updateTriggerEndpoint()
      Get the updateTriggerEndpoint property: The endpoint URL for receiving update triggers.
      Returns:
      the updateTriggerEndpoint value.
    • withUpdateTriggerEndpoint

      public BaseImageTrigger withUpdateTriggerEndpoint(String updateTriggerEndpoint)
      Set the updateTriggerEndpoint property: The endpoint URL for receiving update triggers.
      Parameters:
      updateTriggerEndpoint - the updateTriggerEndpoint value to set.
      Returns:
      the BaseImageTrigger object itself.
    • updateTriggerPayloadType

      public UpdateTriggerPayloadType updateTriggerPayloadType()
      Get the updateTriggerPayloadType property: Type of Payload body for Base image update triggers.
      Returns:
      the updateTriggerPayloadType value.
    • withUpdateTriggerPayloadType

      public BaseImageTrigger withUpdateTriggerPayloadType(UpdateTriggerPayloadType updateTriggerPayloadType)
      Set the updateTriggerPayloadType property: Type of Payload body for Base image update triggers.
      Parameters:
      updateTriggerPayloadType - the updateTriggerPayloadType value to set.
      Returns:
      the BaseImageTrigger object itself.
    • status

      public TriggerStatus status()
      Get the status property: The current status of trigger.
      Returns:
      the status value.
    • withStatus

      public BaseImageTrigger withStatus(TriggerStatus status)
      Set the status property: The current status of trigger.
      Parameters:
      status - the status value to set.
      Returns:
      the BaseImageTrigger object itself.
    • name

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

      public BaseImageTrigger withName(String name)
      Set the name property: The name of the trigger.
      Parameters:
      name - the name value to set.
      Returns:
      the BaseImageTrigger 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<BaseImageTrigger>
      Throws:
      IOException
    • fromJson

      public static BaseImageTrigger fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BaseImageTrigger from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BaseImageTrigger if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the BaseImageTrigger.