Trigger Class

  • java.lang.Object
    • com.azure.ai.projects.models.Trigger

Implements

public class Trigger
implements JsonSerializable<Trigger>

Base model for Trigger of the schedule.

Constructor Summary

Constructor Description
Trigger()

Creates an instance of Trigger class.

Method Summary

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

Reads an instance of Trigger from the JsonReader.

TriggerType getType()

Get the type property: Type of the trigger.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

Trigger

public Trigger()

Creates an instance of Trigger class.

Method Details

fromJson

public static Trigger fromJson(JsonReader jsonReader)

Reads an instance of Trigger from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Trigger 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 Trigger.

getType

public TriggerType getType()

Get the type property: Type of the trigger.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to