Add Json aggregation string to SearchRequestBuilder in java API

My question is essentially the same as this one:

I presume the answer is the same ?