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 Details

    • AuthorizationProviderContractProperties

      public AuthorizationProviderContractProperties()
      Creates an instance of AuthorizationProviderContractProperties class.
  • Method Details

    • displayName

      public String displayName()
      Get the displayName property: Authorization Provider name. Must be 1 to 300 characters long.
      Returns:
      the displayName value.
    • withDisplayName

      public AuthorizationProviderContractProperties withDisplayName(String displayName)
      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

      public String identityProvider()
      Get the identityProvider property: Identity provider name. Must be 1 to 300 characters long.
      Returns:
      the identityProvider value.
    • withIdentityProvider

      public AuthorizationProviderContractProperties withIdentityProvider(String identityProvider)
      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

      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

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