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 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

      public List<OAuth2AuthenticationSettingsContract> 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

      public List<OpenIdAuthenticationSettingsContract> 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.