Class OpenAuthenticationAccessPolicy

java.lang.Object
com.azure.resourcemanager.appservice.models.OpenAuthenticationAccessPolicy
All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenAuthenticationAccessPolicy>

public final class OpenAuthenticationAccessPolicy extends Object implements com.azure.json.JsonSerializable<OpenAuthenticationAccessPolicy>
Open authentication access policy defined by user.
  • Constructor Details

    • OpenAuthenticationAccessPolicy

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

    • type

      Get the type property: Type of provider for OAuth.
      Returns:
      the type value.
    • withType

      Set the type property: Type of provider for OAuth.
      Parameters:
      type - the type value to set.
      Returns:
      the OpenAuthenticationAccessPolicy object itself.
    • claims

      Get the claims property: The access policy claims.
      Returns:
      the claims value.
    • withClaims

      Set the claims property: The access policy claims.
      Parameters:
      claims - the claims value to set.
      Returns:
      the OpenAuthenticationAccessPolicy 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<OpenAuthenticationAccessPolicy>
      Throws:
      IOException
    • fromJson

      public static OpenAuthenticationAccessPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OpenAuthenticationAccessPolicy from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OpenAuthenticationAccessPolicy 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 OpenAuthenticationAccessPolicy.