Class AuthorizationProviderOAuth2Settings

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

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

    • AuthorizationProviderOAuth2Settings

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

    • redirectUrl

      public String redirectUrl()
      Get the redirectUrl property: Redirect URL to be set in the OAuth application.
      Returns:
      the redirectUrl value.
    • withRedirectUrl

      public AuthorizationProviderOAuth2Settings withRedirectUrl(String redirectUrl)
      Set the redirectUrl property: Redirect URL to be set in the OAuth application.
      Parameters:
      redirectUrl - the redirectUrl value to set.
      Returns:
      the AuthorizationProviderOAuth2Settings object itself.
    • grantTypes

      Get the grantTypes property: OAuth2 settings.
      Returns:
      the grantTypes value.
    • withGrantTypes

      Set the grantTypes property: OAuth2 settings.
      Parameters:
      grantTypes - the grantTypes value to set.
      Returns:
      the AuthorizationProviderOAuth2Settings 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<AuthorizationProviderOAuth2Settings>
      Throws:
      IOException
    • fromJson

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