Class AuthorizationProviderContractProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.AuthorizationProviderContractProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthorizationProviderContractProperties>
public final class AuthorizationProviderContractProperties
extends Object
implements com.azure.json.JsonSerializable<AuthorizationProviderContractProperties>
Authorization Provider details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AuthorizationProviderContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the displayName property: Authorization Provider name.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AuthorizationProviderContractProperties from the JsonReader.Get the identityProvider property: Identity provider name.oauth2()Get the oauth2 property: OAuth2 settings.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDisplayName(String displayName) Set the displayName property: Authorization Provider name.withIdentityProvider(String identityProvider) Set the identityProvider property: Identity provider name.Set the oauth2 property: OAuth2 settings.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
-
AuthorizationProviderContractProperties
public AuthorizationProviderContractProperties()Creates an instance of AuthorizationProviderContractProperties class.
-
-
Method Details
-
displayName
Get the displayName property: Authorization Provider name. Must be 1 to 300 characters long.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Authorization Provider name. Must be 1 to 300 characters long.- Parameters:
displayName- the displayName value to set.- Returns:
- the AuthorizationProviderContractProperties object itself.
-
identityProvider
Get the identityProvider property: Identity provider name. Must be 1 to 300 characters long.- Returns:
- the identityProvider value.
-
withIdentityProvider
Set the identityProvider property: Identity provider name. Must be 1 to 300 characters long.- Parameters:
identityProvider- the identityProvider value to set.- Returns:
- the AuthorizationProviderContractProperties object itself.
-
oauth2
Get the oauth2 property: OAuth2 settings.- Returns:
- the oauth2 value.
-
withOauth2
public AuthorizationProviderContractProperties withOauth2(AuthorizationProviderOAuth2Settings oauth2) Set the oauth2 property: OAuth2 settings.- Parameters:
oauth2- the oauth2 value to set.- Returns:
- the AuthorizationProviderContractProperties 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<AuthorizationProviderContractProperties>- Throws:
IOException
-
fromJson
public static AuthorizationProviderContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AuthorizationProviderContractProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AuthorizationProviderContractProperties 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 AuthorizationProviderContractProperties.
-