Class PermissionGrantConditionSet

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.PermissionGrantConditionSet
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class PermissionGrantConditionSet extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • PermissionGrantConditionSet

      public PermissionGrantConditionSet()
      Instantiates a new PermissionGrantConditionSet and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static PermissionGrantConditionSet createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a PermissionGrantConditionSet
    • getClientApplicationIds

      @Nullable public List<String> getClientApplicationIds()
      Gets the clientApplicationIds property value. A list of appId values for the client applications to match with, or a list with the single value all to match any client application. Default is the single value all.
      Returns:
      a List<String>
    • getClientApplicationPublisherIds

      @Nullable public List<String> getClientApplicationPublisherIds()
      Gets the clientApplicationPublisherIds property value. A list of Microsoft Partner Network (MPN) IDs for verified publishers of the client application, or a list with the single value all to match with client apps from any publisher. Default is the single value all.
      Returns:
      a List<String>
    • getClientApplicationsFromVerifiedPublisherOnly

      @Nullable public Boolean getClientApplicationsFromVerifiedPublisherOnly()
      Gets the clientApplicationsFromVerifiedPublisherOnly property value. Set to true to only match on client applications with a verified publisher. Set to false to match on any client app, even if it doesn't have a verified publisher. Default is false.
      Returns:
      a Boolean
    • getClientApplicationTenantIds

      @Nullable public List<String> getClientApplicationTenantIds()
      Gets the clientApplicationTenantIds property value. A list of Microsoft Entra tenant IDs in which the client application is registered, or a list with the single value all to match with client apps registered in any tenant. Default is the single value all.
      Returns:
      a List<String>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getPermissionClassification

      @Nullable public String getPermissionClassification()
      Gets the permissionClassification property value. The permission classification for the permission being granted, or all to match with any permission classification (including permissions that aren't classified). Default is all.
      Returns:
      a String
    • getPermissions

      @Nullable public List<String> getPermissions()
      Gets the permissions property value. The list of id values for the specific permissions to match with, or a list with the single value all to match with any permission. The id of delegated permissions can be found in the oauth2PermissionScopes property of the API's servicePrincipal object. The id of application permissions can be found in the appRoles property of the API's servicePrincipal object. The id of resource-specific application permissions can be found in the resourceSpecificApplicationPermissions property of the API's servicePrincipal object. Default is the single value all.
      Returns:
      a List<String>
    • getPermissionType

      @Nullable public PermissionType getPermissionType()
      Gets the permissionType property value. The permission type of the permission being granted. Possible values: application for application permissions (for example app roles), or delegated for delegated permissions. The value delegatedUserConsentable indicates delegated permissions that haven't been configured by the API publisher to require admin consentthis value may be used in built-in permission grant policies, but can't be used in custom permission grant policies. Required.
      Returns:
      a PermissionType
    • getResourceApplication

      @Nullable public String getResourceApplication()
      Gets the resourceApplication property value. The appId of the resource application (for example the API) for which a permission is being granted, or any to match with any resource application or API. Default is any.
      Returns:
      a String
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setClientApplicationIds

      public void setClientApplicationIds(@Nullable List<String> value)
      Sets the clientApplicationIds property value. A list of appId values for the client applications to match with, or a list with the single value all to match any client application. Default is the single value all.
      Parameters:
      value - Value to set for the clientApplicationIds property.
    • setClientApplicationPublisherIds

      public void setClientApplicationPublisherIds(@Nullable List<String> value)
      Sets the clientApplicationPublisherIds property value. A list of Microsoft Partner Network (MPN) IDs for verified publishers of the client application, or a list with the single value all to match with client apps from any publisher. Default is the single value all.
      Parameters:
      value - Value to set for the clientApplicationPublisherIds property.
    • setClientApplicationsFromVerifiedPublisherOnly

      public void setClientApplicationsFromVerifiedPublisherOnly(@Nullable Boolean value)
      Sets the clientApplicationsFromVerifiedPublisherOnly property value. Set to true to only match on client applications with a verified publisher. Set to false to match on any client app, even if it doesn't have a verified publisher. Default is false.
      Parameters:
      value - Value to set for the clientApplicationsFromVerifiedPublisherOnly property.
    • setClientApplicationTenantIds

      public void setClientApplicationTenantIds(@Nullable List<String> value)
      Sets the clientApplicationTenantIds property value. A list of Microsoft Entra tenant IDs in which the client application is registered, or a list with the single value all to match with client apps registered in any tenant. Default is the single value all.
      Parameters:
      value - Value to set for the clientApplicationTenantIds property.
    • setPermissionClassification

      public void setPermissionClassification(@Nullable String value)
      Sets the permissionClassification property value. The permission classification for the permission being granted, or all to match with any permission classification (including permissions that aren't classified). Default is all.
      Parameters:
      value - Value to set for the permissionClassification property.
    • setPermissions

      public void setPermissions(@Nullable List<String> value)
      Sets the permissions property value. The list of id values for the specific permissions to match with, or a list with the single value all to match with any permission. The id of delegated permissions can be found in the oauth2PermissionScopes property of the API's servicePrincipal object. The id of application permissions can be found in the appRoles property of the API's servicePrincipal object. The id of resource-specific application permissions can be found in the resourceSpecificApplicationPermissions property of the API's servicePrincipal object. Default is the single value all.
      Parameters:
      value - Value to set for the permissions property.
    • setPermissionType

      public void setPermissionType(@Nullable PermissionType value)
      Sets the permissionType property value. The permission type of the permission being granted. Possible values: application for application permissions (for example app roles), or delegated for delegated permissions. The value delegatedUserConsentable indicates delegated permissions that haven't been configured by the API publisher to require admin consentthis value may be used in built-in permission grant policies, but can't be used in custom permission grant policies. Required.
      Parameters:
      value - Value to set for the permissionType property.
    • setResourceApplication

      public void setResourceApplication(@Nullable String value)
      Sets the resourceApplication property value. The appId of the resource application (for example the API) for which a permission is being granted, or any to match with any resource application or API. Default is any.
      Parameters:
      value - Value to set for the resourceApplication property.