Class TimerTrigger
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.TimerTrigger
-
public final class TimerTrigger extends Object
The properties of a timer trigger.
-
-
Constructor Summary
Constructors Constructor Description TimerTrigger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: The name of the trigger.Stringschedule()Get the schedule property: The CRON expression for the task schedule.TriggerStatusstatus()Get the status property: The current status of trigger.voidvalidate()Validates the instance.TimerTriggerwithName(String name)Set the name property: The name of the trigger.TimerTriggerwithSchedule(String schedule)Set the schedule property: The CRON expression for the task schedule.TimerTriggerwithStatus(TriggerStatus status)Set the status property: The current status of trigger.
-
-
-
Method Detail
-
schedule
public String schedule()
Get the schedule property: The CRON expression for the task schedule.- Returns:
- the schedule value.
-
withSchedule
public TimerTrigger withSchedule(String schedule)
Set the schedule property: The CRON expression for the task schedule.- Parameters:
schedule- the schedule value to set.- Returns:
- the TimerTrigger object itself.
-
status
public TriggerStatus status()
Get the status property: The current status of trigger.- Returns:
- the status value.
-
withStatus
public TimerTrigger withStatus(TriggerStatus status)
Set the status property: The current status of trigger.- Parameters:
status- the status value to set.- Returns:
- the TimerTrigger object itself.
-
name
public String name()
Get the name property: The name of the trigger.- Returns:
- the name value.
-
withName
public TimerTrigger withName(String name)
Set the name property: The name of the trigger.- Parameters:
name- the name value to set.- Returns:
- the TimerTrigger object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-