Class DocumentSetVersion

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

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

    • DocumentSetVersion

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

    • createFromDiscriminatorValue

      @Nonnull public static DocumentSetVersion 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 DocumentSetVersion
    • getComment

      @Nullable public String getComment()
      Gets the comment property value. Comment about the captured version.
      Returns:
      a String
    • getCreatedBy

      @Nullable public IdentitySet getCreatedBy()
      Gets the createdBy property value. User who captured the version.
      Returns:
      a IdentitySet
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. Date and time when this version was created.
      Returns:
      a OffsetDateTime
    • 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 ListItemVersion
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getItems

      @Nullable public List<DocumentSetVersionItem> getItems()
      Gets the items property value. Items within the document set that are captured as part of this version.
      Returns:
      a List<DocumentSetVersionItem>
    • getShouldCaptureMinorVersion

      @Nullable public Boolean getShouldCaptureMinorVersion()
      Gets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions are captured. The default value is false.
      Returns:
      a Boolean
    • 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 ListItemVersion
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setComment

      public void setComment(@Nullable String value)
      Sets the comment property value. Comment about the captured version.
      Parameters:
      value - Value to set for the comment property.
    • setCreatedBy

      public void setCreatedBy(@Nullable IdentitySet value)
      Sets the createdBy property value. User who captured the version.
      Parameters:
      value - Value to set for the createdBy property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. Date and time when this version was created.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setItems

      public void setItems(@Nullable List<DocumentSetVersionItem> value)
      Sets the items property value. Items within the document set that are captured as part of this version.
      Parameters:
      value - Value to set for the items property.
    • setShouldCaptureMinorVersion

      public void setShouldCaptureMinorVersion(@Nullable Boolean value)
      Sets the shouldCaptureMinorVersion property value. If true, minor versions of items are also captured; otherwise, only major versions are captured. The default value is false.
      Parameters:
      value - Value to set for the shouldCaptureMinorVersion property.