Class TimerTriggerUpdateParameters
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.TimerTriggerUpdateParameters
-
public final class TimerTriggerUpdateParameters extends Object
The properties for updating a timer trigger.
-
-
Constructor Summary
Constructors Constructor Description TimerTriggerUpdateParameters()
-
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.TimerTriggerUpdateParameterswithName(String name)Set the name property: The name of the trigger.TimerTriggerUpdateParameterswithSchedule(String schedule)Set the schedule property: The CRON expression for the task schedule.TimerTriggerUpdateParameterswithStatus(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 TimerTriggerUpdateParameters withSchedule(String schedule)
Set the schedule property: The CRON expression for the task schedule.- Parameters:
schedule- the schedule value to set.- Returns:
- the TimerTriggerUpdateParameters object itself.
-
status
public TriggerStatus status()
Get the status property: The current status of trigger.- Returns:
- the status value.
-
withStatus
public TimerTriggerUpdateParameters withStatus(TriggerStatus status)
Set the status property: The current status of trigger.- Parameters:
status- the status value to set.- Returns:
- the TimerTriggerUpdateParameters object itself.
-
name
public String name()
Get the name property: The name of the trigger.- Returns:
- the name value.
-
withName
public TimerTriggerUpdateParameters withName(String name)
Set the name property: The name of the trigger.- Parameters:
name- the name value to set.- Returns:
- the TimerTriggerUpdateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-