Aracılığıyla paylaş


FileEventTrigger Class

public final class FileEventTrigger
extends TriggerInner

Trigger details.

Constructor Summary

Constructor Description
FileEventTrigger()

Creates an instance of FileEventTrigger class.

Method Summary

Modifier and Type Method and Description
String customContextTag()

Get the customContextTag property: A custom context tag typically used to correlate the trigger against its usage.

static FileEventTrigger fromJson(JsonReader jsonReader)

Reads an instance of FileEventTrigger from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

TriggerEventType kind()

Get the kind property: Trigger Kind.

String name()

Get the name property: The name of the resource.

RoleSinkInfo sinkInfo()

Get the sinkInfo property: Role sink info.

FileSourceInfo sourceInfo()

Get the sourceInfo property: File event source details.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

FileEventTrigger withCustomContextTag(String customContextTag)

Set the customContextTag property: A custom context tag typically used to correlate the trigger against its usage.

FileEventTrigger withSinkInfo(RoleSinkInfo sinkInfo)

Set the sinkInfo property: Role sink info.

FileEventTrigger withSourceInfo(FileSourceInfo sourceInfo)

Set the sourceInfo property: File event source details.

Methods inherited from TriggerInner

Methods inherited from java.lang.Object

Constructor Details

FileEventTrigger

public FileEventTrigger()

Creates an instance of FileEventTrigger class.

Method Details

customContextTag

public String customContextTag()

Get the customContextTag property: A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module.

Returns:

the customContextTag value.

fromJson

public static FileEventTrigger fromJson(JsonReader jsonReader)

Reads an instance of FileEventTrigger from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

FileEventTrigger.id()

Returns:

the id value.

kind

public TriggerEventType kind()

Get the kind property: Trigger Kind.

Overrides:

FileEventTrigger.kind()

Returns:

the kind value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

FileEventTrigger.name()

Returns:

the name value.

sinkInfo

public RoleSinkInfo sinkInfo()

Get the sinkInfo property: Role sink info.

Returns:

the sinkInfo value.

sourceInfo

public FileSourceInfo sourceInfo()

Get the sourceInfo property: File event source details.

Returns:

the sourceInfo value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FileEventTrigger.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

FileEventTrigger.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

FileEventTrigger.validate()

withCustomContextTag

public FileEventTrigger withCustomContextTag(String customContextTag)

Set the customContextTag property: A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module.

Parameters:

customContextTag - the customContextTag value to set.

Returns:

the FileEventTrigger object itself.

withSinkInfo

public FileEventTrigger withSinkInfo(RoleSinkInfo sinkInfo)

Set the sinkInfo property: Role sink info.

Parameters:

sinkInfo - the sinkInfo value to set.

Returns:

the FileEventTrigger object itself.

withSourceInfo

public FileEventTrigger withSourceInfo(FileSourceInfo sourceInfo)

Set the sourceInfo property: File event source details.

Parameters:

sourceInfo - the sourceInfo value to set.

Returns:

the FileEventTrigger object itself.

Applies to