Class DocumentSetVersionItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.sites.item.lists.item.items.item.documentsetversions.item.DocumentSetVersionItemRequestBuilder

@Generated("com.microsoft.kiota") public class DocumentSetVersionItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity.
  • Constructor Details

    • DocumentSetVersionItemRequestBuilder

      public DocumentSetVersionItemRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new DocumentSetVersionItemRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • DocumentSetVersionItemRequestBuilder

      public DocumentSetVersionItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new DocumentSetVersionItemRequestBuilder and sets the default values.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      requestAdapter - The request adapter to use to execute the requests.
  • Method Details

    • fields

      @Nonnull public FieldsRequestBuilder fields()
      Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity.
      Returns:
      a FieldsRequestBuilder
    • restore

      @Nonnull public RestoreRequestBuilder restore()
      Provides operations to call the restore method.
      Returns:
      a RestoreRequestBuilder
    • delete

      public void delete()
      Delete a version of a document set in a list.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<DocumentSetVersionItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a version of a document set in a list.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public DocumentSetVersion get()
      Read the properties and relationships of a documentSetVersion object.
      Returns:
      a DocumentSetVersion
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public DocumentSetVersion get(@Nullable Consumer<DocumentSetVersionItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Read the properties and relationships of a documentSetVersion object.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a DocumentSetVersion
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public DocumentSetVersion patch(@Nonnull DocumentSetVersion body)
      Update the navigation property documentSetVersions in sites
      Parameters:
      body - The request body
      Returns:
      a DocumentSetVersion
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public DocumentSetVersion patch(@Nonnull DocumentSetVersion body, @Nullable Consumer<DocumentSetVersionItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the navigation property documentSetVersions in sites
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a DocumentSetVersion
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete a version of a document set in a list.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<DocumentSetVersionItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a version of a document set in a list.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Read the properties and relationships of a documentSetVersion object.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<DocumentSetVersionItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Read the properties and relationships of a documentSetVersion object.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull DocumentSetVersion body)
      Update the navigation property documentSetVersions in sites
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull DocumentSetVersion body, @Nullable Consumer<DocumentSetVersionItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the navigation property documentSetVersions in sites
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public DocumentSetVersionItemRequestBuilder withUrl(@Nonnull String rawUrl)
      Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      Returns:
      a DocumentSetVersionItemRequestBuilder