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 Summary
ConstructorsConstructorDescriptionCreates an instance of OAuth2AuthenticationSettingsContract class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authorizationServerId property: OAuth authorization server identifier.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OAuth2AuthenticationSettingsContract from the JsonReader.scope()Get the scope property: operations scope.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAuthorizationServerId(String authorizationServerId) Set the authorizationServerId property: OAuth authorization server identifier.Set the scope property: operations scope.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
-
OAuth2AuthenticationSettingsContract
public OAuth2AuthenticationSettingsContract()Creates an instance of OAuth2AuthenticationSettingsContract class.
-
-
Method Details
-
authorizationServerId
Get the authorizationServerId property: OAuth authorization server identifier.- Returns:
- the authorizationServerId value.
-
withAuthorizationServerId
Set the authorizationServerId property: OAuth authorization server identifier.- Parameters:
authorizationServerId- the authorizationServerId value to set.- Returns:
- the OAuth2AuthenticationSettingsContract object itself.
-
scope
Get the scope property: operations scope.- Returns:
- the scope value.
-
withScope
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
- Specified by:
toJsonin interfacecom.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.
-