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 Details

    • FacebookPage

      public FacebookPage()
      Creates an instance of FacebookPage class.
  • Method Details

    • id

      public String id()
      Get the id property: Page id.
      Returns:
      the id value.
    • withId

      public FacebookPage withId(String id)
      Set the id property: Page id.
      Parameters:
      id - the id value to set.
      Returns:
      the FacebookPage object itself.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<FacebookPage>
      Throws:
      IOException
    • fromJson

      public static FacebookPage fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.