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 Summary
ConstructorsConstructorDescriptionCreates an instance of AuthorizationProviderOAuth2Settings class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AuthorizationProviderOAuth2Settings from the JsonReader.Get the grantTypes property: OAuth2 settings.Get the redirectUrl property: Redirect URL to be set in the OAuth application.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withGrantTypes(AuthorizationProviderOAuth2GrantTypes grantTypes) Set the grantTypes property: OAuth2 settings.withRedirectUrl(String redirectUrl) Set the redirectUrl property: Redirect URL to be set in the OAuth application.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AuthorizationProviderOAuth2Settings
public AuthorizationProviderOAuth2Settings()Creates an instance of AuthorizationProviderOAuth2Settings class.
-
-
Method Details
-
redirectUrl
Get the redirectUrl property: Redirect URL to be set in the OAuth application.- Returns:
- the redirectUrl value.
-
withRedirectUrl
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
public AuthorizationProviderOAuth2Settings withGrantTypes(AuthorizationProviderOAuth2GrantTypes grantTypes) 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
- Specified by:
toJsonin interfacecom.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.
-