Class AppConsentRequest

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

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

    • AppConsentRequest

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

    • createFromDiscriminatorValue

      @Nonnull public static AppConsentRequest 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 AppConsentRequest
    • getAppDisplayName

      @Nullable public String getAppDisplayName()
      Gets the appDisplayName property value. The display name of the app for which consent is requested. Required. Supports $filter (eq only) and $orderby.
      Returns:
      a String
    • getAppId

      @Nullable public String getAppId()
      Gets the appId property value. The identifier of the application. Required. Supports $filter (eq only) and $orderby.
      Returns:
      a 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>>
    • getPendingScopes

      @Nullable public List<AppConsentRequestScope> getPendingScopes()
      Gets the pendingScopes property value. A list of pending scopes waiting for approval. Required.
      Returns:
      a List<AppConsentRequestScope>
    • getUserConsentRequests

      @Nullable public List<UserConsentRequest> getUserConsentRequests()
      Gets the userConsentRequests property value. A list of pending user consent requests. Supports $filter (eq).
      Returns:
      a List<UserConsentRequest>
    • 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
    • setAppDisplayName

      public void setAppDisplayName(@Nullable String value)
      Sets the appDisplayName property value. The display name of the app for which consent is requested. Required. Supports $filter (eq only) and $orderby.
      Parameters:
      value - Value to set for the appDisplayName property.
    • setAppId

      public void setAppId(@Nullable String value)
      Sets the appId property value. The identifier of the application. Required. Supports $filter (eq only) and $orderby.
      Parameters:
      value - Value to set for the appId property.
    • setPendingScopes

      public void setPendingScopes(@Nullable List<AppConsentRequestScope> value)
      Sets the pendingScopes property value. A list of pending scopes waiting for approval. Required.
      Parameters:
      value - Value to set for the pendingScopes property.
    • setUserConsentRequests

      public void setUserConsentRequests(@Nullable List<UserConsentRequest> value)
      Sets the userConsentRequests property value. A list of pending user consent requests. Supports $filter (eq).
      Parameters:
      value - Value to set for the userConsentRequests property.