Class TimerTriggerDescriptor
java.lang.Object
com.azure.resourcemanager.containerregistry.models.TimerTriggerDescriptor
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TimerTriggerDescriptor>
public final class TimerTriggerDescriptor
extends Object
implements com.azure.json.JsonSerializable<TimerTriggerDescriptor>
The TimerTriggerDescriptor model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TimerTriggerDescriptor class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimerTriggerDescriptorfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TimerTriggerDescriptor from the JsonReader.Get the scheduleOccurrence property: The occurrence that triggered the run.Get the timerTriggerName property: The timer trigger name that caused the run.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withScheduleOccurrence(String scheduleOccurrence) Set the scheduleOccurrence property: The occurrence that triggered the run.withTimerTriggerName(String timerTriggerName) Set the timerTriggerName property: The timer trigger name that caused the run.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TimerTriggerDescriptor
public TimerTriggerDescriptor()Creates an instance of TimerTriggerDescriptor class.
-
-
Method Details
-
timerTriggerName
Get the timerTriggerName property: The timer trigger name that caused the run.- Returns:
- the timerTriggerName value.
-
withTimerTriggerName
Set the timerTriggerName property: The timer trigger name that caused the run.- Parameters:
timerTriggerName- the timerTriggerName value to set.- Returns:
- the TimerTriggerDescriptor object itself.
-
scheduleOccurrence
Get the scheduleOccurrence property: The occurrence that triggered the run.- Returns:
- the scheduleOccurrence value.
-
withScheduleOccurrence
Set the scheduleOccurrence property: The occurrence that triggered the run.- Parameters:
scheduleOccurrence- the scheduleOccurrence value to set.- Returns:
- the TimerTriggerDescriptor object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TimerTriggerDescriptor>- Throws:
IOException
-
fromJson
public static TimerTriggerDescriptor fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TimerTriggerDescriptor from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TimerTriggerDescriptor 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 TimerTriggerDescriptor.
-