Class DefaultAuthorizationPolicy
java.lang.Object
com.azure.resourcemanager.appservice.models.DefaultAuthorizationPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DefaultAuthorizationPolicy>
public final class DefaultAuthorizationPolicy
extends Object
implements com.azure.json.JsonSerializable<DefaultAuthorizationPolicy>
The configuration settings of the Azure Active Directory default authorization policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DefaultAuthorizationPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.Get the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.static DefaultAuthorizationPolicyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DefaultAuthorizationPolicy from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAllowedApplications(List<String> allowedApplications) Set the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.withAllowedPrincipals(AllowedPrincipals allowedPrincipals) Set the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DefaultAuthorizationPolicy
public DefaultAuthorizationPolicy()Creates an instance of DefaultAuthorizationPolicy class.
-
-
Method Details
-
allowedPrincipals
Get the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.- Returns:
- the allowedPrincipals value.
-
withAllowedPrincipals
Set the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.- Parameters:
allowedPrincipals- the allowedPrincipals value to set.- Returns:
- the DefaultAuthorizationPolicy object itself.
-
allowedApplications
Get the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.- Returns:
- the allowedApplications value.
-
withAllowedApplications
Set the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.- Parameters:
allowedApplications- the allowedApplications value to set.- Returns:
- the DefaultAuthorizationPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DefaultAuthorizationPolicy>- Throws:
IOException
-
fromJson
public static DefaultAuthorizationPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DefaultAuthorizationPolicy from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DefaultAuthorizationPolicy 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 DefaultAuthorizationPolicy.
-