This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 52a12d618cc043e08c8d6263bb151449ee74b244
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Apr 24 11:37:14 2020 +0200

    Camel-AWS2-S3: Added example for pojoRequest
---
 .../camel-aws2-s3/src/main/docs/aws2-s3-component.adoc      | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc 
b/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc
index 46f9772..06ee833 100644
--- a/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc
+++ b/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc
@@ -545,6 +545,19 @@ from("direct:putObject")
     .to(awsEndpoint);
 
--------------------------------------------------------------------------------
 
+== Using a POJO as body
+
+Sometimes build an AWS Request can be complex, because of multiple options. We 
introduce the possibility to use a POJO as body.
+In AWS S3 there are multiple operations you can submit, as an example for List 
brokers request, you can do something like:
+
+------------------------------------------------------------------------------------------------------
+from("direct:aws2-s3")
+     .setBody(ListObjectsRequest.builder().bucket(bucketName).build())
+     
.to("aws2-s3://test?amazonS3Client=#amazonS3Client&operation=listObjects&pojoRequest=true")
+------------------------------------------------------------------------------------------------------
+
+In this way you'll pass the request directly without the need of passing 
headers and options specifically related to this operation.
+
 == Dependencies
 
 Maven users will need to add the following dependency to their pom.xml.

Reply via email to