Class TwitterRegistration

java.lang.Object
com.azure.resourcemanager.appservice.models.TwitterRegistration
All Implemented Interfaces:
com.azure.json.JsonSerializable<TwitterRegistration>

public final class TwitterRegistration extends Object implements com.azure.json.JsonSerializable<TwitterRegistration>
The configuration settings of the app registration for the Twitter provider.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of TwitterRegistration class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the consumerKey property: The OAuth 1.0a consumer key of the Twitter application used for sign-in.
    Get the consumerSecretSettingName property: The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of TwitterRegistration from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withConsumerKey(String consumerKey)
    Set the consumerKey property: The OAuth 1.0a consumer key of the Twitter application used for sign-in.
    withConsumerSecretSettingName(String consumerSecretSettingName)
    Set the consumerSecretSettingName property: The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • TwitterRegistration

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

    • consumerKey

      public String consumerKey()
      Get the consumerKey property: The OAuth 1.0a consumer key of the Twitter application used for sign-in. This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in.
      Returns:
      the consumerKey value.
    • withConsumerKey

      public TwitterRegistration withConsumerKey(String consumerKey)
      Set the consumerKey property: The OAuth 1.0a consumer key of the Twitter application used for sign-in. This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in.
      Parameters:
      consumerKey - the consumerKey value to set.
      Returns:
      the TwitterRegistration object itself.
    • consumerSecretSettingName

      public String consumerSecretSettingName()
      Get the consumerSecretSettingName property: The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.
      Returns:
      the consumerSecretSettingName value.
    • withConsumerSecretSettingName

      public TwitterRegistration withConsumerSecretSettingName(String consumerSecretSettingName)
      Set the consumerSecretSettingName property: The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.
      Parameters:
      consumerSecretSettingName - the consumerSecretSettingName value to set.
      Returns:
      the TwitterRegistration 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<TwitterRegistration>
      Throws:
      IOException
    • fromJson

      public static TwitterRegistration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TwitterRegistration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TwitterRegistration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the TwitterRegistration.