Class ContainersRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.storage.filestorage.containers.ContainersRequestBuilder

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

    • ContainersRequestBuilder

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

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

    • count

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

      @Nonnull public FileStorageContainerItemRequestBuilder byFileStorageContainerId(@Nonnull String fileStorageContainerId)
      Provides operations to manage the containers property of the microsoft.graph.fileStorage entity.
      Parameters:
      fileStorageContainerId - The unique identifier of fileStorageContainer
      Returns:
      a FileStorageContainerItemRequestBuilder
    • get

      Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required.
      Returns:
      a FileStorageContainerCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a FileStorageContainerCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public FileStorageContainer post(@Nonnull FileStorageContainer body)
      Create a new fileStorageContainer object. The container type identified by containerTypeId must be registered in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer.
      Parameters:
      body - The request body
      Returns:
      a FileStorageContainer
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public FileStorageContainer post(@Nonnull FileStorageContainer body, @Nullable Consumer<ContainersRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create a new fileStorageContainer object. The container type identified by containerTypeId must be registered in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a FileStorageContainer
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ContainersRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required.
      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 FileStorageContainer body)
      Create a new fileStorageContainer object. The container type identified by containerTypeId must be registered in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull FileStorageContainer body, @Nullable Consumer<ContainersRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create a new fileStorageContainer object. The container type identified by containerTypeId must be registered in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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