Interface ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
- ImageRecognitionEndpointBuilderFactory
public static interface ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the Huawei Cloud Image Recognition component.
-
Method Summary
Modifier and TypeMethodDescriptionAccess key for the cloud user.advanced()
Fully qualified Image Recognition service url.ignoreSslVerification
(boolean ignoreSslVerification) Ignore SSL verification.ignoreSslVerification
(String ignoreSslVerification) Ignore SSL verification.imageContent
(String imageContent) Indicates the Base64 character string converted from the image.Indicates the URL of an image.Cloud project ID.Proxy server ip/hostname.proxyPassword
(String proxyPassword) Proxy authentication password.proxyPort
(int proxyPort) Proxy server port.Proxy server port.Proxy authentication user.Image Recognition service region.Secret key for the cloud user.serviceKeys
(String serviceKeys) Configuration object for cloud service authentication.serviceKeys
(org.apache.camel.component.huaweicloud.common.models.ServiceKeys serviceKeys) Configuration object for cloud service authentication.tagLanguage
(String tagLanguage) Indicates the language of the returned tags when the operation is tagRecognition, including zh and en.tagLimit
(int tagLimit) Indicates the maximum number of the returned tags when the operation is tagRecognition.Indicates the maximum number of the returned tags when the operation is tagRecognition.threshold
(float threshold) Indicates the threshold of confidence.Indicates the threshold of confidence.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
accessKey
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder accessKey(String accessKey) Access key for the cloud user. The option is a: <code>java.lang.String</code> type. Required: true Group: producer- Parameters:
accessKey
- the value to set- Returns:
- the dsl builder
-
endpoint
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder endpoint(String endpoint) Fully qualified Image Recognition service url. Carries higher precedence than region based configuration. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
endpoint
- the value to set- Returns:
- the dsl builder
-
imageContent
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder imageContent(String imageContent) Indicates the Base64 character string converted from the image. The size cannot exceed 10 MB. The image resolution of the narrow sides must be greater than 15 pixels, and that of the wide sides cannot exceed 4096 pixels.The supported image formats include JPG, PNG, and BMP. Configure either this parameter or imageUrl, and this one carries higher precedence than imageUrl. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
imageContent
- the value to set- Returns:
- the dsl builder
-
imageUrl
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder imageUrl(String imageUrl) Indicates the URL of an image. The options are as follows: HTTP/HTTPS URLs on the public network OBS URLs. To use OBS data, authorization is required, including service authorization, temporary authorization, and anonymous public authorization. For details, see Configuring the Access Permission of OBS. Configure either this parameter or imageContent, and this one carries lower precedence than imageContent. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
imageUrl
- the value to set- Returns:
- the dsl builder
-
projectId
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder projectId(String projectId) Cloud project ID. The option is a: <code>java.lang.String</code> type. Required: true Group: producer- Parameters:
projectId
- the value to set- Returns:
- the dsl builder
-
proxyHost
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder proxyHost(String proxyHost) Proxy server ip/hostname. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
proxyHost
- the value to set- Returns:
- the dsl builder
-
proxyPassword
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder proxyPassword(String proxyPassword) Proxy authentication password. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
proxyPassword
- the value to set- Returns:
- the dsl builder
-
proxyPort
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder proxyPort(int proxyPort) Proxy server port. The option is a: <code>int</code> type. Group: producer- Parameters:
proxyPort
- the value to set- Returns:
- the dsl builder
-
proxyPort
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder proxyPort(String proxyPort) Proxy server port. The option will be converted to a <code>int</code> type. Group: producer- Parameters:
proxyPort
- the value to set- Returns:
- the dsl builder
-
proxyUser
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder proxyUser(String proxyUser) Proxy authentication user. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
proxyUser
- the value to set- Returns:
- the dsl builder
-
region
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder region(String region) Image Recognition service region. Currently only cn-north-1 and cn-north-4 are supported. This is lower precedence than endpoint based configuration. The option is a: <code>java.lang.String</code> type. Required: true Group: producer- Parameters:
region
- the value to set- Returns:
- the dsl builder
-
secretKey
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder secretKey(String secretKey) Secret key for the cloud user. The option is a: <code>java.lang.String</code> type. Required: true Group: producer- Parameters:
secretKey
- the value to set- Returns:
- the dsl builder
-
serviceKeys
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder serviceKeys(org.apache.camel.component.huaweicloud.common.models.ServiceKeys serviceKeys) Configuration object for cloud service authentication. The option is a: <code>org.apache.camel.component.huaweicloud.common.models.ServiceKeys</code> type. Group: producer- Parameters:
serviceKeys
- the value to set- Returns:
- the dsl builder
-
serviceKeys
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder serviceKeys(String serviceKeys) Configuration object for cloud service authentication. The option will be converted to a <code>org.apache.camel.component.huaweicloud.common.models.ServiceKeys</code> type. Group: producer- Parameters:
serviceKeys
- the value to set- Returns:
- the dsl builder
-
tagLanguage
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder tagLanguage(String tagLanguage) Indicates the language of the returned tags when the operation is tagRecognition, including zh and en. The option is a: <code>java.lang.String</code> type. Default: zh Group: producer- Parameters:
tagLanguage
- the value to set- Returns:
- the dsl builder
-
tagLimit
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder tagLimit(int tagLimit) Indicates the maximum number of the returned tags when the operation is tagRecognition. The option is a: <code>int</code> type. Default: 50 Group: producer- Parameters:
tagLimit
- the value to set- Returns:
- the dsl builder
-
tagLimit
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder tagLimit(String tagLimit) Indicates the maximum number of the returned tags when the operation is tagRecognition. The option will be converted to a <code>int</code> type. Default: 50 Group: producer- Parameters:
tagLimit
- the value to set- Returns:
- the dsl builder
-
threshold
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder threshold(float threshold) Indicates the threshold of confidence. When the operation is tagRecognition, this parameter ranges from 0 to 100. Tags whose confidence score is lower than the threshold will not be returned. The default value is 60. When the operation is celebrityRecognition, this parameter ranges from 0 to 1. Labels whose confidence score is lower than the threshold will not be returned. The default value is 0.48. The option is a: <code>float</code> type. Group: producer- Parameters:
threshold
- the value to set- Returns:
- the dsl builder
-
threshold
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder threshold(String threshold) Indicates the threshold of confidence. When the operation is tagRecognition, this parameter ranges from 0 to 100. Tags whose confidence score is lower than the threshold will not be returned. The default value is 60. When the operation is celebrityRecognition, this parameter ranges from 0 to 1. Labels whose confidence score is lower than the threshold will not be returned. The default value is 0.48. The option will be converted to a <code>float</code> type. Group: producer- Parameters:
threshold
- the value to set- Returns:
- the dsl builder
-
ignoreSslVerification
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder ignoreSslVerification(boolean ignoreSslVerification) Ignore SSL verification. The option is a: <code>boolean</code> type. Default: false Group: security- Parameters:
ignoreSslVerification
- the value to set- Returns:
- the dsl builder
-
ignoreSslVerification
default ImageRecognitionEndpointBuilderFactory.ImageRecognitionEndpointBuilder ignoreSslVerification(String ignoreSslVerification) Ignore SSL verification. The option will be converted to a <code>boolean</code> type. Default: false Group: security- Parameters:
ignoreSslVerification
- the value to set- Returns:
- the dsl builder
-