BaseWithReferenceRequestBuilder<T,T2,T3> Class

Type Parameters

T
T2
T3

public abstract class BaseWithReferenceRequestBuilder<T,T2,T3>
extends BaseRequestBuilder<T>

A request builder

Constructor Summary

Constructor Description
BaseWithReferenceRequestBuilder(String requestUrl, IBaseClient<?> client, List<? extends Option> requestOptions, Class<T2> withReferenceRequestClass, Class<T3> referenceRequestBuilderClass)

The request builder for the User

Method Summary

Modifier and Type Method and Description
T2 buildRequest(Option[] requestOptions)

Creates the request

T2 buildRequest(List<? extends Option> requestOptions)

Creates the request with specific options instead of the existing options

T3 reference()

Creates a request builder to get the reference to the entity

Methods inherited from BaseRequestBuilder

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

BaseWithReferenceRequestBuilder

public BaseWithReferenceRequestBuilder(String requestUrl, IBaseClient client, List requestOptions, Class withReferenceRequestClass, Class referenceRequestBuilderClass)

The request builder for the User

Parameters:

requestUrl - the request URL
client - the service client
requestOptions - the options for this request
withReferenceRequestClass - the class for the request
referenceRequestBuilderClass - the class for the request builder

Method Details

buildRequest

public T2 buildRequest(Option[] requestOptions)

Creates the request

Parameters:

requestOptions - the options for this request

Returns:

the ReferenceRequest instance

buildRequest

public T2 buildRequest(List requestOptions)

Creates the request with specific options instead of the existing options

Parameters:

requestOptions - the options for this request

Returns:

the ReferenceRequest instance

reference

public T3 reference()

Creates a request builder to get the reference to the entity

Returns:

the request builder

Applies to