Class DefaultAuthorizationPolicy
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.DefaultAuthorizationPolicy
-
public final class DefaultAuthorizationPolicy extends Object
The configuration settings of the Azure Active Directory default authorization policy.
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthorizationPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
allowedApplications()
Get the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.AllowedPrincipals
allowedPrincipals()
Get the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.void
validate()
Validates the instance.DefaultAuthorizationPolicy
withAllowedApplications(List<String> allowedApplications)
Set the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.DefaultAuthorizationPolicy
withAllowedPrincipals(AllowedPrincipals allowedPrincipals)
Set the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.
-
-
-
Method Detail
-
allowedPrincipals
public AllowedPrincipals allowedPrincipals()
Get the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.- Returns:
- the allowedPrincipals value.
-
withAllowedPrincipals
public DefaultAuthorizationPolicy withAllowedPrincipals(AllowedPrincipals allowedPrincipals)
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
public List<String> allowedApplications()
Get the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.- Returns:
- the allowedApplications value.
-
withAllowedApplications
public DefaultAuthorizationPolicy withAllowedApplications(List<String> allowedApplications)
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.
-
-