AdhocBasedTriggerContext Class

public final class AdhocBasedTriggerContext
extends TriggerContext

Adhoc trigger context.

Constructor Summary

Constructor Description
AdhocBasedTriggerContext()

Creates an instance of AdhocBasedTriggerContext class.

Method Summary

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

Reads an instance of AdhocBasedTriggerContext from the JsonReader.

String objectType()

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

AdhocBasedTaggingCriteria taggingCriteria()

Get the taggingCriteria property: Tagging Criteria containing retention tag for adhoc backup.

JsonWriter toJson(JsonWriter jsonWriter)
AdhocBasedTriggerContext withTaggingCriteria(AdhocBasedTaggingCriteria taggingCriteria)

Set the taggingCriteria property: Tagging Criteria containing retention tag for adhoc backup.

Methods inherited from TriggerContext

Methods inherited from java.lang.Object

Constructor Details

AdhocBasedTriggerContext

public AdhocBasedTriggerContext()

Creates an instance of AdhocBasedTriggerContext class.

Method Details

fromJson

public static AdhocBasedTriggerContext fromJson(JsonReader jsonReader)

Reads an instance of AdhocBasedTriggerContext from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

objectType

public String objectType()

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

Overrides:

AdhocBasedTriggerContext.objectType()

Returns:

the objectType value.

taggingCriteria

public AdhocBasedTaggingCriteria taggingCriteria()

Get the taggingCriteria property: Tagging Criteria containing retention tag for adhoc backup.

Returns:

the taggingCriteria value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AdhocBasedTriggerContext.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withTaggingCriteria

public AdhocBasedTriggerContext withTaggingCriteria(AdhocBasedTaggingCriteria taggingCriteria)

Set the taggingCriteria property: Tagging Criteria containing retention tag for adhoc backup.

Parameters:

taggingCriteria - the taggingCriteria value to set.

Returns:

the AdhocBasedTriggerContext object itself.

Applies to