Class UserActivity

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

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

    • UserActivity

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

    • createFromDiscriminatorValue

      @Nonnull public static UserActivity 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 UserActivity
    • getActivationUrl

      @Nullable public String getActivationUrl()
      Gets the activationUrl property value. Required. URL used to launch the activity in the best native experience represented by the appId. Might launch a web-based app if no native app exists.
      Returns:
      a String
    • getActivitySourceHost

      @Nullable public String getActivitySourceHost()
      Gets the activitySourceHost property value. Required. URL for the domain representing the cross-platform identity mapping for the app. Mapping is stored either as a JSON file hosted on the domain or configurable via Windows Dev Center. The JSON file is named cross-platform-app-identifiers and is hosted at root of your HTTPS domain, either at the top level domain or include a sub domain. For example: https://contoso.com or https://myapp.contoso.com but NOT https://myapp.contoso.com/somepath. You must have a unique file and domain (or sub domain) per cross-platform app identity. For example, a separate file and domain is needed for Word vs. PowerPoint.
      Returns:
      a String
    • getAppActivityId

      @Nullable public String getAppActivityId()
      Gets the appActivityId property value. Required. The unique activity ID in the context of the app - supplied by caller and immutable thereafter.
      Returns:
      a String
    • getAppDisplayName

      @Nullable public String getAppDisplayName()
      Gets the appDisplayName property value. Optional. Short text description of the app used to generate the activity for use in cases when the app is not installed on the users local device.
      Returns:
      a String
    • getContentInfo

      @Nullable public com.microsoft.kiota.serialization.UntypedNode getContentInfo()
      Gets the contentInfo property value. Optional. A custom piece of data - JSON-LD extensible description of content according to schema.org syntax.
      Returns:
      a UntypedNode
    • getContentUrl

      @Nullable public String getContentUrl()
      Gets the contentUrl property value. Optional. Used in the event the content can be rendered outside of a native or web-based app experience (for example, a pointer to an item in an RSS feed).
      Returns:
      a String
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. Set by the server. DateTime in UTC when the object was created on the server.
      Returns:
      a OffsetDateTime
    • getExpirationDateTime

      @Nullable public OffsetDateTime getExpirationDateTime()
      Gets the expirationDateTime property value. Set by the server. DateTime in UTC when the object expired on the server.
      Returns:
      a OffsetDateTime
    • getFallbackUrl

      @Nullable public String getFallbackUrl()
      Gets the fallbackUrl property value. Optional. URL used to launch the activity in a web-based app, if available.
      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>>
    • getHistoryItems

      @Nullable public List<ActivityHistoryItem> getHistoryItems()
      Gets the historyItems property value. Optional. NavigationProperty/Containment; navigation property to the activity's historyItems.
      Returns:
      a List<ActivityHistoryItem>
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. Set by the server. DateTime in UTC when the object was modified on the server.
      Returns:
      a OffsetDateTime
    • getStatus

      @Nullable public Status getStatus()
      Gets the status property value. Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.
      Returns:
      a Status
    • getUserTimezone

      @Nullable public String getUserTimezone()
      Gets the userTimezone property value. Optional. The timezone in which the user's device used to generate the activity was located at activity creation time; values supplied as Olson IDs in order to support cross-platform representation.
      Returns:
      a String
    • getVisualElements

      @Nullable public VisualInfo getVisualElements()
      Gets the visualElements property value. The visualElements property
      Returns:
      a VisualInfo
    • 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
    • setActivationUrl

      public void setActivationUrl(@Nullable String value)
      Sets the activationUrl property value. Required. URL used to launch the activity in the best native experience represented by the appId. Might launch a web-based app if no native app exists.
      Parameters:
      value - Value to set for the activationUrl property.
    • setActivitySourceHost

      public void setActivitySourceHost(@Nullable String value)
      Sets the activitySourceHost property value. Required. URL for the domain representing the cross-platform identity mapping for the app. Mapping is stored either as a JSON file hosted on the domain or configurable via Windows Dev Center. The JSON file is named cross-platform-app-identifiers and is hosted at root of your HTTPS domain, either at the top level domain or include a sub domain. For example: https://contoso.com or https://myapp.contoso.com but NOT https://myapp.contoso.com/somepath. You must have a unique file and domain (or sub domain) per cross-platform app identity. For example, a separate file and domain is needed for Word vs. PowerPoint.
      Parameters:
      value - Value to set for the activitySourceHost property.
    • setAppActivityId

      public void setAppActivityId(@Nullable String value)
      Sets the appActivityId property value. Required. The unique activity ID in the context of the app - supplied by caller and immutable thereafter.
      Parameters:
      value - Value to set for the appActivityId property.
    • setAppDisplayName

      public void setAppDisplayName(@Nullable String value)
      Sets the appDisplayName property value. Optional. Short text description of the app used to generate the activity for use in cases when the app is not installed on the users local device.
      Parameters:
      value - Value to set for the appDisplayName property.
    • setContentInfo

      public void setContentInfo(@Nullable com.microsoft.kiota.serialization.UntypedNode value)
      Sets the contentInfo property value. Optional. A custom piece of data - JSON-LD extensible description of content according to schema.org syntax.
      Parameters:
      value - Value to set for the contentInfo property.
    • setContentUrl

      public void setContentUrl(@Nullable String value)
      Sets the contentUrl property value. Optional. Used in the event the content can be rendered outside of a native or web-based app experience (for example, a pointer to an item in an RSS feed).
      Parameters:
      value - Value to set for the contentUrl property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. Set by the server. DateTime in UTC when the object was created on the server.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setExpirationDateTime

      public void setExpirationDateTime(@Nullable OffsetDateTime value)
      Sets the expirationDateTime property value. Set by the server. DateTime in UTC when the object expired on the server.
      Parameters:
      value - Value to set for the expirationDateTime property.
    • setFallbackUrl

      public void setFallbackUrl(@Nullable String value)
      Sets the fallbackUrl property value. Optional. URL used to launch the activity in a web-based app, if available.
      Parameters:
      value - Value to set for the fallbackUrl property.
    • setHistoryItems

      public void setHistoryItems(@Nullable List<ActivityHistoryItem> value)
      Sets the historyItems property value. Optional. NavigationProperty/Containment; navigation property to the activity's historyItems.
      Parameters:
      value - Value to set for the historyItems property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the lastModifiedDateTime property value. Set by the server. DateTime in UTC when the object was modified on the server.
      Parameters:
      value - Value to set for the lastModifiedDateTime property.
    • setStatus

      public void setStatus(@Nullable Status value)
      Sets the status property value. Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.
      Parameters:
      value - Value to set for the status property.
    • setUserTimezone

      public void setUserTimezone(@Nullable String value)
      Sets the userTimezone property value. Optional. The timezone in which the user's device used to generate the activity was located at activity creation time; values supplied as Olson IDs in order to support cross-platform representation.
      Parameters:
      value - Value to set for the userTimezone property.
    • setVisualElements

      public void setVisualElements(@Nullable VisualInfo value)
      Sets the visualElements property value. The visualElements property
      Parameters:
      value - Value to set for the visualElements property.