TimerTriggerUpdateParameters Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. TimerTriggerUpdateParameters
- com.
Implements
public final class TimerTriggerUpdateParameters
implements JsonSerializable<TimerTriggerUpdateParameters>
The properties for updating a timer trigger.
Constructor Summary
| Constructor | Description |
|---|---|
| TimerTriggerUpdateParameters() |
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
TimerTriggerUpdateParameters
public TimerTriggerUpdateParameters()
Creates an instance of TimerTriggerUpdateParameters class.
Method Details
fromJson
public static TimerTriggerUpdateParameters fromJson(JsonReader jsonReader)
Reads an instance of TimerTriggerUpdateParameters 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 TimerTriggerUpdateParameters withName(String name)
Set the name property: The name of the trigger.
Parameters:
Returns:
withSchedule
public TimerTriggerUpdateParameters withSchedule(String schedule)
Set the schedule property: The CRON expression for the task schedule.
Parameters:
Returns:
withStatus
public TimerTriggerUpdateParameters withStatus(TriggerStatus status)
Set the status property: The current status of trigger.
Parameters:
Returns: