Class FacebookChannelProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.FacebookChannelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FacebookChannelProperties>
public final class FacebookChannelProperties
extends Object
implements com.azure.json.JsonSerializable<FacebookChannelProperties>
The parameters to provide for the Facebook channel.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FacebookChannelProperties class. -
Method Summary
Modifier and TypeMethodDescriptionappId()Get the appId property: Facebook application id.Get the appSecret property: Facebook application secret.Get the callbackUrl property: Callback Url.static FacebookChannelPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FacebookChannelProperties from the JsonReader.booleanGet the isEnabled property: Whether this channel is enabled for the bot.pages()Get the pages property: The list of Facebook pages.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the verifyToken property: Verify token.Set the appId property: Facebook application id.withAppSecret(String appSecret) Set the appSecret property: Facebook application secret.withIsEnabled(boolean isEnabled) Set the isEnabled property: Whether this channel is enabled for the bot.withPages(List<FacebookPage> pages) Set the pages property: The list of Facebook pages.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
-
FacebookChannelProperties
public FacebookChannelProperties()Creates an instance of FacebookChannelProperties class.
-
-
Method Details
-
verifyToken
Get the verifyToken property: Verify token. Value only returned through POST to the action Channel List API, otherwise empty.- Returns:
- the verifyToken value.
-
pages
Get the pages property: The list of Facebook pages.- Returns:
- the pages value.
-
withPages
Set the pages property: The list of Facebook pages.- Parameters:
pages- the pages value to set.- Returns:
- the FacebookChannelProperties object itself.
-
appId
Get the appId property: Facebook application id.- Returns:
- the appId value.
-
withAppId
Set the appId property: Facebook application id.- Parameters:
appId- the appId value to set.- Returns:
- the FacebookChannelProperties object itself.
-
appSecret
Get the appSecret property: Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty.- Returns:
- the appSecret value.
-
withAppSecret
Set the appSecret property: Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty.- Parameters:
appSecret- the appSecret value to set.- Returns:
- the FacebookChannelProperties object itself.
-
callbackUrl
Get the callbackUrl property: Callback Url.- Returns:
- the callbackUrl value.
-
isEnabled
public boolean isEnabled()Get the isEnabled property: Whether this channel is enabled for the bot.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Whether this channel is enabled for the bot.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the FacebookChannelProperties 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<FacebookChannelProperties>- Throws:
IOException
-
fromJson
public static FacebookChannelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FacebookChannelProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FacebookChannelProperties 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 FacebookChannelProperties.
-