Class BaseReferenceRequest<T>

java.lang.Object
com.microsoft.graph.http.BaseRequest<T>
com.microsoft.graph.http.BaseReferenceRequest<T>
Type Parameters:
T - the response class
All Implemented Interfaces:
IHttpRequest

public abstract class BaseReferenceRequest<T> extends BaseRequest<T>
An HTTP request.
  • Constructor Details

    • BaseReferenceRequest

      public BaseReferenceRequest(@Nonnull String requestUrl, @Nonnull IBaseClient<?> client, @Nullable List<? extends Option> requestOptions, @Nonnull Class<T> entityType)
      The request for reference
      Parameters:
      requestUrl - the request URL
      client - the service client
      requestOptions - the options for this request
      entityType - the class for the entity
  • Method Details

    • deleteAsync

      @Nonnull public CompletableFuture<T> deleteAsync()
      Deletes the entity and invokes the callback
      Returns:
      a future with the result
    • delete

      @Nullable public T delete() throws ClientException
      Deletes the entity
      Returns:
      the result from the API response, if any
      Throws:
      ClientException