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 97a35832212ce968c709c25bf54bea7cd01cf829
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Apr 17 09:14:48 2020 +0200

    CAMEL-14618 - Camel-aws-s3: Add an option to consumer to be able to move 
the consumed files to another bucket, regen docs
---
 .../org/apache/camel/component/aws2/s3/aws2-s3.json          |  4 ++--
 .../camel-aws2-s3/src/main/docs/aws2-s3-component.adoc       |  4 ++--
 .../builder/component/dsl/Aws2S3ComponentBuilderFactory.java |  6 ++++--
 .../builder/endpoint/dsl/AWS2S3EndpointBuilderFactory.java   | 12 ++++++++----
 4 files changed, 16 insertions(+), 10 deletions(-)

diff --git 
a/components/camel-aws2-s3/src/generated/resources/org/apache/camel/component/aws2/s3/aws2-s3.json
 
b/components/camel-aws2-s3/src/generated/resources/org/apache/camel/component/aws2/s3/aws2-s3.json
index 13c300d..23aa58a 100644
--- 
a/components/camel-aws2-s3/src/generated/resources/org/apache/camel/component/aws2/s3/aws2-s3.json
+++ 
b/components/camel-aws2-s3/src/generated/resources/org/apache/camel/component/aws2/s3/aws2-s3.json
@@ -40,7 +40,7 @@
     "fileName": { "kind": "property", "displayName": "File Name", "group": 
"consumer", "label": "consumer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration", 
"configurationField": "configuration", "description": "To get the object from 
the bucket with the given file name" },
     "includeBody": { "kind": "property", "displayName": "Include Body", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField": 
"configuration", "description": "If it is true, the exchange body will be set 
to a stream to the contents of the file. If false, the headers will be set  
[...]
     "includeFolders": { "kind": "property", "displayName": "Include Folders", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField": 
"configuration", "description": "If it is true, the folders\/directories will 
be consumed. If it is false, they will be ignored, and Exchanges will [...]
-    "moveAfterRead": { "kind": "property", "displayName": "Move After Read", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField": 
"configuration", "description": "Move objects from S3 bucket to a different 
bucket after they have been retrieved. The copy bucket operation is only  [...]
+    "moveAfterRead": { "kind": "property", "displayName": "Move After Read", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField": 
"configuration", "description": "Move objects from S3 bucket to a different 
bucket after they have been retrieved. To accomplish the operation the de [...]
     "prefix": { "kind": "property", "displayName": "Prefix", "group": 
"consumer", "label": "consumer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration", 
"configurationField": "configuration", "description": "The prefix which is used 
in the com.amazonaws.services.s3.model.ListObjectsRequest to only consume 
objects we are interested in." },
     "autocloseBody": { "kind": "property", "displayName": "Autoclose Body", 
"group": "consumer (advanced)", "label": "consumer,advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": 
false, "defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField": 
"configuration", "description": "If this option is true and includeBody is 
true, then the S3Object.close() method will be called  [...]
     "deleteAfterWrite": { "kind": "property", "displayName": "Delete After 
Write", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField": 
"configuration", "description": "Delete file object after the S3 file has been 
uploaded" },
@@ -78,7 +78,7 @@
     "includeFolders": { "kind": "parameter", "displayName": "Include Folders", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField": 
"configuration", "description": "If it is true, the folders\/directories will 
be consumed. If it is false, they will be ignored, and Exchanges wil [...]
     "maxConnections": { "kind": "parameter", "displayName": "Max Connections", 
"group": "consumer", "label": "consumer", "required": false, "type": "integer", 
"javaType": "int", "deprecated": false, "secret": false, "defaultValue": "60", 
"description": "Set the maxConnections parameter in the S3 client 
configuration" },
     "maxMessagesPerPoll": { "kind": "parameter", "displayName": "Max Messages 
Per Poll", "group": "consumer", "label": "consumer", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "secret": false, 
"defaultValue": "10", "description": "Gets the maximum number of messages as a 
limit to poll at each polling. Gets the maximum number of messages as a limit 
to poll at each polling. The default value is 10. Use 0 or a negative number to 
set it as unlimited." },
-    "moveAfterRead": { "kind": "parameter", "displayName": "Move After Read", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField": 
"configuration", "description": "Move objects from S3 bucket to a different 
bucket after they have been retrieved. The copy bucket operation is only [...]
+    "moveAfterRead": { "kind": "parameter", "displayName": "Move After Read", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField": 
"configuration", "description": "Move objects from S3 bucket to a different 
bucket after they have been retrieved. To accomplish the operation the d [...]
     "prefix": { "kind": "parameter", "displayName": "Prefix", "group": 
"consumer", "label": "consumer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration", 
"configurationField": "configuration", "description": "The prefix which is used 
in the com.amazonaws.services.s3.model.ListObjectsRequest to only consume 
objects we are interested in." },
     "sendEmptyMessageWhenIdle": { "kind": "parameter", "displayName": "Send 
Empty Message When Idle", "group": "consumer", "label": "consumer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": 
false, "defaultValue": false, "description": "If the polling consumer did not 
poll any files, you can enable this option to send an empty message (no body) 
instead." },
     "autocloseBody": { "kind": "parameter", "displayName": "Autoclose Body", 
"group": "consumer (advanced)", "label": "consumer,advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": 
false, "defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField": 
"configuration", "description": "If this option is true and includeBody is 
true, then the S3Object.close() method will be called [...]
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 2bacfc9..65f2ddd 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
@@ -73,7 +73,7 @@ The AWS2 S3 Storage Service component supports 34 options, 
which are listed belo
 | *fileName* (consumer) | To get the object from the bucket with the given 
file name |  | String
 | *includeBody* (consumer) | If it is true, the exchange body will be set to a 
stream to the contents of the file. If false, the headers will be set with the 
S3 object metadata, but the body will be null. This option is strongly related 
to autocloseBody option. In case of setting includeBody to true and 
autocloseBody to false, it will be up to the caller to close the S3Object 
stream. Setting autocloseBody to true, will close the S3Object stream 
automatically. | true | boolean
 | *includeFolders* (consumer) | If it is true, the folders/directories will be 
consumed. If it is false, they will be ignored, and Exchanges will not be 
created for those | true | boolean
-| *moveAfterRead* (consumer) | Move objects from S3 bucket to a different 
bucket after they have been retrieved. The copy bucket operation is only 
performed if the Exchange is committed. If a rollback occurs, the object is not 
moved. | false | boolean
+| *moveAfterRead* (consumer) | Move objects from S3 bucket to a different 
bucket after they have been retrieved. To accomplish the operation the 
destinationBucket option must be set. The copy bucket operation is only 
performed if the Exchange is committed. If a rollback occurs, the object is not 
moved. | false | boolean
 | *prefix* (consumer) | The prefix which is used in the 
com.amazonaws.services.s3.model.ListObjectsRequest to only consume objects we 
are interested in. |  | String
 | *autocloseBody* (consumer) | If this option is true and includeBody is true, 
then the S3Object.close() method will be called on exchange completion. This 
option is strongly related to includeBody option. In case of setting 
includeBody to true and autocloseBody to false, it will be up to the caller to 
close the S3Object stream. Setting autocloseBody to true, will close the 
S3Object stream automatically. | true | boolean
 | *deleteAfterWrite* (producer) | Delete file object after the S3 file has 
been uploaded | false | boolean
@@ -146,7 +146,7 @@ with the following path and query parameters:
 | *includeFolders* (consumer) | If it is true, the folders/directories will be 
consumed. If it is false, they will be ignored, and Exchanges will not be 
created for those | true | boolean
 | *maxConnections* (consumer) | Set the maxConnections parameter in the S3 
client configuration | 60 | int
 | *maxMessagesPerPoll* (consumer) | Gets the maximum number of messages as a 
limit to poll at each polling. Gets the maximum number of messages as a limit 
to poll at each polling. The default value is 10. Use 0 or a negative number to 
set it as unlimited. | 10 | int
-| *moveAfterRead* (consumer) | Move objects from S3 bucket to a different 
bucket after they have been retrieved. The copy bucket operation is only 
performed if the Exchange is committed. If a rollback occurs, the object is not 
moved. | false | boolean
+| *moveAfterRead* (consumer) | Move objects from S3 bucket to a different 
bucket after they have been retrieved. To accomplish the operation the 
destinationBucket option must be set. The copy bucket operation is only 
performed if the Exchange is committed. If a rollback occurs, the object is not 
moved. | false | boolean
 | *prefix* (consumer) | The prefix which is used in the 
com.amazonaws.services.s3.model.ListObjectsRequest to only consume objects we 
are interested in. |  | String
 | *sendEmptyMessageWhenIdle* (consumer) | If the polling consumer did not poll 
any files, you can enable this option to send an empty message (no body) 
instead. | false | boolean
 | *autocloseBody* (consumer) | If this option is true and includeBody is true, 
then the S3Object.close() method will be called on exchange completion. This 
option is strongly related to includeBody option. In case of setting 
includeBody to true and autocloseBody to false, it will be up to the caller to 
close the S3Object stream. Setting autocloseBody to true, will close the 
S3Object stream automatically. | true | boolean
diff --git 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2S3ComponentBuilderFactory.java
 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2S3ComponentBuilderFactory.java
index 6543508..df97ea4 100644
--- 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2S3ComponentBuilderFactory.java
+++ 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2S3ComponentBuilderFactory.java
@@ -312,8 +312,10 @@ public interface Aws2S3ComponentBuilderFactory {
         }
         /**
          * Move objects from S3 bucket to a different bucket after they have
-         * been retrieved. The copy bucket operation is only performed if the
-         * Exchange is committed. If a rollback occurs, the object is not 
moved.
+         * been retrieved. To accomplish the operation the destinationBucket
+         * option must be set. The copy bucket operation is only performed if
+         * the Exchange is committed. If a rollback occurs, the object is not
+         * moved.
          * 
          * The option is a: <code>boolean</code> type.
          * 
diff --git 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AWS2S3EndpointBuilderFactory.java
 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AWS2S3EndpointBuilderFactory.java
index 6d205c2..976cc31 100644
--- 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AWS2S3EndpointBuilderFactory.java
+++ 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AWS2S3EndpointBuilderFactory.java
@@ -519,8 +519,10 @@ public interface AWS2S3EndpointBuilderFactory {
         }
         /**
          * Move objects from S3 bucket to a different bucket after they have
-         * been retrieved. The copy bucket operation is only performed if the
-         * Exchange is committed. If a rollback occurs, the object is not 
moved.
+         * been retrieved. To accomplish the operation the destinationBucket
+         * option must be set. The copy bucket operation is only performed if
+         * the Exchange is committed. If a rollback occurs, the object is not
+         * moved.
          * 
          * The option is a: <code>boolean</code> type.
          * 
@@ -534,8 +536,10 @@ public interface AWS2S3EndpointBuilderFactory {
         }
         /**
          * Move objects from S3 bucket to a different bucket after they have
-         * been retrieved. The copy bucket operation is only performed if the
-         * Exchange is committed. If a rollback occurs, the object is not 
moved.
+         * been retrieved. To accomplish the operation the destinationBucket
+         * option must be set. The copy bucket operation is only performed if
+         * the Exchange is committed. If a rollback occurs, the object is not
+         * moved.
          * 
          * The option will be converted to a <code>boolean</code> type.
          * 

Reply via email to