Share via


TimerTriggerUpdateParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.TimerTriggerUpdateParameters

Implements

public final class TimerTriggerUpdateParameters
implements JsonSerializable<TimerTriggerUpdateParameters>

The properties for updating a timer trigger.

Constructor Summary

Constructor Description
TimerTriggerUpdateParameters()

Creates an instance of TimerTriggerUpdateParameters class.

Method Summary

Modifier and Type Method and Description
static TimerTriggerUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of TimerTriggerUpdateParameters from the JsonReader.

String name()

Get the name property: The name of the trigger.

String schedule()

Get the schedule property: The CRON expression for the task schedule.

TriggerStatus status()

Get the status property: The current status of trigger.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TimerTriggerUpdateParameters withName(String name)

Set the name property: The name of the trigger.

TimerTriggerUpdateParameters withSchedule(String schedule)

Set the schedule property: The CRON expression for the task schedule.

TimerTriggerUpdateParameters 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:

jsonReader - The JsonReader being read.

Returns:

An instance of TimerTriggerUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name of the trigger.

Returns:

the name value.

schedule

public String schedule()

Get the schedule property: The CRON expression for the task schedule.

Returns:

the schedule value.

status

public TriggerStatus status()

Get the status property: The current status of trigger.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to