Class RequestBuilder

    • Method Detail

      • cursor

        public RequestBuilder cursor​(java.lang.String cursor)
        Sets cursor parameter on the request. A cursor is a value that points to a specific location in a collection of resources. The cursor attribute itself is an opaque value meaning that users should not try to parse it.
        Parameters:
        cursor -
        See Also:
        Page documentation
      • limit

        public RequestBuilder limit​(int number)
        Sets limit parameter on the request. It defines maximum number of records to return. For range and default values check documentation of the endpoint requested.
        Parameters:
        number - maxium number of records to return
      • setAssetsParameter

        public RequestBuilder setAssetsParameter​(java.lang.String name,
                                                 java.util.List<Asset> assets)
        Sets a parameter consisting of a comma separated list of assets on the request.
        Parameters:
        name - the name of the query parameter
        assets - the list of assets to be serialized into the query parameter value
      • setAssetParameter

        public RequestBuilder setAssetParameter​(java.lang.String name,
                                                Asset asset)
        Sets a parameter consisting of an asset represented as "assetCode:assetIssue" on the request.
        Parameters:
        name - the name of the query parameter
        asset - the asset to be serialized into the query parameter value