Class WorksheetsRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.drives.item.items.item.workbook.worksheets.WorksheetsRequestBuilder

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

    • WorksheetsRequestBuilder

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

      public WorksheetsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new WorksheetsRequestBuilder 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

    • add

      @Nonnull public AddRequestBuilder add()
      Provides operations to call the add method.
      Returns:
      a AddRequestBuilder
    • count

      @Nonnull public CountRequestBuilder count()
      Provides operations to count the resources in the collection.
      Returns:
      a CountRequestBuilder
    • byWorkbookWorksheetId

      @Nonnull public WorkbookWorksheetItemRequestBuilder byWorkbookWorksheetId(@Nonnull String workbookWorksheetId)
      Provides operations to manage the worksheets property of the microsoft.graph.workbook entity.
      Parameters:
      workbookWorksheetId - The unique identifier of workbookWorksheet
      Returns:
      a WorkbookWorksheetItemRequestBuilder
    • get

      @Nullable public WorkbookWorksheetCollectionResponse get()
      Represents a collection of worksheets associated with the workbook. Read-only.
      Returns:
      a WorkbookWorksheetCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      Represents a collection of worksheets associated with the workbook. Read-only.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a WorkbookWorksheetCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public WorkbookWorksheet post(@Nonnull WorkbookWorksheet body)
      Create new navigation property to worksheets for drives
      Parameters:
      body - The request body
      Returns:
      a WorkbookWorksheet
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public WorkbookWorksheet post(@Nonnull WorkbookWorksheet body, @Nullable Consumer<WorksheetsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to worksheets for drives
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a WorkbookWorksheet
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Represents a collection of worksheets associated with the workbook. Read-only.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<WorksheetsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Represents a collection of worksheets associated with the workbook. Read-only.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull WorkbookWorksheet body)
      Create new navigation property to worksheets for drives
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull WorkbookWorksheet body, @Nullable Consumer<WorksheetsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to worksheets for drives
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public WorksheetsRequestBuilder 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 WorksheetsRequestBuilder