TriggerContext Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.TriggerContext

Implements

public class TriggerContext
implements JsonSerializable<TriggerContext>

Trigger context.

Constructor Summary

Constructor Description
TriggerContext()

Creates an instance of TriggerContext class.

Method Summary

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

Reads an instance of TriggerContext from the JsonReader.

String objectType()

Get the objectType property: Type of the specific object - used for deserializing.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TriggerContext

public TriggerContext()

Creates an instance of TriggerContext class.

Method Details

fromJson

public static TriggerContext fromJson(JsonReader jsonReader)

Reads an instance of TriggerContext from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

objectType

public String objectType()

Get the objectType property: Type of the specific object - used for deserializing.

Returns:

the objectType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to