你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MicrosoftGraphActivityHistoryItem Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphActivityHistoryItem
- com.
- com.
public final class MicrosoftGraphActivityHistoryItem
extends MicrosoftGraphEntity
activityHistoryItem.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphActivityHistoryItem() |
Creates an instance of Microsoft |
Method Summary
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphActivityHistoryItem
public MicrosoftGraphActivityHistoryItem()
Creates an instance of MicrosoftGraphActivityHistoryItem class.
Method Details
activeDurationSeconds
public Integer activeDurationSeconds()
Get the activeDurationSeconds property: Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.
Returns:
activity
public MicrosoftGraphUserActivity activity()
Get the activity property: userActivity.
Returns:
additionalProperties
public Map
Get the additionalProperties property: activityHistoryItem.
Overrides:
MicrosoftGraphActivityHistoryItem.additionalProperties()Returns:
createdDateTime
public OffsetDateTime createdDateTime()
Get the createdDateTime property: Set by the server. DateTime in UTC when the object was created on the server.
Returns:
expirationDateTime
public OffsetDateTime expirationDateTime()
Get the expirationDateTime property: Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client.
Returns:
fromJson
public static MicrosoftGraphActivityHistoryItem fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphActivityHistoryItem from the JsonReader.
Parameters:
Returns:
Throws:
lastActiveDateTime
public OffsetDateTime lastActiveDateTime()
Get the lastActiveDateTime property: Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing.
Returns:
lastModifiedDateTime
public OffsetDateTime lastModifiedDateTime()
Get the lastModifiedDateTime property: Set by the server. DateTime in UTC when the object was modified on the server.
Returns:
startedDateTime
public OffsetDateTime startedDateTime()
Get the startedDateTime property: Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history.
Returns:
status
public MicrosoftGraphStatus status()
Get the status property: status.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphActivityHistoryItem.toJson(JsonWriter jsonWriter)Parameters:
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:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphActivityHistoryItem.validate()withActiveDurationSeconds
public MicrosoftGraphActivityHistoryItem withActiveDurationSeconds(Integer activeDurationSeconds)
Set the activeDurationSeconds property: Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.
Parameters:
Returns:
withActivity
public MicrosoftGraphActivityHistoryItem withActivity(MicrosoftGraphUserActivity activity)
Set the activity property: userActivity.
Parameters:
Returns:
withAdditionalProperties
public MicrosoftGraphActivityHistoryItem withAdditionalProperties(Map
Set the additionalProperties property: activityHistoryItem.
Overrides:
MicrosoftGraphActivityHistoryItem.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withCreatedDateTime
public MicrosoftGraphActivityHistoryItem withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: Set by the server. DateTime in UTC when the object was created on the server.
Parameters:
Returns:
withExpirationDateTime
public MicrosoftGraphActivityHistoryItem withExpirationDateTime(OffsetDateTime expirationDateTime)
Set the expirationDateTime property: Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client.
Parameters:
Returns:
withId
public MicrosoftGraphActivityHistoryItem withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphActivityHistoryItem.withId(String id)Parameters:
withLastActiveDateTime
public MicrosoftGraphActivityHistoryItem withLastActiveDateTime(OffsetDateTime lastActiveDateTime)
Set the lastActiveDateTime property: Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing.
Parameters:
Returns:
withLastModifiedDateTime
public MicrosoftGraphActivityHistoryItem withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the lastModifiedDateTime property: Set by the server. DateTime in UTC when the object was modified on the server.
Parameters:
Returns:
withStartedDateTime
public MicrosoftGraphActivityHistoryItem withStartedDateTime(OffsetDateTime startedDateTime)
Set the startedDateTime property: Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history.
Parameters:
Returns:
withStatus
public MicrosoftGraphActivityHistoryItem withStatus(MicrosoftGraphStatus status)
Set the status property: status.
Parameters:
Returns:
withUserTimezone
public MicrosoftGraphActivityHistoryItem 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:
Returns: