FacebookPage Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.FacebookPage

Implements

public final class FacebookPage
implements JsonSerializable<FacebookPage>

A Facebook page for Facebook channel registration.

Constructor Summary

Constructor Description
FacebookPage()

Creates an instance of FacebookPage class.

Method Summary

Modifier and Type Method and Description
String accessToken()

Get the accessToken property: Facebook application access token.

static FacebookPage fromJson(JsonReader jsonReader)

Reads an instance of FacebookPage from the JsonReader.

String id()

Get the id property: Page id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FacebookPage withAccessToken(String accessToken)

Set the accessToken property: Facebook application access token.

FacebookPage withId(String id)

Set the id property: Page id.

Methods inherited from java.lang.Object

Constructor Details

FacebookPage

public FacebookPage()

Creates an instance of FacebookPage class.

Method Details

accessToken

public String accessToken()

Get the accessToken property: Facebook application access token. Value only returned through POST to the action Channel List API, otherwise empty.

Returns:

the accessToken value.

fromJson

public static FacebookPage fromJson(JsonReader jsonReader)

Reads an instance of FacebookPage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FacebookPage 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: Page id.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccessToken

public FacebookPage withAccessToken(String accessToken)

Set the accessToken property: Facebook application access token. Value only returned through POST to the action Channel List API, otherwise empty.

Parameters:

accessToken - the accessToken value to set.

Returns:

the FacebookPage object itself.

withId

public FacebookPage withId(String id)

Set the id property: Page id.

Parameters:

id - the id value to set.

Returns:

the FacebookPage object itself.

Applies to