Class FacebookChannelProperties
- java.lang.Object
-
- com.azure.resourcemanager.botservice.models.FacebookChannelProperties
-
public final class FacebookChannelProperties extends Object
The parameters to provide for the Facebook channel.
-
-
Constructor Summary
Constructors Constructor Description FacebookChannelProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
appId()
Get the appId property: Facebook application id.String
appSecret()
Get the appSecret property: Facebook application secret.String
callbackUrl()
Get the callbackUrl property: Callback Url.boolean
isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.List<FacebookPage>
pages()
Get the pages property: The list of Facebook pages.void
validate()
Validates the instance.String
verifyToken()
Get the verifyToken property: Verify token.FacebookChannelProperties
withAppId(String appId)
Set the appId property: Facebook application id.FacebookChannelProperties
withAppSecret(String appSecret)
Set the appSecret property: Facebook application secret.FacebookChannelProperties
withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.FacebookChannelProperties
withPages(List<FacebookPage> pages)
Set the pages property: The list of Facebook pages.
-
-
-
Method Detail
-
verifyToken
public String 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
public List<FacebookPage> pages()
Get the pages property: The list of Facebook pages.- Returns:
- the pages value.
-
withPages
public FacebookChannelProperties withPages(List<FacebookPage> pages)
Set the pages property: The list of Facebook pages.- Parameters:
pages
- the pages value to set.- Returns:
- the FacebookChannelProperties object itself.
-
appId
public String appId()
Get the appId property: Facebook application id.- Returns:
- the appId value.
-
withAppId
public FacebookChannelProperties withAppId(String appId)
Set the appId property: Facebook application id.- Parameters:
appId
- the appId value to set.- Returns:
- the FacebookChannelProperties object itself.
-
appSecret
public String 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
public FacebookChannelProperties withAppSecret(String appSecret)
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
public String 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
public FacebookChannelProperties withIsEnabled(boolean isEnabled)
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.
-
-