你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphUserActivity Class

public final class MicrosoftGraphUserActivity
extends MicrosoftGraphEntity

userActivity.

Constructor Summary

Constructor Description
MicrosoftGraphUserActivity()

Creates an instance of MicrosoftGraphUserActivity class.

Method Summary

Modifier and Type Method and Description
String activationUrl()

Get the activationUrl property: Required.

String activitySourceHost()

Get the activitySourceHost property: The activitySourceHost property.

Map<String,Object> additionalProperties()

Get the additionalProperties property: userActivity.

String appActivityId()

Get the appActivityId property: Required.

String appDisplayName()

Get the appDisplayName property: Optional.

Map<String,Object> contentInfo()

Get the contentInfo property: Json.

String contentUrl()

Get the contentUrl property: Optional.

OffsetDateTime createdDateTime()

Get the createdDateTime property: Set by the server.

OffsetDateTime expirationDateTime()

Get the expirationDateTime property: Set by the server.

String fallbackUrl()

Get the fallbackUrl property: Optional.

static MicrosoftGraphUserActivity fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphUserActivity from the JsonReader.

List<MicrosoftGraphActivityHistoryItem> historyItems()

Get the historyItems property: Optional.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: Set by the server.

MicrosoftGraphStatus status()

Get the status property: status.

JsonWriter toJson(JsonWriter jsonWriter)
String userTimezone()

Get the userTimezone property: Optional.

void validate()

Validates the instance.

MicrosoftGraphVisualInfo visualElements()

Get the visualElements property: visualInfo.

MicrosoftGraphUserActivity withActivationUrl(String activationUrl)

Set the activationUrl property: Required.

MicrosoftGraphUserActivity withActivitySourceHost(String activitySourceHost)

Set the activitySourceHost property: The activitySourceHost property.

MicrosoftGraphUserActivity withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: userActivity.

MicrosoftGraphUserActivity withAppActivityId(String appActivityId)

Set the appActivityId property: Required.

MicrosoftGraphUserActivity withAppDisplayName(String appDisplayName)

Set the appDisplayName property: Optional.

MicrosoftGraphUserActivity withContentInfo(Map<String,Object> contentInfo)

Set the contentInfo property: Json.

MicrosoftGraphUserActivity withContentUrl(String contentUrl)

Set the contentUrl property: Optional.

MicrosoftGraphUserActivity withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: Set by the server.

MicrosoftGraphUserActivity withExpirationDateTime(OffsetDateTime expirationDateTime)

Set the expirationDateTime property: Set by the server.

MicrosoftGraphUserActivity withFallbackUrl(String fallbackUrl)

Set the fallbackUrl property: Optional.

MicrosoftGraphUserActivity withHistoryItems(List<MicrosoftGraphActivityHistoryItem> historyItems)

Set the historyItems property: Optional.

MicrosoftGraphUserActivity withId(String id)

Set the id property: Read-only.

MicrosoftGraphUserActivity withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: Set by the server.

MicrosoftGraphUserActivity withStatus(MicrosoftGraphStatus status)

Set the status property: status.

MicrosoftGraphUserActivity withUserTimezone(String userTimezone)

Set the userTimezone property: Optional.

MicrosoftGraphUserActivity withVisualElements(MicrosoftGraphVisualInfo visualElements)

Set the visualElements property: visualInfo.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

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.

activitySourceHost

public String activitySourceHost()

Get the activitySourceHost property: The activitySourceHost property.

Returns:

the activitySourceHost value.

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: userActivity.

Overrides:

MicrosoftGraphUserActivity.additionalProperties()

Returns:

the additionalProperties value.

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.

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\u2019s local device.

Returns:

the appDisplayName value.

contentInfo

public Map contentInfo()

Get the contentInfo property: Json.

Returns:

the contentInfo value.

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.

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.

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.

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.

fromJson

public static MicrosoftGraphUserActivity fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphUserActivity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphUserActivity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphUserActivity.

historyItems

public List historyItems()

Get the historyItems property: Optional. NavigationProperty/Containment; navigation property to the activity's historyItems.

Returns:

the historyItems value.

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.

status

public MicrosoftGraphStatus status()

Get the status property: status.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphUserActivity.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphUserActivity.validate()

visualElements

public MicrosoftGraphVisualInfo visualElements()

Get the visualElements property: visualInfo.

Returns:

the visualElements 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.

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.

withAdditionalProperties

public MicrosoftGraphUserActivity withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: userActivity.

Overrides:

MicrosoftGraphUserActivity.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphUserActivity object itself.

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.

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\u2019s local device.

Parameters:

appDisplayName - the appDisplayName value to set.

Returns:

the MicrosoftGraphUserActivity object itself.

withContentInfo

public MicrosoftGraphUserActivity withContentInfo(Map contentInfo)

Set the contentInfo property: Json.

Parameters:

contentInfo - the contentInfo value to set.

Returns:

the MicrosoftGraphUserActivity object itself.

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.

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.

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.

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.

withHistoryItems

public MicrosoftGraphUserActivity withHistoryItems(List 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.

withId

public MicrosoftGraphUserActivity withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphUserActivity.withId(String id)

Parameters:

id

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.

withStatus

public MicrosoftGraphUserActivity withStatus(MicrosoftGraphStatus status)

Set the status property: status.

Parameters:

status - the status value to set.

Returns:

the MicrosoftGraphUserActivity object itself.

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.

withVisualElements

public MicrosoftGraphUserActivity withVisualElements(MicrosoftGraphVisualInfo visualElements)

Set the visualElements property: visualInfo.

Parameters:

visualElements - the visualElements value to set.

Returns:

the MicrosoftGraphUserActivity object itself.

Applies to