How to use DTOs in new java client with ILM

I'm using 7.17 client and I'd like to build ILM from java.

This is what I've tried:

final RolloverConditions rollover = new RolloverConditions.Builder()
        .maxAge(t -> t.time("1D"))
PutLifecycleRequest.of(it ->"ILM")
                .policy(policy -> policy.phases(
                        phases -> ->

However it fails because the rollover isn't properly serialised. What is the proper way to add one or more actions to ILM phases?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.