Share via


FacebookChannel Class

public final class FacebookChannel
extends Channel

Facebook channel definition.

Constructor Summary

Constructor Description
FacebookChannel()

Creates an instance of FacebookChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static FacebookChannel fromJson(JsonReader jsonReader)

Reads an instance of FacebookChannel from the JsonReader.

FacebookChannelProperties properties()

Get the properties property: The set of properties specific to bot facebook channel.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FacebookChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

FacebookChannel withLocation(String location)

Set the location property: Specifies the location of the resource.

FacebookChannel withProperties(FacebookChannelProperties properties)

Set the properties property: The set of properties specific to bot facebook channel.

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

FacebookChannel

public FacebookChannel()

Creates an instance of FacebookChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

FacebookChannel.channelName()

Returns:

the channelName value.

fromJson

public static FacebookChannel fromJson(JsonReader jsonReader)

Reads an instance of FacebookChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public FacebookChannelProperties properties()

Get the properties property: The set of properties specific to bot facebook channel.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FacebookChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

FacebookChannel.validate()

withEtag

public FacebookChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

FacebookChannel.withEtag(String etag)

Parameters:

etag

withLocation

public FacebookChannel withLocation(String location)

Set the location property: Specifies the location of the resource.

Overrides:

FacebookChannel.withLocation(String location)

Parameters:

location

withProperties

public FacebookChannel withProperties(FacebookChannelProperties properties)

Set the properties property: The set of properties specific to bot facebook channel.

Parameters:

properties - the properties value to set.

Returns:

the FacebookChannel object itself.

Applies to