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

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


The following commit(s) were added to refs/heads/main by this push:
     new 86fa8679f204 CAMEL-27388: camel-alibaba-oss - fix the required flags 
and the labels, and list the six producer headers (#30642)
86fa8679f204 is described below

commit 86fa8679f20465038c31f43722de1e41329b9d3a
Author: Saravanakumar Selvaraj <[email protected]>
AuthorDate: Mon Nov 23 08:30:03 2026 +0000

    CAMEL-27388: camel-alibaba-oss - fix the required flags and the labels, and 
list the six producer headers (#30642)
    
    region, accessKey and secretKey were marked as required. The code reads 
none of them when ossClient is set or autowired,
    and serviceKeys can supply the AccessKey pair. They are no longer marked as 
required.
    
    OSSHeaders had no constant for six names that the producer reads as 
headers: CamelAlibabaOssOperation,
    CamelAlibabaOssObjectName, CamelAlibabaOssSourceBucketName, 
CamelAlibabaOssSourceObjectName, CamelAlibabaOssPrefix and
    CamelAlibabaOssMaxKeys. It now has one for each, with the label producer. 
The operation header lists its seven values.
    The doc page no longer has the hand-written table of the producer headers, 
as the generated table now lists them.
    
    prefix had the label consumer, but the producer reads it too for 
listObjects. It now has no label. maxKeys had the
    labels consumer and producer, but only the producer reads it. It now has 
the label producer. objectName had no label,
    but only the producer reads it. It now has the label producer. The other 
nine headers had the label consumer, but the
    producer sets them too for getObject. They now have the label common.
    
    The component JSON, its catalog copy, the catalog copy of the doc page and 
the Endpoint DSL are regenerated. In the
    Endpoint DSL, the producer builder now has prefix and maxKeys, and the 
consumer builder no longer has objectName. A new
    test of CamelCatalogTest covers the options and the headers. The upgrade 
guide of 4.24 has two sections on the change.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 .../camel/catalog/components/alibaba-oss.json      |  46 +++--
 .../camel/catalog/docs/alibaba-oss-component.adoc  |  24 ---
 .../org/apache/camel/catalog/CamelCatalogTest.java |  35 ++++
 .../camel/component/alibaba/oss/alibaba-oss.json   |  46 +++--
 .../src/main/docs/alibaba-oss-component.adoc       |  24 ---
 .../camel/component/alibaba/oss/OSSEndpoint.java   |  10 +-
 .../alibaba/oss/constants/OSSHeaders.java          |  57 ++++--
 .../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc    |  29 +++
 .../endpoint/dsl/OSSEndpointBuilderFactory.java    | 220 ++++++++++++++++-----
 9 files changed, 329 insertions(+), 162 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-oss.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-oss.json
index 1eb93ac45869..587a5cc36099 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-oss.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-oss.json
@@ -31,15 +31,21 @@
     "healthCheckProducerEnabled": { "index": 4, "kind": "property", 
"displayName": "Health Check Producer Enabled", "group": "health", "label": 
"health", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true, 
"description": "Used for enabling or disabling all producer based health checks 
from this component. Notice: Camel has by default disabled all producer based 
health-checks. You can turn on producer [...]
   },
   "headers": {
-    "CamelAlibabaOssBucketName": { "index": 0, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the bucket. The consumer sets it for a consumed 
object, and the producer for getObject. An exchange property of the same name 
replaces the bucketName option for the producer, and this header replaces 
both.", "constantName": "org.apache.cam [...]
-    "CamelAlibabaOssObjectKey": { "index": 1, "kind": "header", "displayName": 
"", "group": "consumer", "label": "consumer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The key that the object is stored under", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#OBJECT_KEY" },
-    "CamelAlibabaOssLastModified": { "index": 2, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The date and time that the object was last modified", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#LAST_MODIFIED" },
-    "CamelAlibabaOssETag": { "index": 3, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The entity tag (ETag) of the object, which identifies its 
content. It is the MD5 hash of the content only for an object created by 
PutObject.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#ETAG" },
-    "CamelAlibabaOssContentMD5": { "index": 4, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The 128-bit Base64-encoded digest of the object", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_MD5" },
-    "CamelAlibabaOssObjectType": { "index": 5, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Shows whether the object is a file or a folder", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#OBJECT_TYPE" },
-    "CamelAlibabaOssContentLength": { "index": 6, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "Long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The size of the object body in bytes", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_LENGTH" },
-    "CamelAlibabaOssContentType": { "index": 7, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The type of content stored in the object", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_TYPE" },
-    "CamelFileName": { "index": 8, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the object. The consumer sets it for a consumed 
object, and the producer for getObject.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#FILE_NAME" }
+    "CamelAlibabaOssOperation": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"String", "enum": [ "listBuckets", "listObjects", "putObject", "getObject", 
"deleteObject", "copyObject", "headObject" ], "deprecated": false, "autowired": 
false, "secret": false, "description": "The operation that the producer 
performs. An exchange property of the same name replaces the operation option, 
and this header replaces both [...]
+    "CamelAlibabaOssBucketName": { "index": 1, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the bucket. The consumer sets it for a consumed 
object, and the producer for getObject. An exchange property of the same name 
replaces the bucketName option for the producer, and this header replaces 
both.", "constantName": "org.apache.camel.c [...]
+    "CamelAlibabaOssObjectName": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the object, or of the destination object for 
copyObject. An exchange property of the same name replaces the objectName 
option, and this header replaces both.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#OB [...]
+    "CamelAlibabaOssSourceBucketName": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the source bucket for copyObject, which requires 
it. If this header is not set, the producer uses an exchange property of the 
same name.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#SOURCE_BUCKET_NAME"
 },
+    "CamelAlibabaOssSourceObjectName": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the source object for copyObject, which requires 
it. If this header is not set, the producer uses an exchange property of the 
same name.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#SOURCE_OBJECT_NAME"
 },
+    "CamelAlibabaOssPrefix": { "index": 5, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The prefix of the names of the objects that listObjects 
returns. An exchange property of the same name replaces the prefix option for 
the producer, and this header replaces both.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeade [...]
+    "CamelAlibabaOssMaxKeys": { "index": 6, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"Integer", "deprecated": false, "autowired": false, "secret": false, 
"description": "The maximum number of objects that listObjects returns. An 
exchange property of the same name replaces the maxKeys option, and this header 
replaces both.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#MAX_KEYS" },
+    "CamelAlibabaOssObjectKey": { "index": 7, "kind": "header", "displayName": 
"", "group": "common", "label": "common", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The key that the object is stored under", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#OBJECT_KEY" },
+    "CamelAlibabaOssLastModified": { "index": 8, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The date and time that the object was last modified", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#LAST_MODIFIED" },
+    "CamelAlibabaOssETag": { "index": 9, "kind": "header", "displayName": "", 
"group": "common", "label": "common", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
entity tag (ETag) of the object, which identifies its content. It is the MD5 
hash of the content only for an object created by PutObject.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#ETAG" },
+    "CamelAlibabaOssContentMD5": { "index": 10, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The 128-bit Base64-encoded digest of the object", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_MD5" },
+    "CamelAlibabaOssObjectType": { "index": 11, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Shows whether the object is a file or a folder", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#OBJECT_TYPE" },
+    "CamelAlibabaOssContentLength": { "index": 12, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "Long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The size of the object body in bytes", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_LENGTH" },
+    "CamelAlibabaOssContentType": { "index": 13, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The type of content stored in the object", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_TYPE" },
+    "CamelFileName": { "index": 14, "kind": "header", "displayName": "", 
"group": "common", "label": "common", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
name of the object. The consumer sets it for a consumed object, and the 
producer for getObject.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#FILE_NAME" }
   },
   "bodyTypes": {
     "consumerOut": { "carriers": [ "bytes" ], "javaType": "byte[]", 
"byOption": [ { "option": "includeBody", "value": "false", "carriers": [ 
"stream" ] } ], "description": "The content of the object as a byte array, one 
message per object, with its bucket, key and metadata in headers. With 
includeBody=false the stream of the content of the object, which is closed when 
the exchange is done" },
@@ -49,18 +55,18 @@
   "properties": {
     "bucketName": { "index": 0, "kind": "path", "displayName": "Bucket Name", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The name of the bucket, or of the destination 
bucket for copyObject. The CamelAlibabaOssBucketName exchange property replaces 
this option for the producer, and a header of the same name replaces both." },
     "endpoint": { "index": 1, "kind": "parameter", "displayName": "Endpoint 
url", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The endpoint of Object Storage Service, for 
example oss-cn-hangzhou.aliyuncs.com. If not set, the SDK builds it from the 
region option." },
-    "objectName": { "index": 2, "kind": "parameter", "displayName": "Object 
Name", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The name of the object for the producer, or of 
the destination object for copyObject. The CamelAlibabaOssObjectName exchange 
property replaces this option, and a header of the same name replaces both." },
-    "region": { "index": 3, "kind": "parameter", "displayName": "Service 
region", "group": "common", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The region ID of Object Storage Service, for 
example cn-hangzhou. The SDK uses it to sign requests, and to build the 
endpoint when the endpoint option is not set." },
+    "prefix": { "index": 2, "kind": "parameter", "displayName": "Prefix", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The prefix of the names of the objects to 
list, for the consumer and for listObjects. The CamelAlibabaOssPrefix exchange 
property replaces this option for the producer, and a header of the same name 
replaces both." },
+    "region": { "index": 3, "kind": "parameter", "displayName": "Service 
region", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The region ID of Object Storage Service, for 
example cn-hangzhou. The SDK uses it to sign requests, and to build the 
endpoint when the endpoint option is not set." },
     "deleteAfterRead": { "index": 4, "kind": "parameter", "displayName": 
"Delete after read", "group": "consumer", "label": "consumer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether to delete the object from the bucket after it is processed 
successfully. If false, the consumer consumes the object again in a later 
poll." },
     "includeBody": { "index": 5, "kind": "parameter", "displayName": "Include 
Body", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "If true, the content of 
each consumed object is read into a byte array, which is the body. If false, 
the body is the stream of the content of the object, which is closed when the 
exchange is done. For large o [...]
     "maxMessagesPerPoll": { "index": 6, "kind": "parameter", "displayName": 
"Maximum messages per poll", "group": "consumer", "label": "consumer", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": 10, "description": "The 
maximum number of objects that the consumer lists in one poll. Object Storage 
Service accepts a value of at most 1000. The consumer treats a value of 0 or 
less as 10." },
-    "prefix": { "index": 7, "kind": "parameter", "displayName": "Prefix", 
"group": "consumer", "label": "consumer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The prefix of the names of the objects to 
list, for the consumer and for listObjects. The CamelAlibabaOssPrefix exchange 
property replaces this option for the producer, and a header of the same name 
replaces both." },
-    "sendEmptyMessageWhenIdle": { "index": 8, "kind": "parameter", 
"displayName": "Send Empty Message When Idle", "group": "consumer", "label": 
"consumer", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": 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." },
-    "bridgeErrorHandler": { "index": 9, "kind": "parameter", "displayName": 
"Bridge Error Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions (if possible) occurred 
while the Camel consumer is trying to pickup incoming  [...]
-    "exceptionHandler": { "index": 10, "kind": "parameter", "displayName": 
"Exception Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By de [...]
-    "exchangePattern": { "index": 11, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
-    "pollStrategy": { "index": 12, "kind": "parameter", "displayName": "Poll 
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false, 
"autowired": false, "secret": false, "description": "A pluggable 
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your 
custom implementation to control error handling usually occurred during the po 
[...]
-    "maxKeys": { "index": 13, "kind": "parameter", "displayName": "Max Keys", 
"group": "producer", "label": "consumer,producer", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": 
false, "secret": false, "description": "The maximum number of objects that the 
producer returns for listObjects, or all of them if no value is set. Object 
Storage Service accepts a value of at most 1000. The CamelAlibabaOssMaxKeys 
exchange property replaces  [...]
+    "sendEmptyMessageWhenIdle": { "index": 7, "kind": "parameter", 
"displayName": "Send Empty Message When Idle", "group": "consumer", "label": 
"consumer", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": 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." },
+    "bridgeErrorHandler": { "index": 8, "kind": "parameter", "displayName": 
"Bridge Error Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions (if possible) occurred 
while the Camel consumer is trying to pickup incoming  [...]
+    "exceptionHandler": { "index": 9, "kind": "parameter", "displayName": 
"Exception Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By def [...]
+    "exchangePattern": { "index": 10, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
+    "pollStrategy": { "index": 11, "kind": "parameter", "displayName": "Poll 
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false, 
"autowired": false, "secret": false, "description": "A pluggable 
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your 
custom implementation to control error handling usually occurred during the po 
[...]
+    "maxKeys": { "index": 12, "kind": "parameter", "displayName": "Max Keys", 
"group": "producer", "label": "producer", "required": false, "type": "integer", 
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The maximum number of objects that the 
producer returns for listObjects, or all of them if no value is set. Object 
Storage Service accepts a value of at most 1000. The CamelAlibabaOssMaxKeys 
exchange property replaces this opti [...]
+    "objectName": { "index": 13, "kind": "parameter", "displayName": "Object 
Name", "group": "producer", "label": "producer", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "The name of the object for the 
producer, or of the destination object for copyObject. The 
CamelAlibabaOssObjectName exchange property replaces this option, and a header 
of the same name replaces both." },
     "operation": { "index": 14, "kind": "parameter", "displayName": 
"Operation", "group": "producer", "label": "producer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "listBuckets", 
"listObjects", "putObject", "getObject", "deleteObject", "copyObject", 
"headObject" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "The operation that the producer performs. The 
CamelAlibabaOssOperation exchange property replaces this option, and a [...]
     "lazyStartProducer": { "index": 15, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produ [...]
     "ossClient": { "index": 16, "kind": "parameter", "displayName": "OSS 
Client", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "com.aliyun.sdk.service.oss2.OSSClient", "deprecated": 
false, "autowired": true, "secret": false, "description": "To use a custom 
com.aliyun.sdk.service.oss2.OSSClient. When this option is set or autowired, 
the region, endpoint, accessKey, secretKey, and serviceKeys options are not 
used. The Camel endpoint does not cl [...]
@@ -79,8 +85,8 @@
     "startScheduler": { "index": 29, "kind": "parameter", "displayName": 
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "boolean", "javaType": "boolean", "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": true, 
"description": "Whether the scheduler should be auto started." },
     "timeUnit": { "index": 30, "kind": "parameter", "displayName": "Time 
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false, 
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ 
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", 
"DAYS" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and 
delay options." },
     "useFixedDelay": { "index": 31, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
-    "accessKey": { "index": 32, "kind": "parameter", "displayName": "API 
access key (AK)", "group": "security", "label": "security", "required": true, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "description": "The 
AccessKey ID of the AccessKey pair for Object Storage Service. If not set, the 
accessKey of the serviceKeys option is used." },
-    "secretKey": { "index": 33, "kind": "parameter", "displayName": "API 
secret key (SK)", "group": "security", "label": "security", "required": true, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "description": "The 
AccessKey secret of the AccessKey pair for Object Storage Service. If not set, 
the secretKey of the serviceKeys option is used." },
+    "accessKey": { "index": 32, "kind": "parameter", "displayName": "API 
access key (AK)", "group": "security", "label": "security", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "description": "The 
AccessKey ID of the AccessKey pair for Object Storage Service. If not set, the 
accessKey of the serviceKeys option is used." },
+    "secretKey": { "index": 33, "kind": "parameter", "displayName": "API 
secret key (SK)", "group": "security", "label": "security", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "description": "The 
AccessKey secret of the AccessKey pair for Object Storage Service. If not set, 
the secretKey of the serviceKeys option is used." },
     "serviceKeys": { "index": 34, "kind": "parameter", "displayName": "Service 
Configuration", "group": "security", "label": "security", "required": false, 
"type": "object", "javaType": 
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated": 
false, "autowired": false, "secret": true, "security": "secret", "description": 
"The AccessKey pair as an 
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its accessKey and 
its secretKey are each used when the optio [...]
   }
 }
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-oss-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-oss-component.adoc
index 38c0dee6d8d9..90435a866484 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-oss-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/alibaba-oss-component.adoc
@@ -44,30 +44,6 @@ include::partial$component-endpoint-headers.adoc[]
 
 == Usage
 
-=== Message headers evaluated by the OSS producer
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Header |Type |Description
-
-|`CamelAlibabaOssOperation` |`String` | Name of operation to invoke
-
-|`CamelAlibabaOssBucketName` |`String` | Bucket name to invoke operation on 
(overrides the URI path bucket name)
-
-|`CamelAlibabaOssObjectName` |`String` | Name of the object to be used in 
operation
-
-|`CamelAlibabaOssSourceBucketName` |`String` | Source bucket name for copy 
operations
-
-|`CamelAlibabaOssSourceObjectName` |`String` | Source object name for copy 
operations
-
-|`CamelAlibabaOssPrefix` |`String` | Prefix filter when listing objects
-
-|`CamelAlibabaOssMaxKeys` |`Integer` | Maximum number of keys returned when 
listing objects
-
-|=======================================================================
-
-If any of the above headers are set, they will override their corresponding 
query parameter or URI path value.
-
 === List of Supported OSS Operations
 
 - listBuckets
diff --git 
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
 
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
index 706c8e1968de..36f88880c2bc 100644
--- 
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
+++ 
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
@@ -1747,6 +1747,41 @@ public class CamelCatalogTest {
         assertTrue(model.getEndpointHeaders().stream().anyMatch(h -> 
"CamelAlibabaSmsOperation".equals(h.getName())));
     }
 
+    @Test
+    public void testValidateEndpointAlibabaOss() {
+        // a client that is set replaces the region and the AccessKey pair
+        String uri = "alibaba-oss:myBucket?ossClient=#ossClient";
+        EndpointValidationResult result = 
catalog.validateEndpointProperties(uri);
+        assertTrue(result.isSuccess(), result.summaryErrorMessage(false));
+
+        // serviceKeys replaces accessKey and secretKey
+        uri = 
"alibaba-oss:myBucket?region=cn-hangzhou&serviceKeys=#serviceKeys";
+        result = catalog.validateEndpointProperties(uri);
+        assertTrue(result.isSuccess(), result.summaryErrorMessage(false));
+
+        // the producer uses prefix and maxKeys for listObjects
+        uri = 
"alibaba-oss:myBucket?operation=listObjects&prefix=logs/&maxKeys=100&ossClient=#ossClient";
+        result = catalog.validateEndpointProperties(uri, false, false, true);
+        assertTrue(result.isSuccess(), result.summaryErrorMessage(false));
+
+        // the consumer uses prefix, but neither objectName nor maxKeys
+        uri = 
"alibaba-oss:myBucket?prefix=logs/&objectName=a.txt&maxKeys=100&ossClient=#ossClient";
+        result = catalog.validateEndpointProperties(uri, false, true, false);
+        assertFalse(result.isSuccess());
+
+        assertEquals(2, result.getNotConsumerOnly().size());
+        assertTrue(result.getNotConsumerOnly().contains("objectName"));
+        assertTrue(result.getNotConsumerOnly().contains("maxKeys"));
+
+        // only the producer reads these six headers, and both sides set the 
key of the object
+        Map<String, String> groups = new HashMap<>();
+        catalog.componentModel("alibaba-oss").getEndpointHeaders().forEach(h 
-> groups.put(h.getName(), h.getGroup()));
+        for (String name : List.of("Operation", "ObjectName", 
"SourceBucketName", "SourceObjectName", "Prefix", "MaxKeys")) {
+            assertEquals("producer", groups.get("CamelAlibabaOss" + name), 
name);
+        }
+        assertEquals("common", groups.get("CamelAlibabaOssObjectKey"));
+    }
+
     @Test
     public void testValidateEndpointConsumerOnly() {
         String uri = "file:inbox?bufferSize=4096&readLock=changed&delete=true";
diff --git 
a/components/camel-alibaba/camel-alibaba-oss/src/generated/resources/META-INF/org/apache/camel/component/alibaba/oss/alibaba-oss.json
 
b/components/camel-alibaba/camel-alibaba-oss/src/generated/resources/META-INF/org/apache/camel/component/alibaba/oss/alibaba-oss.json
index 1eb93ac45869..587a5cc36099 100644
--- 
a/components/camel-alibaba/camel-alibaba-oss/src/generated/resources/META-INF/org/apache/camel/component/alibaba/oss/alibaba-oss.json
+++ 
b/components/camel-alibaba/camel-alibaba-oss/src/generated/resources/META-INF/org/apache/camel/component/alibaba/oss/alibaba-oss.json
@@ -31,15 +31,21 @@
     "healthCheckProducerEnabled": { "index": 4, "kind": "property", 
"displayName": "Health Check Producer Enabled", "group": "health", "label": 
"health", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true, 
"description": "Used for enabling or disabling all producer based health checks 
from this component. Notice: Camel has by default disabled all producer based 
health-checks. You can turn on producer [...]
   },
   "headers": {
-    "CamelAlibabaOssBucketName": { "index": 0, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the bucket. The consumer sets it for a consumed 
object, and the producer for getObject. An exchange property of the same name 
replaces the bucketName option for the producer, and this header replaces 
both.", "constantName": "org.apache.cam [...]
-    "CamelAlibabaOssObjectKey": { "index": 1, "kind": "header", "displayName": 
"", "group": "consumer", "label": "consumer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The key that the object is stored under", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#OBJECT_KEY" },
-    "CamelAlibabaOssLastModified": { "index": 2, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The date and time that the object was last modified", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#LAST_MODIFIED" },
-    "CamelAlibabaOssETag": { "index": 3, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The entity tag (ETag) of the object, which identifies its 
content. It is the MD5 hash of the content only for an object created by 
PutObject.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#ETAG" },
-    "CamelAlibabaOssContentMD5": { "index": 4, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The 128-bit Base64-encoded digest of the object", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_MD5" },
-    "CamelAlibabaOssObjectType": { "index": 5, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Shows whether the object is a file or a folder", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#OBJECT_TYPE" },
-    "CamelAlibabaOssContentLength": { "index": 6, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "Long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The size of the object body in bytes", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_LENGTH" },
-    "CamelAlibabaOssContentType": { "index": 7, "kind": "header", 
"displayName": "", "group": "consumer", "label": "consumer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The type of content stored in the object", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_TYPE" },
-    "CamelFileName": { "index": 8, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the object. The consumer sets it for a consumed 
object, and the producer for getObject.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#FILE_NAME" }
+    "CamelAlibabaOssOperation": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"String", "enum": [ "listBuckets", "listObjects", "putObject", "getObject", 
"deleteObject", "copyObject", "headObject" ], "deprecated": false, "autowired": 
false, "secret": false, "description": "The operation that the producer 
performs. An exchange property of the same name replaces the operation option, 
and this header replaces both [...]
+    "CamelAlibabaOssBucketName": { "index": 1, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the bucket. The consumer sets it for a consumed 
object, and the producer for getObject. An exchange property of the same name 
replaces the bucketName option for the producer, and this header replaces 
both.", "constantName": "org.apache.camel.c [...]
+    "CamelAlibabaOssObjectName": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the object, or of the destination object for 
copyObject. An exchange property of the same name replaces the objectName 
option, and this header replaces both.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#OB [...]
+    "CamelAlibabaOssSourceBucketName": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the source bucket for copyObject, which requires 
it. If this header is not set, the producer uses an exchange property of the 
same name.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#SOURCE_BUCKET_NAME"
 },
+    "CamelAlibabaOssSourceObjectName": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the source object for copyObject, which requires 
it. If this header is not set, the producer uses an exchange property of the 
same name.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#SOURCE_OBJECT_NAME"
 },
+    "CamelAlibabaOssPrefix": { "index": 5, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The prefix of the names of the objects that listObjects 
returns. An exchange property of the same name replaces the prefix option for 
the producer, and this header replaces both.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeade [...]
+    "CamelAlibabaOssMaxKeys": { "index": 6, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"Integer", "deprecated": false, "autowired": false, "secret": false, 
"description": "The maximum number of objects that listObjects returns. An 
exchange property of the same name replaces the maxKeys option, and this header 
replaces both.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#MAX_KEYS" },
+    "CamelAlibabaOssObjectKey": { "index": 7, "kind": "header", "displayName": 
"", "group": "common", "label": "common", "required": false, "javaType": 
"String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The key that the object is stored under", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#OBJECT_KEY" },
+    "CamelAlibabaOssLastModified": { "index": 8, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The date and time that the object was last modified", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#LAST_MODIFIED" },
+    "CamelAlibabaOssETag": { "index": 9, "kind": "header", "displayName": "", 
"group": "common", "label": "common", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
entity tag (ETag) of the object, which identifies its content. It is the MD5 
hash of the content only for an object created by PutObject.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#ETAG" },
+    "CamelAlibabaOssContentMD5": { "index": 10, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The 128-bit Base64-encoded digest of the object", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_MD5" },
+    "CamelAlibabaOssObjectType": { "index": 11, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Shows whether the object is a file or a folder", 
"constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#OBJECT_TYPE" },
+    "CamelAlibabaOssContentLength": { "index": 12, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "Long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The size of the object body in bytes", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_LENGTH" },
+    "CamelAlibabaOssContentType": { "index": 13, "kind": "header", 
"displayName": "", "group": "common", "label": "common", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The type of content stored in the object", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#CONTENT_TYPE" },
+    "CamelFileName": { "index": 14, "kind": "header", "displayName": "", 
"group": "common", "label": "common", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
name of the object. The consumer sets it for a consumed object, and the 
producer for getObject.", "constantName": 
"org.apache.camel.component.alibaba.oss.constants.OSSHeaders#FILE_NAME" }
   },
   "bodyTypes": {
     "consumerOut": { "carriers": [ "bytes" ], "javaType": "byte[]", 
"byOption": [ { "option": "includeBody", "value": "false", "carriers": [ 
"stream" ] } ], "description": "The content of the object as a byte array, one 
message per object, with its bucket, key and metadata in headers. With 
includeBody=false the stream of the content of the object, which is closed when 
the exchange is done" },
@@ -49,18 +55,18 @@
   "properties": {
     "bucketName": { "index": 0, "kind": "path", "displayName": "Bucket Name", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The name of the bucket, or of the destination 
bucket for copyObject. The CamelAlibabaOssBucketName exchange property replaces 
this option for the producer, and a header of the same name replaces both." },
     "endpoint": { "index": 1, "kind": "parameter", "displayName": "Endpoint 
url", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The endpoint of Object Storage Service, for 
example oss-cn-hangzhou.aliyuncs.com. If not set, the SDK builds it from the 
region option." },
-    "objectName": { "index": 2, "kind": "parameter", "displayName": "Object 
Name", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The name of the object for the producer, or of 
the destination object for copyObject. The CamelAlibabaOssObjectName exchange 
property replaces this option, and a header of the same name replaces both." },
-    "region": { "index": 3, "kind": "parameter", "displayName": "Service 
region", "group": "common", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The region ID of Object Storage Service, for 
example cn-hangzhou. The SDK uses it to sign requests, and to build the 
endpoint when the endpoint option is not set." },
+    "prefix": { "index": 2, "kind": "parameter", "displayName": "Prefix", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The prefix of the names of the objects to 
list, for the consumer and for listObjects. The CamelAlibabaOssPrefix exchange 
property replaces this option for the producer, and a header of the same name 
replaces both." },
+    "region": { "index": 3, "kind": "parameter", "displayName": "Service 
region", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The region ID of Object Storage Service, for 
example cn-hangzhou. The SDK uses it to sign requests, and to build the 
endpoint when the endpoint option is not set." },
     "deleteAfterRead": { "index": 4, "kind": "parameter", "displayName": 
"Delete after read", "group": "consumer", "label": "consumer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether to delete the object from the bucket after it is processed 
successfully. If false, the consumer consumes the object again in a later 
poll." },
     "includeBody": { "index": 5, "kind": "parameter", "displayName": "Include 
Body", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "If true, the content of 
each consumed object is read into a byte array, which is the body. If false, 
the body is the stream of the content of the object, which is closed when the 
exchange is done. For large o [...]
     "maxMessagesPerPoll": { "index": 6, "kind": "parameter", "displayName": 
"Maximum messages per poll", "group": "consumer", "label": "consumer", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": 10, "description": "The 
maximum number of objects that the consumer lists in one poll. Object Storage 
Service accepts a value of at most 1000. The consumer treats a value of 0 or 
less as 10." },
-    "prefix": { "index": 7, "kind": "parameter", "displayName": "Prefix", 
"group": "consumer", "label": "consumer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The prefix of the names of the objects to 
list, for the consumer and for listObjects. The CamelAlibabaOssPrefix exchange 
property replaces this option for the producer, and a header of the same name 
replaces both." },
-    "sendEmptyMessageWhenIdle": { "index": 8, "kind": "parameter", 
"displayName": "Send Empty Message When Idle", "group": "consumer", "label": 
"consumer", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": 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." },
-    "bridgeErrorHandler": { "index": 9, "kind": "parameter", "displayName": 
"Bridge Error Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions (if possible) occurred 
while the Camel consumer is trying to pickup incoming  [...]
-    "exceptionHandler": { "index": 10, "kind": "parameter", "displayName": 
"Exception Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By de [...]
-    "exchangePattern": { "index": 11, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
-    "pollStrategy": { "index": 12, "kind": "parameter", "displayName": "Poll 
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false, 
"autowired": false, "secret": false, "description": "A pluggable 
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your 
custom implementation to control error handling usually occurred during the po 
[...]
-    "maxKeys": { "index": 13, "kind": "parameter", "displayName": "Max Keys", 
"group": "producer", "label": "consumer,producer", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": 
false, "secret": false, "description": "The maximum number of objects that the 
producer returns for listObjects, or all of them if no value is set. Object 
Storage Service accepts a value of at most 1000. The CamelAlibabaOssMaxKeys 
exchange property replaces  [...]
+    "sendEmptyMessageWhenIdle": { "index": 7, "kind": "parameter", 
"displayName": "Send Empty Message When Idle", "group": "consumer", "label": 
"consumer", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": 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." },
+    "bridgeErrorHandler": { "index": 8, "kind": "parameter", "displayName": 
"Bridge Error Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions (if possible) occurred 
while the Camel consumer is trying to pickup incoming  [...]
+    "exceptionHandler": { "index": 9, "kind": "parameter", "displayName": 
"Exception Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By def [...]
+    "exchangePattern": { "index": 10, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
+    "pollStrategy": { "index": 11, "kind": "parameter", "displayName": "Poll 
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false, 
"autowired": false, "secret": false, "description": "A pluggable 
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your 
custom implementation to control error handling usually occurred during the po 
[...]
+    "maxKeys": { "index": 12, "kind": "parameter", "displayName": "Max Keys", 
"group": "producer", "label": "producer", "required": false, "type": "integer", 
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The maximum number of objects that the 
producer returns for listObjects, or all of them if no value is set. Object 
Storage Service accepts a value of at most 1000. The CamelAlibabaOssMaxKeys 
exchange property replaces this opti [...]
+    "objectName": { "index": 13, "kind": "parameter", "displayName": "Object 
Name", "group": "producer", "label": "producer", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "The name of the object for the 
producer, or of the destination object for copyObject. The 
CamelAlibabaOssObjectName exchange property replaces this option, and a header 
of the same name replaces both." },
     "operation": { "index": 14, "kind": "parameter", "displayName": 
"Operation", "group": "producer", "label": "producer", "required": false, 
"type": "enum", "javaType": "java.lang.String", "enum": [ "listBuckets", 
"listObjects", "putObject", "getObject", "deleteObject", "copyObject", 
"headObject" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "The operation that the producer performs. The 
CamelAlibabaOssOperation exchange property replaces this option, and a [...]
     "lazyStartProducer": { "index": 15, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produ [...]
     "ossClient": { "index": 16, "kind": "parameter", "displayName": "OSS 
Client", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "com.aliyun.sdk.service.oss2.OSSClient", "deprecated": 
false, "autowired": true, "secret": false, "description": "To use a custom 
com.aliyun.sdk.service.oss2.OSSClient. When this option is set or autowired, 
the region, endpoint, accessKey, secretKey, and serviceKeys options are not 
used. The Camel endpoint does not cl [...]
@@ -79,8 +85,8 @@
     "startScheduler": { "index": 29, "kind": "parameter", "displayName": 
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler", 
"required": false, "type": "boolean", "javaType": "boolean", "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": true, 
"description": "Whether the scheduler should be auto started." },
     "timeUnit": { "index": 30, "kind": "parameter", "displayName": "Time 
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false, 
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ 
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", 
"DAYS" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and 
delay options." },
     "useFixedDelay": { "index": 31, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
-    "accessKey": { "index": 32, "kind": "parameter", "displayName": "API 
access key (AK)", "group": "security", "label": "security", "required": true, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "description": "The 
AccessKey ID of the AccessKey pair for Object Storage Service. If not set, the 
accessKey of the serviceKeys option is used." },
-    "secretKey": { "index": 33, "kind": "parameter", "displayName": "API 
secret key (SK)", "group": "security", "label": "security", "required": true, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "description": "The 
AccessKey secret of the AccessKey pair for Object Storage Service. If not set, 
the secretKey of the serviceKeys option is used." },
+    "accessKey": { "index": 32, "kind": "parameter", "displayName": "API 
access key (AK)", "group": "security", "label": "security", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "description": "The 
AccessKey ID of the AccessKey pair for Object Storage Service. If not set, the 
accessKey of the serviceKeys option is used." },
+    "secretKey": { "index": 33, "kind": "parameter", "displayName": "API 
secret key (SK)", "group": "security", "label": "security", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "security": "secret", "description": "The 
AccessKey secret of the AccessKey pair for Object Storage Service. If not set, 
the secretKey of the serviceKeys option is used." },
     "serviceKeys": { "index": 34, "kind": "parameter", "displayName": "Service 
Configuration", "group": "security", "label": "security", "required": false, 
"type": "object", "javaType": 
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated": 
false, "autowired": false, "secret": true, "security": "secret", "description": 
"The AccessKey pair as an 
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its accessKey and 
its secretKey are each used when the optio [...]
   }
 }
diff --git 
a/components/camel-alibaba/camel-alibaba-oss/src/main/docs/alibaba-oss-component.adoc
 
b/components/camel-alibaba/camel-alibaba-oss/src/main/docs/alibaba-oss-component.adoc
index 38c0dee6d8d9..90435a866484 100644
--- 
a/components/camel-alibaba/camel-alibaba-oss/src/main/docs/alibaba-oss-component.adoc
+++ 
b/components/camel-alibaba/camel-alibaba-oss/src/main/docs/alibaba-oss-component.adoc
@@ -44,30 +44,6 @@ include::partial$component-endpoint-headers.adoc[]
 
 == Usage
 
-=== Message headers evaluated by the OSS producer
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Header |Type |Description
-
-|`CamelAlibabaOssOperation` |`String` | Name of operation to invoke
-
-|`CamelAlibabaOssBucketName` |`String` | Bucket name to invoke operation on 
(overrides the URI path bucket name)
-
-|`CamelAlibabaOssObjectName` |`String` | Name of the object to be used in 
operation
-
-|`CamelAlibabaOssSourceBucketName` |`String` | Source bucket name for copy 
operations
-
-|`CamelAlibabaOssSourceObjectName` |`String` | Source object name for copy 
operations
-
-|`CamelAlibabaOssPrefix` |`String` | Prefix filter when listing objects
-
-|`CamelAlibabaOssMaxKeys` |`Integer` | Maximum number of keys returned when 
listing objects
-
-|=======================================================================
-
-If any of the above headers are set, they will override their corresponding 
query parameter or URI path value.
-
 === List of Supported OSS Operations
 
 - listBuckets
diff --git 
a/components/camel-alibaba/camel-alibaba-oss/src/main/java/org/apache/camel/component/alibaba/oss/OSSEndpoint.java
 
b/components/camel-alibaba/camel-alibaba-oss/src/main/java/org/apache/camel/component/alibaba/oss/OSSEndpoint.java
index d4beaf1fe5a3..edbaaebd8048 100644
--- 
a/components/camel-alibaba/camel-alibaba-oss/src/main/java/org/apache/camel/component/alibaba/oss/OSSEndpoint.java
+++ 
b/components/camel-alibaba/camel-alibaba-oss/src/main/java/org/apache/camel/component/alibaba/oss/OSSEndpoint.java
@@ -83,7 +83,6 @@ public class OSSEndpoint extends ScheduledPollEndpoint {
     @UriParam(description = "The region ID of Object Storage Service, for 
example cn-hangzhou. The SDK uses it to sign"
                             + " requests, and to build the endpoint when the 
endpoint option is not set.",
               displayName = "Service region")
-    @Metadata(required = true)
     private String region;
 
     @UriParam(description = "The endpoint of Object Storage Service, for 
example oss-cn-hangzhou.aliyuncs.com. If not set, the"
@@ -101,27 +100,24 @@ public class OSSEndpoint extends ScheduledPollEndpoint {
                             + " the serviceKeys option is used.",
               displayName = "API access key (AK)", security = "secret",
               label = "security")
-    @Metadata(required = true)
     private String accessKey;
 
     @UriParam(description = "The AccessKey secret of the AccessKey pair for 
Object Storage Service. If not set, the secretKey"
                             + " of the serviceKeys option is used.",
               displayName = "API secret key (SK)", security = "secret",
               label = "security")
-    @Metadata(required = true)
     private String secretKey;
 
     @UriParam(description = "The name of the object for the producer, or of 
the destination object for copyObject. The"
                             + " CamelAlibabaOssObjectName exchange property 
replaces this option, and a header of the same name"
                             + " replaces both.",
-              displayName = "Object Name")
+              displayName = "Object Name", label = "producer")
     private String objectName;
 
     @UriParam(description = "The prefix of the names of the objects to list, 
for the consumer and for listObjects. The"
                             + " CamelAlibabaOssPrefix exchange property 
replaces this option for the producer, and a header of"
                             + " the same name replaces both.",
-              displayName = "Prefix",
-              label = "consumer")
+              displayName = "Prefix")
     private String prefix;
 
     @UriParam(description = "The maximum number of objects that the producer 
returns for listObjects, or all of them if no"
@@ -129,7 +125,7 @@ public class OSSEndpoint extends ScheduledPollEndpoint {
                             + " CamelAlibabaOssMaxKeys exchange property 
replaces this option, and a header of the same name"
                             + " replaces both.",
               displayName = "Max Keys",
-              label = "consumer,producer")
+              label = "producer")
     private Integer maxKeys;
 
     @UriParam(description = "Whether to delete the object from the bucket 
after it is processed successfully. If false, the"
diff --git 
a/components/camel-alibaba/camel-alibaba-oss/src/main/java/org/apache/camel/component/alibaba/oss/constants/OSSHeaders.java
 
b/components/camel-alibaba/camel-alibaba-oss/src/main/java/org/apache/camel/component/alibaba/oss/constants/OSSHeaders.java
index 6e2653f3b300..f02af4a58ffb 100644
--- 
a/components/camel-alibaba/camel-alibaba-oss/src/main/java/org/apache/camel/component/alibaba/oss/constants/OSSHeaders.java
+++ 
b/components/camel-alibaba/camel-alibaba-oss/src/main/java/org/apache/camel/component/alibaba/oss/constants/OSSHeaders.java
@@ -20,32 +20,61 @@ import org.apache.camel.Exchange;
 import org.apache.camel.spi.Metadata;
 
 /**
- * Constants for the exchange headers when consuming objects
+ * Constants for the message headers of the consumer and the producer
  */
 public final class OSSHeaders {
-    @Metadata(label = "consumer", description = "The name of the bucket. The 
consumer sets it for a consumed object, and the"
-                                                + " producer for getObject. An 
exchange property of the same name replaces the"
-                                                + " bucketName option for the 
producer, and this header replaces both.",
+    @Metadata(label = "producer", description = "The operation that the 
producer performs. An exchange property of the same"
+                                                + " name replaces the 
operation option, and this header replaces both.",
+              javaType = "String", enums = 
"listBuckets,listObjects,putObject,getObject,deleteObject,copyObject,headObject")
+    public static final String OPERATION = OSSProperties.OPERATION;
+    @Metadata(label = "common", description = "The name of the bucket. The 
consumer sets it for a consumed object, and the"
+                                              + " producer for getObject. An 
exchange property of the same name replaces the"
+                                              + " bucketName option for the 
producer, and this header replaces both.",
               javaType = "String")
     public static final String BUCKET_NAME = "CamelAlibabaOssBucketName";
-    @Metadata(label = "consumer", description = "The key that the object is 
stored under", javaType = "String")
+    @Metadata(label = "producer", description = "The name of the object, or of 
the destination object for copyObject. An"
+                                                + " exchange property of the 
same name replaces the objectName option, and this"
+                                                + " header replaces both.",
+              javaType = "String")
+    public static final String OBJECT_NAME = OSSProperties.OBJECT_NAME;
+    @Metadata(label = "producer", description = "The name of the source bucket 
for copyObject, which requires it. If this"
+                                                + " header is not set, the 
producer uses an exchange property of the same"
+                                                + " name.",
+              javaType = "String")
+    public static final String SOURCE_BUCKET_NAME = 
OSSProperties.SOURCE_BUCKET_NAME;
+    @Metadata(label = "producer", description = "The name of the source object 
for copyObject, which requires it. If this"
+                                                + " header is not set, the 
producer uses an exchange property of the same"
+                                                + " name.",
+              javaType = "String")
+    public static final String SOURCE_OBJECT_NAME = 
OSSProperties.SOURCE_OBJECT_NAME;
+    @Metadata(label = "producer", description = "The prefix of the names of 
the objects that listObjects returns. An exchange"
+                                                + " property of the same name 
replaces the prefix option for the producer, and"
+                                                + " this header replaces 
both.",
+              javaType = "String")
+    public static final String PREFIX = OSSProperties.PREFIX;
+    @Metadata(label = "producer", description = "The maximum number of objects 
that listObjects returns. An exchange property"
+                                                + " of the same name replaces 
the maxKeys option, and this header replaces"
+                                                + " both.",
+              javaType = "Integer")
+    public static final String MAX_KEYS = OSSProperties.MAX_KEYS;
+    @Metadata(label = "common", description = "The key that the object is 
stored under", javaType = "String")
     public static final String OBJECT_KEY = "CamelAlibabaOssObjectKey";
-    @Metadata(label = "consumer", description = "The date and time that the 
object was last modified", javaType = "String")
+    @Metadata(label = "common", description = "The date and time that the 
object was last modified", javaType = "String")
     public static final String LAST_MODIFIED = "CamelAlibabaOssLastModified";
-    @Metadata(label = "consumer", description = "The entity tag (ETag) of the 
object, which identifies its content. It is the"
-                                                + " MD5 hash of the content 
only for an object created by PutObject.",
+    @Metadata(label = "common", description = "The entity tag (ETag) of the 
object, which identifies its content. It is the MD5"
+                                              + " hash of the content only for 
an object created by PutObject.",
               javaType = "String")
     public static final String ETAG = "CamelAlibabaOssETag";
-    @Metadata(label = "consumer", description = "The 128-bit Base64-encoded 
digest of the object", javaType = "String")
+    @Metadata(label = "common", description = "The 128-bit Base64-encoded 
digest of the object", javaType = "String")
     public static final String CONTENT_MD5 = "CamelAlibabaOssContentMD5";
-    @Metadata(label = "consumer", description = "Shows whether the object is a 
`file` or a `folder`", javaType = "String")
+    @Metadata(label = "common", description = "Shows whether the object is a 
`file` or a `folder`", javaType = "String")
     public static final String OBJECT_TYPE = "CamelAlibabaOssObjectType";
-    @Metadata(label = "consumer", description = "The size of the object body 
in bytes", javaType = "Long")
+    @Metadata(label = "common", description = "The size of the object body in 
bytes", javaType = "Long")
     public static final String CONTENT_LENGTH = "CamelAlibabaOssContentLength";
-    @Metadata(label = "consumer", description = "The type of content stored in 
the object", javaType = "String")
+    @Metadata(label = "common", description = "The type of content stored in 
the object", javaType = "String")
     public static final String CONTENT_TYPE = "CamelAlibabaOssContentType";
-    @Metadata(label = "consumer", description = "The name of the object. The 
consumer sets it for a consumed object, and the"
-                                                + " producer for getObject.",
+    @Metadata(label = "common", description = "The name of the object. The 
consumer sets it for a consumed object, and the"
+                                              + " producer for getObject.",
               javaType = "String")
     public static final String FILE_NAME = Exchange.FILE_NAME;
 
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index ebfe8e8dd7b9..4288d2dc8b8a 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -7123,6 +7123,35 @@ with the stack trace, at every poll that lists the 
object). Before, the poll fai
 page again, so one such object stopped the consumer from consuming any object. 
The poll still fails when none of the
 listed objects could be got, and the next poll then reads the next page of the 
listing.
 
+=== camel-alibaba-oss - region, accessKey and secretKey are no longer marked 
as required
+
+The `region`, `accessKey` and `secretKey` options of `alibaba-oss` are no 
longer marked as required. To create the
+client, the Camel endpoint needs the `region` or the `endpoint` option. It 
takes each key of the AccessKey pair from its
+own option or from the `serviceKeys` option. It needs none of these options 
when the `ossClient` option is set or
+autowired. So the endpoint validation of the catalog no longer reports a URI 
without them as missing required options.
+The behavior of the component at runtime does not change.
+
+=== camel-alibaba-oss - objectName and maxKeys are producer options, and 
prefix is also a producer option
+
+The `objectName` option of the `alibaba-oss` endpoint now has the label 
`producer`, as only the producer uses it. In the
+Endpoint DSL, `OSSEndpointConsumerBuilder` no longer has its method. So 
`from(alibabaOss(...).objectName(...))` no
+longer compiles. Code compiled against an earlier version that calls it on the 
`alibabaOss(...)` builder must be
+recompiled. Remove the option from consumer endpoints, where it had no effect. 
The endpoint validation of the catalog
+now reports it in consumer-only mode.
+
+The `prefix` option no longer has the label `consumer`, as the producer uses 
it too for `listObjects`. The `maxKeys`
+option now has only the label `producer`, as the consumer does not use it. In 
the Endpoint DSL,
+`OSSEndpointProducerBuilder` now has the methods of both options. Before, it 
had neither, and no builder had `maxKeys`.
+The endpoint validation of the catalog no longer reports the two options in 
producer-only mode.
+
+The catalog and the Endpoint DSL now list six more headers, which only the 
producer reads. They are
+`CamelAlibabaOssOperation`, `CamelAlibabaOssObjectName`, 
`CamelAlibabaOssSourceBucketName`,
+`CamelAlibabaOssSourceObjectName`, `CamelAlibabaOssPrefix` and 
`CamelAlibabaOssMaxKeys`. `OSSHeaders` has a constant for
+each. The other nine headers now have the label `common` instead of 
`consumer`, as the producer sets them too for
+`getObject`.
+
+The behavior of the component at runtime does not change.
+
 === camel-alibaba-fc - invokeFunction sends a stream or a file as its bytes
 
 The `invokeFunction` operation of `alibaba-fc` now sends a stream or a file 
body (an `InputStream`, a `java.io.File`,
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/OSSEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/OSSEndpointBuilderFactory.java
index b1eb28b96f26..d128b6bcbd47 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/OSSEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/OSSEndpointBuilderFactory.java
@@ -60,19 +60,20 @@ public interface OSSEndpointBuilderFactory {
             return this;
         }
         /**
-         * The name of the object for the producer, or of the destination 
object
-         * for copyObject. The CamelAlibabaOssObjectName exchange property
-         * replaces this option, and a header of the same name replaces both.
+         * The prefix of the names of the objects to list, for the consumer and
+         * for listObjects. The CamelAlibabaOssPrefix exchange property 
replaces
+         * this option for the producer, and a header of the same name replaces
+         * both.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
          * Group: common
          * 
-         * @param objectName the value to set
+         * @param prefix the value to set
          * @return the dsl builder
          */
-        default OSSEndpointConsumerBuilder objectName(String objectName) {
-            doSetProperty("objectName", objectName);
+        default OSSEndpointConsumerBuilder prefix(String prefix) {
+            doSetProperty("prefix", prefix);
             return this;
         }
         /**
@@ -82,7 +83,6 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
-         * Required: true
          * Group: common
          * 
          * @param region the value to set
@@ -200,23 +200,6 @@ public interface OSSEndpointBuilderFactory {
             doSetProperty("maxMessagesPerPoll", maxMessagesPerPoll);
             return this;
         }
-        /**
-         * The prefix of the names of the objects to list, for the consumer and
-         * for listObjects. The CamelAlibabaOssPrefix exchange property 
replaces
-         * this option for the producer, and a header of the same name replaces
-         * both.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: consumer
-         * 
-         * @param prefix the value to set
-         * @return the dsl builder
-         */
-        default OSSEndpointConsumerBuilder prefix(String prefix) {
-            doSetProperty("prefix", prefix);
-            return this;
-        }
         /**
          * If the polling consumer did not poll any files, you can enable this
          * option to send an empty message (no body) instead.
@@ -754,7 +737,6 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
-         * Required: true
          * Group: security
          * 
          * @param accessKey the value to set
@@ -770,7 +752,6 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
-         * Required: true
          * Group: security
          * 
          * @param secretKey the value to set
@@ -1045,19 +1026,20 @@ public interface OSSEndpointBuilderFactory {
             return this;
         }
         /**
-         * The name of the object for the producer, or of the destination 
object
-         * for copyObject. The CamelAlibabaOssObjectName exchange property
-         * replaces this option, and a header of the same name replaces both.
+         * The prefix of the names of the objects to list, for the consumer and
+         * for listObjects. The CamelAlibabaOssPrefix exchange property 
replaces
+         * this option for the producer, and a header of the same name replaces
+         * both.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
          * Group: common
          * 
-         * @param objectName the value to set
+         * @param prefix the value to set
          * @return the dsl builder
          */
-        default OSSEndpointProducerBuilder objectName(String objectName) {
-            doSetProperty("objectName", objectName);
+        default OSSEndpointProducerBuilder prefix(String prefix) {
+            doSetProperty("prefix", prefix);
             return this;
         }
         /**
@@ -1067,7 +1049,6 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
-         * Required: true
          * Group: common
          * 
          * @param region the value to set
@@ -1077,6 +1058,59 @@ public interface OSSEndpointBuilderFactory {
             doSetProperty("region", region);
             return this;
         }
+        /**
+         * The maximum number of objects that the producer returns for
+         * listObjects, or all of them if no value is set. Object Storage
+         * Service accepts a value of at most 1000. The CamelAlibabaOssMaxKeys
+         * exchange property replaces this option, and a header of the same 
name
+         * replaces both.
+         * 
+         * The option is a: <code>java.lang.Integer</code> type.
+         * 
+         * Group: producer
+         * 
+         * @param maxKeys the value to set
+         * @return the dsl builder
+         */
+        default OSSEndpointProducerBuilder maxKeys(Integer maxKeys) {
+            doSetProperty("maxKeys", maxKeys);
+            return this;
+        }
+        /**
+         * The maximum number of objects that the producer returns for
+         * listObjects, or all of them if no value is set. Object Storage
+         * Service accepts a value of at most 1000. The CamelAlibabaOssMaxKeys
+         * exchange property replaces this option, and a header of the same 
name
+         * replaces both.
+         * 
+         * The option will be converted to a <code>java.lang.Integer</code>
+         * type.
+         * 
+         * Group: producer
+         * 
+         * @param maxKeys the value to set
+         * @return the dsl builder
+         */
+        default OSSEndpointProducerBuilder maxKeys(String maxKeys) {
+            doSetProperty("maxKeys", maxKeys);
+            return this;
+        }
+        /**
+         * The name of the object for the producer, or of the destination 
object
+         * for copyObject. The CamelAlibabaOssObjectName exchange property
+         * replaces this option, and a header of the same name replaces both.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         * 
+         * @param objectName the value to set
+         * @return the dsl builder
+         */
+        default OSSEndpointProducerBuilder objectName(String objectName) {
+            doSetProperty("objectName", objectName);
+            return this;
+        }
         /**
          * The operation that the producer performs. The
          * CamelAlibabaOssOperation exchange property replaces this option, and
@@ -1099,7 +1133,6 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
-         * Required: true
          * Group: security
          * 
          * @param accessKey the value to set
@@ -1115,7 +1148,6 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
-         * Required: true
          * Group: security
          * 
          * @param secretKey the value to set
@@ -1283,19 +1315,20 @@ public interface OSSEndpointBuilderFactory {
             return this;
         }
         /**
-         * The name of the object for the producer, or of the destination 
object
-         * for copyObject. The CamelAlibabaOssObjectName exchange property
-         * replaces this option, and a header of the same name replaces both.
+         * The prefix of the names of the objects to list, for the consumer and
+         * for listObjects. The CamelAlibabaOssPrefix exchange property 
replaces
+         * this option for the producer, and a header of the same name replaces
+         * both.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
          * Group: common
          * 
-         * @param objectName the value to set
+         * @param prefix the value to set
          * @return the dsl builder
          */
-        default OSSEndpointBuilder objectName(String objectName) {
-            doSetProperty("objectName", objectName);
+        default OSSEndpointBuilder prefix(String prefix) {
+            doSetProperty("prefix", prefix);
             return this;
         }
         /**
@@ -1305,7 +1338,6 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
-         * Required: true
          * Group: common
          * 
          * @param region the value to set
@@ -1321,7 +1353,6 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
-         * Required: true
          * Group: security
          * 
          * @param accessKey the value to set
@@ -1337,7 +1368,6 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
-         * Required: true
          * Group: security
          * 
          * @param secretKey the value to set
@@ -1507,6 +1537,20 @@ public interface OSSEndpointBuilderFactory {
          */
         public static final OSSHeaderNameBuilder INSTANCE = new 
OSSHeaderNameBuilder();
 
+        /**
+         * The operation that the producer performs. An exchange property of 
the
+         * same name replaces the operation option, and this header replaces
+         * both.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code AlibabaOssOperation}.
+         */
+        public String alibabaOssOperation() {
+            return "CamelAlibabaOssOperation";
+        }
         /**
          * The name of the bucket. The consumer sets it for a consumed object,
          * and the producer for getObject. An exchange property of the same 
name
@@ -1515,19 +1559,89 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: {@code String} type.
          * 
-         * Group: consumer
+         * Group: common
          * 
          * @return the name of the header {@code AlibabaOssBucketName}.
          */
         public String alibabaOssBucketName() {
             return "CamelAlibabaOssBucketName";
         }
+        /**
+         * The name of the object, or of the destination object for copyObject.
+         * An exchange property of the same name replaces the objectName 
option,
+         * and this header replaces both.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code AlibabaOssObjectName}.
+         */
+        public String alibabaOssObjectName() {
+            return "CamelAlibabaOssObjectName";
+        }
+        /**
+         * The name of the source bucket for copyObject, which requires it. If
+         * this header is not set, the producer uses an exchange property of 
the
+         * same name.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code AlibabaOssSourceBucketName}.
+         */
+        public String alibabaOssSourceBucketName() {
+            return "CamelAlibabaOssSourceBucketName";
+        }
+        /**
+         * The name of the source object for copyObject, which requires it. If
+         * this header is not set, the producer uses an exchange property of 
the
+         * same name.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code AlibabaOssSourceObjectName}.
+         */
+        public String alibabaOssSourceObjectName() {
+            return "CamelAlibabaOssSourceObjectName";
+        }
+        /**
+         * The prefix of the names of the objects that listObjects returns. An
+         * exchange property of the same name replaces the prefix option for 
the
+         * producer, and this header replaces both.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code AlibabaOssPrefix}.
+         */
+        public String alibabaOssPrefix() {
+            return "CamelAlibabaOssPrefix";
+        }
+        /**
+         * The maximum number of objects that listObjects returns. An exchange
+         * property of the same name replaces the maxKeys option, and this
+         * header replaces both.
+         * 
+         * The option is a: {@code Integer} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code AlibabaOssMaxKeys}.
+         */
+        public String alibabaOssMaxKeys() {
+            return "CamelAlibabaOssMaxKeys";
+        }
         /**
          * The key that the object is stored under.
          * 
          * The option is a: {@code String} type.
          * 
-         * Group: consumer
+         * Group: common
          * 
          * @return the name of the header {@code AlibabaOssObjectKey}.
          */
@@ -1539,7 +1653,7 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: {@code String} type.
          * 
-         * Group: consumer
+         * Group: common
          * 
          * @return the name of the header {@code AlibabaOssLastModified}.
          */
@@ -1553,7 +1667,7 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: {@code String} type.
          * 
-         * Group: consumer
+         * Group: common
          * 
          * @return the name of the header {@code AlibabaOssETag}.
          */
@@ -1565,7 +1679,7 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: {@code String} type.
          * 
-         * Group: consumer
+         * Group: common
          * 
          * @return the name of the header {@code AlibabaOssContentMD5}.
          */
@@ -1577,7 +1691,7 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: {@code String} type.
          * 
-         * Group: consumer
+         * Group: common
          * 
          * @return the name of the header {@code AlibabaOssObjectType}.
          */
@@ -1589,7 +1703,7 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: {@code Long} type.
          * 
-         * Group: consumer
+         * Group: common
          * 
          * @return the name of the header {@code AlibabaOssContentLength}.
          */
@@ -1601,7 +1715,7 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: {@code String} type.
          * 
-         * Group: consumer
+         * Group: common
          * 
          * @return the name of the header {@code AlibabaOssContentType}.
          */
@@ -1614,7 +1728,7 @@ public interface OSSEndpointBuilderFactory {
          * 
          * The option is a: {@code String} type.
          * 
-         * Group: consumer
+         * Group: common
          * 
          * @return the name of the header {@code FileName}.
          */

Reply via email to