public final class PreAuthorizedApplicationPermission extends Object
| Constructor and Description |
|---|
PreAuthorizedApplicationPermission() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
accessGrants()
Get the accessGrants property: The list of permissions.
|
Boolean |
directAccessGrant()
Get the directAccessGrant property: Indicates whether the permission set is DirectAccess or impersonation.
|
void |
validate()
Validates the instance.
|
PreAuthorizedApplicationPermission |
withAccessGrants(List<String> accessGrants)
Set the accessGrants property: The list of permissions.
|
PreAuthorizedApplicationPermission |
withDirectAccessGrant(Boolean directAccessGrant)
Set the directAccessGrant property: Indicates whether the permission set is DirectAccess or impersonation.
|
public Boolean directAccessGrant()
public PreAuthorizedApplicationPermission withDirectAccessGrant(Boolean directAccessGrant)
directAccessGrant - the directAccessGrant value to set.public List<String> accessGrants()
public PreAuthorizedApplicationPermission withAccessGrants(List<String> accessGrants)
accessGrants - the accessGrants value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.