Class FacebookPage
java.lang.Object
com.azure.resourcemanager.botservice.models.FacebookPage
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FacebookPage>
public final class FacebookPage
extends Object
implements com.azure.json.JsonSerializable<FacebookPage>
A Facebook page for Facebook channel registration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accessToken property: Facebook application access token.static FacebookPagefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FacebookPage from the JsonReader.id()Get the id property: Page id.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccessToken(String accessToken) Set the accessToken property: Facebook application access token.Set the id property: Page id.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FacebookPage
public FacebookPage()Creates an instance of FacebookPage class.
-
-
Method Details
-
id
Get the id property: Page id.- Returns:
- the id value.
-
withId
Set the id property: Page id.- Parameters:
id- the id value to set.- Returns:
- the FacebookPage object itself.
-
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.
-
withAccessToken
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FacebookPage>- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the FacebookPage.
-