Class MicrosoftGraphUserActivity

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphUserActivity

public final class MicrosoftGraphUserActivity extends MicrosoftGraphEntity
userActivity.
  • Constructor Details

    • MicrosoftGraphUserActivity

      public MicrosoftGraphUserActivity()
      Creates an instance of MicrosoftGraphUserActivity class.
  • Method Details

    • activationUrl

      public String activationUrl()
      Get the activationUrl property: 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:
      the activationUrl value.
    • withActivationUrl

      public MicrosoftGraphUserActivity withActivationUrl(String activationUrl)
      Set the activationUrl property: 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:
      activationUrl - the activationUrl value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • activitySourceHost

      public String activitySourceHost()
      Get the activitySourceHost property: The activitySourceHost property.
      Returns:
      the activitySourceHost value.
    • withActivitySourceHost

      public MicrosoftGraphUserActivity withActivitySourceHost(String activitySourceHost)
      Set the activitySourceHost property: The activitySourceHost property.
      Parameters:
      activitySourceHost - the activitySourceHost value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • appActivityId

      public String appActivityId()
      Get the appActivityId property: Required. The unique activity ID in the context of the app - supplied by caller and immutable thereafter.
      Returns:
      the appActivityId value.
    • withAppActivityId

      public MicrosoftGraphUserActivity withAppActivityId(String appActivityId)
      Set the appActivityId property: Required. The unique activity ID in the context of the app - supplied by caller and immutable thereafter.
      Parameters:
      appActivityId - the appActivityId value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • appDisplayName

      public String appDisplayName()
      Get the appDisplayName property: Optional. Short text description of the app used to generate the activity for use in cases when the app is not installed on the user’s local device.
      Returns:
      the appDisplayName value.
    • withAppDisplayName

      public MicrosoftGraphUserActivity withAppDisplayName(String appDisplayName)
      Set the appDisplayName property: Optional. Short text description of the app used to generate the activity for use in cases when the app is not installed on the user’s local device.
      Parameters:
      appDisplayName - the appDisplayName value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • contentInfo

      public Map<String,Object> contentInfo()
      Get the contentInfo property: Json.
      Returns:
      the contentInfo value.
    • withContentInfo

      public MicrosoftGraphUserActivity withContentInfo(Map<String,Object> contentInfo)
      Set the contentInfo property: Json.
      Parameters:
      contentInfo - the contentInfo value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • contentUrl

      public String contentUrl()
      Get the contentUrl property: 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:
      the contentUrl value.
    • withContentUrl

      public MicrosoftGraphUserActivity withContentUrl(String contentUrl)
      Set the contentUrl property: 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:
      contentUrl - the contentUrl value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • createdDateTime

      public OffsetDateTime createdDateTime()
      Get the createdDateTime property: Set by the server. DateTime in UTC when the object was created on the server.
      Returns:
      the createdDateTime value.
    • withCreatedDateTime

      public MicrosoftGraphUserActivity withCreatedDateTime(OffsetDateTime createdDateTime)
      Set the createdDateTime property: Set by the server. DateTime in UTC when the object was created on the server.
      Parameters:
      createdDateTime - the createdDateTime value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • expirationDateTime

      public OffsetDateTime expirationDateTime()
      Get the expirationDateTime property: Set by the server. DateTime in UTC when the object expired on the server.
      Returns:
      the expirationDateTime value.
    • withExpirationDateTime

      public MicrosoftGraphUserActivity withExpirationDateTime(OffsetDateTime expirationDateTime)
      Set the expirationDateTime property: Set by the server. DateTime in UTC when the object expired on the server.
      Parameters:
      expirationDateTime - the expirationDateTime value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • fallbackUrl

      public String fallbackUrl()
      Get the fallbackUrl property: Optional. URL used to launch the activity in a web-based app, if available.
      Returns:
      the fallbackUrl value.
    • withFallbackUrl

      public MicrosoftGraphUserActivity withFallbackUrl(String fallbackUrl)
      Set the fallbackUrl property: Optional. URL used to launch the activity in a web-based app, if available.
      Parameters:
      fallbackUrl - the fallbackUrl value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • lastModifiedDateTime

      public OffsetDateTime lastModifiedDateTime()
      Get the lastModifiedDateTime property: Set by the server. DateTime in UTC when the object was modified on the server.
      Returns:
      the lastModifiedDateTime value.
    • withLastModifiedDateTime

      public MicrosoftGraphUserActivity withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
      Set the lastModifiedDateTime property: Set by the server. DateTime in UTC when the object was modified on the server.
      Parameters:
      lastModifiedDateTime - the lastModifiedDateTime value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • status

      public MicrosoftGraphStatus status()
      Get the status property: status.
      Returns:
      the status value.
    • withStatus

      Set the status property: status.
      Parameters:
      status - the status value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • userTimezone

      public String userTimezone()
      Get the userTimezone property: 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:
      the userTimezone value.
    • withUserTimezone

      public MicrosoftGraphUserActivity withUserTimezone(String userTimezone)
      Set the userTimezone property: 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:
      userTimezone - the userTimezone value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • visualElements

      public MicrosoftGraphVisualInfo visualElements()
      Get the visualElements property: visualInfo.
      Returns:
      the visualElements value.
    • withVisualElements

      public MicrosoftGraphUserActivity withVisualElements(MicrosoftGraphVisualInfo visualElements)
      Set the visualElements property: visualInfo.
      Parameters:
      visualElements - the visualElements value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • historyItems

      public List<MicrosoftGraphActivityHistoryItem> historyItems()
      Get the historyItems property: Optional. NavigationProperty/Containment; navigation property to the activity's historyItems.
      Returns:
      the historyItems value.
    • withHistoryItems

      public MicrosoftGraphUserActivity withHistoryItems(List<MicrosoftGraphActivityHistoryItem> historyItems)
      Set the historyItems property: Optional. NavigationProperty/Containment; navigation property to the activity's historyItems.
      Parameters:
      historyItems - the historyItems value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: userActivity.
      Overrides:
      additionalProperties in class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphUserActivity withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: userActivity.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphUserActivity object itself.
    • withId

      public MicrosoftGraphUserActivity withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.