TumblingWindowTriggerDependencyReference Class

public final class TumblingWindowTriggerDependencyReference
extends TriggerDependencyReference

Referenced tumbling window trigger dependency.

Constructor Summary

Constructor Description
TumblingWindowTriggerDependencyReference()

Creates an instance of TumblingWindowTriggerDependencyReference class.

Method Summary

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

Reads an instance of TumblingWindowTriggerDependencyReference from the JsonReader.

String offset()

Get the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency.

String size()

Get the size property: The size of the window when evaluating the dependency.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of dependency reference.

void validate()

Validates the instance.

TumblingWindowTriggerDependencyReference withOffset(String offset)

Set the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency.

TumblingWindowTriggerDependencyReference withReferenceTrigger(TriggerReference referenceTrigger)

Set the referenceTrigger property: Referenced trigger.

TumblingWindowTriggerDependencyReference withSize(String size)

Set the size property: The size of the window when evaluating the dependency.

Methods inherited from TriggerDependencyReference

Methods inherited from java.lang.Object

Constructor Details

TumblingWindowTriggerDependencyReference

public TumblingWindowTriggerDependencyReference()

Creates an instance of TumblingWindowTriggerDependencyReference class.

Method Details

fromJson

public static TumblingWindowTriggerDependencyReference fromJson(JsonReader jsonReader)

Reads an instance of TumblingWindowTriggerDependencyReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

offset

public String offset()

Get the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency.

Returns:

the offset value.

size

public String size()

Get the size property: The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used.

Returns:

the size value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TumblingWindowTriggerDependencyReference.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of dependency reference.

Overrides:

TumblingWindowTriggerDependencyReference.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

TumblingWindowTriggerDependencyReference.validate()

withOffset

public TumblingWindowTriggerDependencyReference withOffset(String offset)

Set the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency.

Parameters:

offset - the offset value to set.

Returns:

the TumblingWindowTriggerDependencyReference object itself.

withReferenceTrigger

public TumblingWindowTriggerDependencyReference withReferenceTrigger(TriggerReference referenceTrigger)

Set the referenceTrigger property: Referenced trigger.

Overrides:

TumblingWindowTriggerDependencyReference.withReferenceTrigger(TriggerReference referenceTrigger)

Parameters:

referenceTrigger

withSize

public TumblingWindowTriggerDependencyReference withSize(String size)

Set the size property: The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used.

Parameters:

size - the size value to set.

Returns:

the TumblingWindowTriggerDependencyReference object itself.

Applies to