Class LegalHold

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.ediscovery.models.LegalHold
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class LegalHold extends Entity implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Legal Hold.
  • Field Details

    • contentQuery

      @SerializedName(value="contentQuery", alternate="ContentQuery") @Expose @Nullable public String contentQuery
      The Content Query. KQL query that specifies content to be held in the specified locations. To learn more, see Keyword queries and search conditions for Content Search and eDiscovery. To hold all content in the specified locations, leave contentQuery blank.
    • createdBy

      @SerializedName(value="createdBy", alternate="CreatedBy") @Expose @Nullable public IdentitySet createdBy
      The Created By. The user who created the legal hold.
    • createdDateTime

      @SerializedName(value="createdDateTime", alternate="CreatedDateTime") @Expose @Nullable public OffsetDateTime createdDateTime
      The Created Date Time. The date and time the legal hold was created.
    • description

      @SerializedName(value="description", alternate="Description") @Expose @Nullable public String description
      The Description. The legal hold description.
    • displayName

      @SerializedName(value="displayName", alternate="DisplayName") @Expose @Nullable public String displayName
      The Display Name. The display name of the legal hold.
    • errors

      @SerializedName(value="errors", alternate="Errors") @Expose @Nullable public List<String> errors
      The Errors. Lists any errors that happened while placing the hold.
    • isEnabled

      @SerializedName(value="isEnabled", alternate="IsEnabled") @Expose @Nullable public Boolean isEnabled
      The Is Enabled. Indicates whether the hold is enabled and actively holding content.
    • lastModifiedBy

      @SerializedName(value="lastModifiedBy", alternate="LastModifiedBy") @Expose @Nullable public IdentitySet lastModifiedBy
      The Last Modified By. the user who last modified the legal hold.
    • lastModifiedDateTime

      @SerializedName(value="lastModifiedDateTime", alternate="LastModifiedDateTime") @Expose @Nullable public OffsetDateTime lastModifiedDateTime
      The Last Modified Date Time. The date and time the legal hold was last modified.
    • status

      @SerializedName(value="status", alternate="Status") @Expose @Nullable public LegalHoldStatus status
      The Status. The status of the legal hold. Possible values are: Pending, Error, Success, UnknownFutureValue.
    • siteSources

      @SerializedName(value="siteSources", alternate="SiteSources") @Expose @Nullable public SiteSourceCollectionPage siteSources
      The Site Sources. Data source entity for SharePoint sites associated with the legal hold.
    • userSources

      @SerializedName(value="userSources", alternate="UserSources") @Expose @Nullable public UserSourceCollectionPage userSources
      The User Sources. Data source entity for a the legal hold. This is the container for a mailbox and OneDrive for Business site.
  • Constructor Details

    • LegalHold

      public LegalHold()
  • Method Details

    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Overrides:
      setRawObject in class Entity
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to