brapi-java-client/src/main/java/org/brapi/client/v2/modules/phenotype/ObservationUnitsApi.java
private Call observationunitsGetCall(ObservationUnitQueryParams queryParams) throws ApiException {
        if(queryParams == null) {
        	throw new IllegalArgumentException("queryParams cannot be null");
        }
        Object localVarPostBody = null;
        
        // create path and map variables
        String localVarPath = "/observationunits";

        Map<String, String> localVarQueryParams = new HashMap<>();
        Map<String, String> localVarCollectionQueryParams = new HashMap<>();
        if (queryParams.observationUnitDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationUnitDbId", queryParams.observationUnitDbId());
        if (queryParams.germplasmDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "germplasmDbId", queryParams.germplasmDbId());
        if (queryParams.studyDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "studyDbId", queryParams.studyDbId());
        if (queryParams.locationDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "locationDbId", queryParams.locationDbId());
        if (queryParams.trialDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "trialDbId", queryParams.trialDbId());
        if (queryParams.programDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "programDbId", queryParams.programDbId());
        if (queryParams.seasonDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "seasonDbId", queryParams.seasonDbId());
        if (queryParams.observationUnitLevelName() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationUnitLevelName", queryParams.observationUnitLevelName());
        if (queryParams.observationUnitLevelOrder() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationUnitLevelOrder", queryParams.observationUnitLevelOrder());
        if (queryParams.observationUnitLevelCode() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationUnitLevelCode", queryParams.observationUnitLevelCode());
        if (queryParams.includeObservations() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "includeObservations", queryParams.includeObservations());
        if (queryParams.externalReferenceID() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "externalReferenceID", queryParams.externalReferenceID());
        if (queryParams.externalReferenceSource() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "externalReferenceSource", queryParams.externalReferenceSource());
        if (queryParams.page() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "page", queryParams.page());
        if (queryParams.pageSize() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "pageSize", queryParams.pageSize());

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        
        

        Map<String, Object> localVarFormParams = new HashMap<String, Object>();

        final String[] localVarAccepts = {
            "application/json"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

        String[] localVarAuthNames = new String[] { "AuthorizationToken" };
        return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);
    }
/**
     * Build call for observationunitsGet
     * @param queryParams
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     */
Build call for observationunitsGet
@param queryParams
@return Call to execute
@throws ApiException If fail to serialize the request body object
Build call for observationunitsGet @param queryParams @return Call to execute @throws ApiException If fail to serialize the request body object
private Call observationunitsGetCall(ObservationUnitQueryParams queryParams) throws ApiException {
        if(queryParams == null) {
        	throw new IllegalArgumentException("queryParams cannot be null");
        }
        Object localVarPostBody = null;
        String localVarPath = "/observationunits";
        Map<String, String> localVarQueryParams = new HashMap<>();
        Map<String, String> localVarCollectionQueryParams = new HashMap<>();
        if (queryParams.observationUnitDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationUnitDbId", queryParams.observationUnitDbId());
        if (queryParams.germplasmDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "germplasmDbId", queryParams.germplasmDbId());
        if (queryParams.studyDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "studyDbId", queryParams.studyDbId());
        if (queryParams.locationDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "locationDbId", queryParams.locationDbId());
        if (queryParams.trialDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "trialDbId", queryParams.trialDbId());
        if (queryParams.programDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "programDbId", queryParams.programDbId());
        if (queryParams.seasonDbId() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "seasonDbId", queryParams.seasonDbId());
        if (queryParams.observationUnitLevelName() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationUnitLevelName", queryParams.observationUnitLevelName());
        if (queryParams.observationUnitLevelOrder() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationUnitLevelOrder", queryParams.observationUnitLevelOrder());
        if (queryParams.observationUnitLevelCode() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "observationUnitLevelCode", queryParams.observationUnitLevelCode());
        if (queryParams.includeObservations() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "includeObservations", queryParams.includeObservations());
        if (queryParams.externalReferenceID() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "externalReferenceID", queryParams.externalReferenceID());
        if (queryParams.externalReferenceSource() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "externalReferenceSource", queryParams.externalReferenceSource());
        if (queryParams.page() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "page", queryParams.page());
        if (queryParams.pageSize() != null)
            apiClient.prepQueryParameter(localVarQueryParams, "pageSize", queryParams.pageSize());
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
        final String[] localVarContentTypes = {
        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);
        String[] localVarAuthNames = new String[] { "AuthorizationToken" };
        return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames);
    }
private Call observationunitsGetCall ( ObservationUnitQueryParams queryParams ) throws ApiException { if ( queryParams == null ) { throw new IllegalArgumentException ( "queryParams cannot be null" ) ; } Object localVarPostBody = null ; String localVarPath = "/observationunits" ; Map < String , String > localVarQueryParams = new HashMap < > ( ) ; Map < String , String > localVarCollectionQueryParams = new HashMap < > ( ) ; if ( queryParams . observationUnitDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "observationUnitDbId" , queryParams . observationUnitDbId ( ) ) ; if ( queryParams . germplasmDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "germplasmDbId" , queryParams . germplasmDbId ( ) ) ; if ( queryParams . studyDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "studyDbId" , queryParams . studyDbId ( ) ) ; if ( queryParams . locationDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "locationDbId" , queryParams . locationDbId ( ) ) ; if ( queryParams . trialDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "trialDbId" , queryParams . trialDbId ( ) ) ; if ( queryParams . programDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "programDbId" , queryParams . programDbId ( ) ) ; if ( queryParams . seasonDbId ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "seasonDbId" , queryParams . seasonDbId ( ) ) ; if ( queryParams . observationUnitLevelName ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "observationUnitLevelName" , queryParams . observationUnitLevelName ( ) ) ; if ( queryParams . observationUnitLevelOrder ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "observationUnitLevelOrder" , queryParams . observationUnitLevelOrder ( ) ) ; if ( queryParams . observationUnitLevelCode ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "observationUnitLevelCode" , queryParams . observationUnitLevelCode ( ) ) ; if ( queryParams . includeObservations ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "includeObservations" , queryParams . includeObservations ( ) ) ; if ( queryParams . externalReferenceID ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "externalReferenceID" , queryParams . externalReferenceID ( ) ) ; if ( queryParams . externalReferenceSource ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "externalReferenceSource" , queryParams . externalReferenceSource ( ) ) ; if ( queryParams . page ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "page" , queryParams . page ( ) ) ; if ( queryParams . pageSize ( ) != null ) apiClient . prepQueryParameter ( localVarQueryParams , "pageSize" , queryParams . pageSize ( ) ) ; Map < String , String > localVarHeaderParams = new HashMap < String , String > ( ) ; Map < String , Object > localVarFormParams = new HashMap < String , Object > ( ) ; final String [ ] localVarAccepts = { "application/json" } ; final String localVarAccept = apiClient . selectHeaderAccept ( localVarAccepts ) ; if ( localVarAccept != null ) localVarHeaderParams . put ( "Accept" , localVarAccept ) ; final String [ ] localVarContentTypes = { } ; final String localVarContentType = apiClient . selectHeaderContentType ( localVarContentTypes ) ; localVarHeaderParams . put ( "Content-Type" , localVarContentType ) ; String [ ] localVarAuthNames = new String [ ] { "AuthorizationToken" } ; return apiClient . buildCall ( localVarPath , "GET" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAuthNames ) ; }
Build call for observationunitsGet
 @param queryParams
 @return Call to execute
 @throws ApiException If fail to serialize the request body object
Build call for observationunitsGet @param queryParams @return Call to execute @throws ApiException If fail to serialize the request body object
// create path and map variables