Class DirectoryAudit

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

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

    • DirectoryAudit

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

    • createFromDiscriminatorValue

      @Nonnull public static DirectoryAudit 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 DirectoryAudit
    • getActivityDateTime

      @Nullable public OffsetDateTime getActivityDateTime()
      Gets the activityDateTime property value. Indicates the date and time the activity was performed. The Timestamp type is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ge, le) and $orderby.
      Returns:
      a OffsetDateTime
    • getActivityDisplayName

      @Nullable public String getActivityDisplayName()
      Gets the activityDisplayName property value. Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Microsoft Entra audit log categories and activities. Supports $filter (eq, startswith).
      Returns:
      a String
    • getAdditionalDetails

      @Nullable public List<KeyValue> getAdditionalDetails()
      Gets the additionalDetails property value. Indicates additional details on the activity.
      Returns:
      a List<KeyValue>
    • getCategory

      @Nullable public String getCategory()
      Gets the category property value. Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Microsoft Entra audit log categories and activities.
      Returns:
      a String
    • getCorrelationId

      @Nullable public String getCorrelationId()
      Gets the correlationId property value. Indicates a unique ID that helps correlate activities that span across various services. Can be used to trace logs across services. Supports $filter (eq).
      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>>
    • getInitiatedBy

      @Nullable public AuditActivityInitiator getInitiatedBy()
      Gets the initiatedBy property value. The initiatedBy property
      Returns:
      a AuditActivityInitiator
    • getLoggedByService

      @Nullable public String getLoggedByService()
      Gets the loggedByService property value. Indicates information on which service initiated the activity (For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft Identity Manager, Privileged Identity Management. Supports $filter (eq).
      Returns:
      a String
    • getOperationType

      @Nullable public String getOperationType()
      Gets the operationType property value. Indicates the type of operation that was performed. The possible values include but are not limited to the following: Add, Assign, Update, Unassign, and Delete.
      Returns:
      a String
    • getResult

      @Nullable public OperationResult getResult()
      Gets the result property value. Indicates the result of the activity. Possible values are: success, failure, timeout, unknownFutureValue.
      Returns:
      a OperationResult
    • getResultReason

      @Nullable public String getResultReason()
      Gets the resultReason property value. Indicates the reason for failure if the result is failure or timeout.
      Returns:
      a String
    • getTargetResources

      @Nullable public List<TargetResource> getTargetResources()
      Gets the targetResources property value. Indicates information on which resource was changed due to the activity. Target Resource Type can be User, Device, Directory, App, Role, Group, Policy or Other. Supports $filter (eq) for id and displayName; and $filter (startswith) for displayName.
      Returns:
      a List<TargetResource>
    • 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
    • setActivityDateTime

      public void setActivityDateTime(@Nullable OffsetDateTime value)
      Sets the activityDateTime property value. Indicates the date and time the activity was performed. The Timestamp type is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ge, le) and $orderby.
      Parameters:
      value - Value to set for the activityDateTime property.
    • setActivityDisplayName

      public void setActivityDisplayName(@Nullable String value)
      Sets the activityDisplayName property value. Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Microsoft Entra audit log categories and activities. Supports $filter (eq, startswith).
      Parameters:
      value - Value to set for the activityDisplayName property.
    • setAdditionalDetails

      public void setAdditionalDetails(@Nullable List<KeyValue> value)
      Sets the additionalDetails property value. Indicates additional details on the activity.
      Parameters:
      value - Value to set for the additionalDetails property.
    • setCategory

      public void setCategory(@Nullable String value)
      Sets the category property value. Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Microsoft Entra audit log categories and activities.
      Parameters:
      value - Value to set for the category property.
    • setCorrelationId

      public void setCorrelationId(@Nullable String value)
      Sets the correlationId property value. Indicates a unique ID that helps correlate activities that span across various services. Can be used to trace logs across services. Supports $filter (eq).
      Parameters:
      value - Value to set for the correlationId property.
    • setInitiatedBy

      public void setInitiatedBy(@Nullable AuditActivityInitiator value)
      Sets the initiatedBy property value. The initiatedBy property
      Parameters:
      value - Value to set for the initiatedBy property.
    • setLoggedByService

      public void setLoggedByService(@Nullable String value)
      Sets the loggedByService property value. Indicates information on which service initiated the activity (For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft Identity Manager, Privileged Identity Management. Supports $filter (eq).
      Parameters:
      value - Value to set for the loggedByService property.
    • setOperationType

      public void setOperationType(@Nullable String value)
      Sets the operationType property value. Indicates the type of operation that was performed. The possible values include but are not limited to the following: Add, Assign, Update, Unassign, and Delete.
      Parameters:
      value - Value to set for the operationType property.
    • setResult

      public void setResult(@Nullable OperationResult value)
      Sets the result property value. Indicates the result of the activity. Possible values are: success, failure, timeout, unknownFutureValue.
      Parameters:
      value - Value to set for the result property.
    • setResultReason

      public void setResultReason(@Nullable String value)
      Sets the resultReason property value. Indicates the reason for failure if the result is failure or timeout.
      Parameters:
      value - Value to set for the resultReason property.
    • setTargetResources

      public void setTargetResources(@Nullable List<TargetResource> value)
      Sets the targetResources property value. Indicates information on which resource was changed due to the activity. Target Resource Type can be User, Device, Directory, App, Role, Group, Policy or Other. Supports $filter (eq) for id and displayName; and $filter (startswith) for displayName.
      Parameters:
      value - Value to set for the targetResources property.