Class AuthenticationSettingsContract
java.lang.Object
com.azure.resourcemanager.apimanagement.models.AuthenticationSettingsContract
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthenticationSettingsContract>
public final class AuthenticationSettingsContract
extends Object
implements com.azure.json.JsonSerializable<AuthenticationSettingsContract>
API Authentication Settings.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AuthenticationSettingsContract class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AuthenticationSettingsContract from the JsonReader.oAuth2()Get the oAuth2 property: OAuth2 Authentication settings.Get the oAuth2AuthenticationSettings property: Collection of OAuth2 authentication settings included into this API.openid()Get the openid property: OpenID Connect Authentication Settings.Get the openidAuthenticationSettings property: Collection of Open ID Connect authentication settings included into this API.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the oAuth2 property: OAuth2 Authentication settings.withOAuth2AuthenticationSettings(List<OAuth2AuthenticationSettingsContract> oAuth2AuthenticationSettings) Set the oAuth2AuthenticationSettings property: Collection of OAuth2 authentication settings included into this API.Set the openid property: OpenID Connect Authentication Settings.withOpenidAuthenticationSettings(List<OpenIdAuthenticationSettingsContract> openidAuthenticationSettings) Set the openidAuthenticationSettings property: Collection of Open ID Connect authentication settings included into this API.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
-
AuthenticationSettingsContract
public AuthenticationSettingsContract()Creates an instance of AuthenticationSettingsContract class.
-
-
Method Details
-
oAuth2
Get the oAuth2 property: OAuth2 Authentication settings.- Returns:
- the oAuth2 value.
-
withOAuth2
Set the oAuth2 property: OAuth2 Authentication settings.- Parameters:
oAuth2- the oAuth2 value to set.- Returns:
- the AuthenticationSettingsContract object itself.
-
openid
Get the openid property: OpenID Connect Authentication Settings.- Returns:
- the openid value.
-
withOpenid
Set the openid property: OpenID Connect Authentication Settings.- Parameters:
openid- the openid value to set.- Returns:
- the AuthenticationSettingsContract object itself.
-
oAuth2AuthenticationSettings
Get the oAuth2AuthenticationSettings property: Collection of OAuth2 authentication settings included into this API.- Returns:
- the oAuth2AuthenticationSettings value.
-
withOAuth2AuthenticationSettings
public AuthenticationSettingsContract withOAuth2AuthenticationSettings(List<OAuth2AuthenticationSettingsContract> oAuth2AuthenticationSettings) Set the oAuth2AuthenticationSettings property: Collection of OAuth2 authentication settings included into this API.- Parameters:
oAuth2AuthenticationSettings- the oAuth2AuthenticationSettings value to set.- Returns:
- the AuthenticationSettingsContract object itself.
-
openidAuthenticationSettings
Get the openidAuthenticationSettings property: Collection of Open ID Connect authentication settings included into this API.- Returns:
- the openidAuthenticationSettings value.
-
withOpenidAuthenticationSettings
public AuthenticationSettingsContract withOpenidAuthenticationSettings(List<OpenIdAuthenticationSettingsContract> openidAuthenticationSettings) Set the openidAuthenticationSettings property: Collection of Open ID Connect authentication settings included into this API.- Parameters:
openidAuthenticationSettings- the openidAuthenticationSettings value to set.- Returns:
- the AuthenticationSettingsContract 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<AuthenticationSettingsContract>- Throws:
IOException
-
fromJson
public static AuthenticationSettingsContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AuthenticationSettingsContract from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AuthenticationSettingsContract 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 AuthenticationSettingsContract.
-