Class MicrosoftGraphActivityHistoryItem
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphActivityHistoryItem
-
public final class MicrosoftGraphActivityHistoryItem extends MicrosoftGraphEntity
activityHistoryItem.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphActivityHistoryItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegeractiveDurationSeconds()Get the activeDurationSeconds property: Optional.MicrosoftGraphUserActivityactivity()Get the activity property: userActivity.Map<String,Object>additionalProperties()Get the additionalProperties property: activityHistoryItem.OffsetDateTimecreatedDateTime()Get the createdDateTime property: Set by the server.OffsetDateTimeexpirationDateTime()Get the expirationDateTime property: Optional.OffsetDateTimelastActiveDateTime()Get the lastActiveDateTime property: Optional.OffsetDateTimelastModifiedDateTime()Get the lastModifiedDateTime property: Set by the server.OffsetDateTimestartedDateTime()Get the startedDateTime property: Required.MicrosoftGraphStatusstatus()Get the status property: The status property.StringuserTimezone()Get the userTimezone property: Optional.voidvalidate()Validates the instance.MicrosoftGraphActivityHistoryItemwithActiveDurationSeconds(Integer activeDurationSeconds)Set the activeDurationSeconds property: Optional.MicrosoftGraphActivityHistoryItemwithActivity(MicrosoftGraphUserActivity activity)Set the activity property: userActivity.MicrosoftGraphActivityHistoryItemwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: activityHistoryItem.MicrosoftGraphActivityHistoryItemwithCreatedDateTime(OffsetDateTime createdDateTime)Set the createdDateTime property: Set by the server.MicrosoftGraphActivityHistoryItemwithExpirationDateTime(OffsetDateTime expirationDateTime)Set the expirationDateTime property: Optional.MicrosoftGraphActivityHistoryItemwithId(String id)Set the id property: Read-only.MicrosoftGraphActivityHistoryItemwithLastActiveDateTime(OffsetDateTime lastActiveDateTime)Set the lastActiveDateTime property: Optional.MicrosoftGraphActivityHistoryItemwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Set the lastModifiedDateTime property: Set by the server.MicrosoftGraphActivityHistoryItemwithStartedDateTime(OffsetDateTime startedDateTime)Set the startedDateTime property: Required.MicrosoftGraphActivityHistoryItemwithStatus(MicrosoftGraphStatus status)Set the status property: The status property.MicrosoftGraphActivityHistoryItemwithUserTimezone(String userTimezone)Set the userTimezone property: Optional.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
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:
- the activeDurationSeconds value.
-
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:
activeDurationSeconds- the activeDurationSeconds value to set.- Returns:
- the MicrosoftGraphActivityHistoryItem 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 MicrosoftGraphActivityHistoryItem 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 MicrosoftGraphActivityHistoryItem object itself.
-
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:
- the expirationDateTime value.
-
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:
expirationDateTime- the expirationDateTime value to set.- Returns:
- the MicrosoftGraphActivityHistoryItem object itself.
-
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:
- the lastActiveDateTime value.
-
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:
lastActiveDateTime- the lastActiveDateTime value to set.- Returns:
- the MicrosoftGraphActivityHistoryItem 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 MicrosoftGraphActivityHistoryItem 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 MicrosoftGraphActivityHistoryItem object itself.
-
startedDateTime
public OffsetDateTime startedDateTime()
Get the startedDateTime property: Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history.- Returns:
- the startedDateTime value.
-
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:
startedDateTime- the startedDateTime value to set.- Returns:
- the MicrosoftGraphActivityHistoryItem object itself.
-
status
public MicrosoftGraphStatus status()
Get the status property: The status property.- Returns:
- the status value.
-
withStatus
public MicrosoftGraphActivityHistoryItem withStatus(MicrosoftGraphStatus status)
Set the status property: The status property.- Parameters:
status- the status value to set.- Returns:
- the MicrosoftGraphActivityHistoryItem 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 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:
userTimezone- the userTimezone value to set.- Returns:
- the MicrosoftGraphActivityHistoryItem object itself.
-
activity
public MicrosoftGraphUserActivity activity()
Get the activity property: userActivity.- Returns:
- the activity value.
-
withActivity
public MicrosoftGraphActivityHistoryItem withActivity(MicrosoftGraphUserActivity activity)
Set the activity property: userActivity.- Parameters:
activity- the activity value to set.- Returns:
- the MicrosoftGraphActivityHistoryItem object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: activityHistoryItem.- Overrides:
additionalPropertiesin classMicrosoftGraphEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphActivityHistoryItem withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: activityHistoryItem.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphEntity- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphActivityHistoryItem object itself.
-
withId
public MicrosoftGraphActivityHistoryItem withId(String id)
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphEntity- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-