TimerTriggerDescriptor Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. TimerTriggerDescriptor
- com.
Implements
public final class TimerTriggerDescriptor
implements JsonSerializable<TimerTriggerDescriptor>
The TimerTriggerDescriptor model.
Constructor Summary
Constructor | Description |
---|---|
TimerTriggerDescriptor() |
Creates an instance of Timer |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Timer |
fromJson(JsonReader jsonReader)
Reads an instance of Timer |
String |
scheduleOccurrence()
Get the schedule |
String |
timerTriggerName()
Get the timer |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Timer |
withScheduleOccurrence(String scheduleOccurrence)
Set the schedule |
Timer |
withTimerTriggerName(String timerTriggerName)
Set the timer |
Methods inherited from java.lang.Object
Constructor Details
TimerTriggerDescriptor
public TimerTriggerDescriptor()
Creates an instance of TimerTriggerDescriptor class.
Method Details
fromJson
public static TimerTriggerDescriptor fromJson(JsonReader jsonReader)
Reads an instance of TimerTriggerDescriptor from the JsonReader.
Parameters:
Returns:
Throws:
scheduleOccurrence
public String scheduleOccurrence()
Get the scheduleOccurrence property: The occurrence that triggered the run.
Returns:
timerTriggerName
public String timerTriggerName()
Get the timerTriggerName property: The timer trigger name that caused the run.
Returns:
toJson
validate
public void validate()
Validates the instance.
withScheduleOccurrence
public TimerTriggerDescriptor withScheduleOccurrence(String scheduleOccurrence)
Set the scheduleOccurrence property: The occurrence that triggered the run.
Parameters:
Returns:
withTimerTriggerName
public TimerTriggerDescriptor withTimerTriggerName(String timerTriggerName)
Set the timerTriggerName property: The timer trigger name that caused the run.
Parameters:
Returns:
Applies to
Azure SDK for Java