TimerTrigger Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. TimerTrigger
- com.
Implements
public final class TimerTrigger
implements JsonSerializable<TimerTrigger>
The properties of a timer trigger.
Constructor Summary
Constructor | Description |
---|---|
TimerTrigger() |
Creates an instance of Timer |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Timer |
fromJson(JsonReader jsonReader)
Reads an instance of Timer |
String |
name()
Get the name property: The name of the trigger. |
String |
schedule()
Get the schedule property: The CRON expression for the task schedule. |
Trigger |
status()
Get the status property: The current status of trigger. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Timer |
withName(String name)
Set the name property: The name of the trigger. |
Timer |
withSchedule(String schedule)
Set the schedule property: The CRON expression for the task schedule. |
Timer |
withStatus(TriggerStatus status)
Set the status property: The current status of trigger. |
Methods inherited from java.lang.Object
Constructor Details
TimerTrigger
public TimerTrigger()
Creates an instance of TimerTrigger class.
Method Details
fromJson
public static TimerTrigger fromJson(JsonReader jsonReader)
Reads an instance of TimerTrigger from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the trigger.
Returns:
schedule
public String schedule()
Get the schedule property: The CRON expression for the task schedule.
Returns:
status
public TriggerStatus status()
Get the status property: The current status of trigger.
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public TimerTrigger withName(String name)
Set the name property: The name of the trigger.
Parameters:
Returns:
withSchedule
public TimerTrigger withSchedule(String schedule)
Set the schedule property: The CRON expression for the task schedule.
Parameters:
Returns:
withStatus
public TimerTrigger withStatus(TriggerStatus status)
Set the status property: The current status of trigger.
Parameters:
Returns:
Applies to
Azure SDK for Java