=== Using a POJO for the `createSecret` operation in native mode

It is possible to use a POJO as the message body for the `createSecret` operation.
In native mode, you must register any such POJO classes for reflection. E.g. via the `@RegisterForReflection`
annotation or configuration property `quarkus.camel.native.reflection.include-patterns`.

For example.

[source,java]
----
@RegisterForReflection
public class Credentials {
    private String username;
    private String password;

    // Getters & setters
}
----

[source,java]
----
from("direct:createSecret")
    .process(new Processor() {
        @Override
        public void process(Exchange exchange) {
            Credentials credentials = new Credentials();
            credentials.setUsername("admin");
            credentials.setPassword("2s3cr3t");
            exchange.getMessage().setBody(credentials);
        }
    })
    .to("hashicorp-vault:secret?operation=createSecret&token=my-token&secretPath=my-secret")
----

Refer to the xref:user-guide/native-mode.adoc#reflection[Native mode] user guide for more information.
