Class PrimitiveRequestBuilder<T>

java.lang.Object
com.microsoft.graph.http.BaseRequestBuilder<T>
com.microsoft.graph.http.PrimitiveRequestBuilder<T>
Type Parameters:
T - the primitive type to deserialize the response to
All Implemented Interfaces:
IRequestBuilder

public class PrimitiveRequestBuilder<T> extends BaseRequestBuilder<T>
The class for the Primitive Request Builder.
  • Constructor Details

    • PrimitiveRequestBuilder

      public PrimitiveRequestBuilder(@Nonnull String requestUrl, @Nonnull IBaseClient<?> client, @Nullable List<? extends Option> requestOptions, @Nonnull Class<T> primitiveTypeClass)
      The request builder for the primitive type
      Parameters:
      requestUrl - the request URL
      client - the service client
      requestOptions - the options for this request
      primitiveTypeClass - the return type class for the request
  • Method Details

    • buildRequest

      @Nonnull public PrimitiveRequest<T> buildRequest(@Nullable Option... requestOptions)
      Creates the request
      Parameters:
      requestOptions - the options for this request
      Returns:
      the PrimitiveRequest instance
    • buildRequest

      @Nonnull public PrimitiveRequest<T> buildRequest(@Nonnull List<? extends Option> requestOptions)
      Creates the request with specific requestOptions instead of the existing requestOptions
      Parameters:
      requestOptions - the options for this request
      Returns:
      the PrimitiveRequest instance