TimerTriggerDescriptor Class

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

Implements

public final class TimerTriggerDescriptor
implements JsonSerializable<TimerTriggerDescriptor>

The TimerTriggerDescriptor model.

Constructor Summary

Constructor Description
TimerTriggerDescriptor()

Creates an instance of TimerTriggerDescriptor class.

Method Summary

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

Reads an instance of TimerTriggerDescriptor from the JsonReader.

String scheduleOccurrence()

Get the scheduleOccurrence property: The occurrence that triggered the run.

String timerTriggerName()

Get the timerTriggerName property: The timer trigger name that caused the run.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TimerTriggerDescriptor withScheduleOccurrence(String scheduleOccurrence)

Set the scheduleOccurrence property: The occurrence that triggered the run.

TimerTriggerDescriptor withTimerTriggerName(String timerTriggerName)

Set the timerTriggerName property: The timer trigger name that caused the run.

Methods inherited from java.lang.Object

Constructor Details

TimerTriggerDescriptor

public TimerTriggerDescriptor()

Creates an instance of TimerTriggerDescriptor class.

Method Details

fromJson

public static TimerTriggerDescriptor fromJson(JsonReader jsonReader)

Reads an instance of TimerTriggerDescriptor from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the TimerTriggerDescriptor.

scheduleOccurrence

public String scheduleOccurrence()

Get the scheduleOccurrence property: The occurrence that triggered the run.

Returns:

the scheduleOccurrence value.

timerTriggerName

public String timerTriggerName()

Get the timerTriggerName property: The timer trigger name that caused the run.

Returns:

the timerTriggerName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withScheduleOccurrence

public TimerTriggerDescriptor withScheduleOccurrence(String scheduleOccurrence)

Set the scheduleOccurrence property: The occurrence that triggered the run.

Parameters:

scheduleOccurrence - the scheduleOccurrence value to set.

Returns:

the TimerTriggerDescriptor object itself.

withTimerTriggerName

public TimerTriggerDescriptor withTimerTriggerName(String timerTriggerName)

Set the timerTriggerName property: The timer trigger name that caused the run.

Parameters:

timerTriggerName - the timerTriggerName value to set.

Returns:

the TimerTriggerDescriptor object itself.

Applies to