Class OAuth2AuthenticationSettingsContract

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

public final class OAuth2AuthenticationSettingsContract extends Object implements com.azure.json.JsonSerializable<OAuth2AuthenticationSettingsContract>
API OAuth2 Authentication settings details.
  • Constructor Details

    • OAuth2AuthenticationSettingsContract

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

    • authorizationServerId

      public String authorizationServerId()
      Get the authorizationServerId property: OAuth authorization server identifier.
      Returns:
      the authorizationServerId value.
    • withAuthorizationServerId

      public OAuth2AuthenticationSettingsContract withAuthorizationServerId(String authorizationServerId)
      Set the authorizationServerId property: OAuth authorization server identifier.
      Parameters:
      authorizationServerId - the authorizationServerId value to set.
      Returns:
      the OAuth2AuthenticationSettingsContract object itself.
    • scope

      public String scope()
      Get the scope property: operations scope.
      Returns:
      the scope value.
    • withScope

      public OAuth2AuthenticationSettingsContract withScope(String scope)
      Set the scope property: operations scope.
      Parameters:
      scope - the scope value to set.
      Returns:
      the OAuth2AuthenticationSettingsContract 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<OAuth2AuthenticationSettingsContract>
      Throws:
      IOException
    • fromJson

      public static OAuth2AuthenticationSettingsContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OAuth2AuthenticationSettingsContract from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OAuth2AuthenticationSettingsContract 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 OAuth2AuthenticationSettingsContract.