Class AllowedPrincipals

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

public final class AllowedPrincipals extends Object implements com.azure.json.JsonSerializable<AllowedPrincipals>
The configuration settings of the Azure Active Directory allowed principals.
  • Constructor Details

    • AllowedPrincipals

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

    • groups

      public List<String> groups()
      Get the groups property: The list of the allowed groups.
      Returns:
      the groups value.
    • withGroups

      public AllowedPrincipals withGroups(List<String> groups)
      Set the groups property: The list of the allowed groups.
      Parameters:
      groups - the groups value to set.
      Returns:
      the AllowedPrincipals object itself.
    • identities

      public List<String> identities()
      Get the identities property: The list of the allowed identities.
      Returns:
      the identities value.
    • withIdentities

      public AllowedPrincipals withIdentities(List<String> identities)
      Set the identities property: The list of the allowed identities.
      Parameters:
      identities - the identities value to set.
      Returns:
      the AllowedPrincipals 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<AllowedPrincipals>
      Throws:
      IOException
    • fromJson

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