Class AllowedPrincipals
java.lang.Object
com.azure.resourcemanager.appcontainers.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AllowedPrincipals
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AllowedPrincipals from the JsonReader.groups()
Get the groups property: The list of the allowed groups.Get the identities property: The list of the allowed identities.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withGroups
(List<String> groups) Set the groups property: The list of the allowed groups.withIdentities
(List<String> identities) Set the identities property: The list of the allowed identities.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AllowedPrincipals
public AllowedPrincipals()Creates an instance of AllowedPrincipals class.
-
-
Method Details
-
groups
Get the groups property: The list of the allowed groups.- Returns:
- the groups value.
-
withGroups
Set the groups property: The list of the allowed groups.- Parameters:
groups
- the groups value to set.- Returns:
- the AllowedPrincipals object itself.
-
identities
Get the identities property: The list of the allowed identities.- Returns:
- the identities value.
-
withIdentities
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AllowedPrincipals>
- Throws:
IOException
-
fromJson
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.
-