This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 53de4efba93dffa25898dc2f8817832a7d248d42 Author: Andrea Cosentino <[email protected]> AuthorDate: Tue Feb 16 09:13:28 2021 +0100 CAMEL-16115 - Remove Camel-AWS-* components - AWS-Translate --- .../component/ComponentsBuilderFactory.java | 16 +- .../dsl/AwsTranslateComponentBuilderFactory.java | 349 ---------------- .../builder/endpoint/StaticEndpointBuilders.java | 47 +-- .../dsl/TranslateEndpointBuilderFactory.java | 444 --------------------- 4 files changed, 2 insertions(+), 854 deletions(-) diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 0c117cc..48f6fda 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -558,20 +558,6 @@ public interface ComponentsBuilderFactory { return org.apache.camel.builder.component.dsl.AwsSwfComponentBuilderFactory.awsSwf(); } /** - * AWS Translate (camel-aws-translate) - * Translate texts using AWS Translate. - * - * Category: cloud,management - * Since: 3.0 - * Maven coordinates: org.apache.camel:camel-aws-translate - * - * @return the dsl builder - */ - @Deprecated - static org.apache.camel.builder.component.dsl.AwsTranslateComponentBuilderFactory.AwsTranslateComponentBuilder awsTranslate() { - return org.apache.camel.builder.component.dsl.AwsTranslateComponentBuilderFactory.awsTranslate(); - } - /** * AWS 2 Athena (camel-aws2-athena) * Access AWS Athena service using AWS SDK version 2.x. * @@ -4918,4 +4904,4 @@ public interface ComponentsBuilderFactory { static org.apache.camel.builder.component.dsl.ZookeeperMasterComponentBuilderFactory.ZookeeperMasterComponentBuilder zookeeperMaster() { return org.apache.camel.builder.component.dsl.ZookeeperMasterComponentBuilderFactory.zookeeperMaster(); } -} \ No newline at end of file +} diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsTranslateComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsTranslateComponentBuilderFactory.java deleted file mode 100644 index 7116d7e..0000000 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsTranslateComponentBuilderFactory.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.builder.component.dsl; - -import javax.annotation.Generated; -import org.apache.camel.Component; -import org.apache.camel.builder.component.AbstractComponentBuilder; -import org.apache.camel.builder.component.ComponentBuilder; -import org.apache.camel.component.aws.translate.TranslateComponent; - -/** - * Translate texts using AWS Translate. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Generated("org.apache.camel.maven.packaging.ComponentDslMojo") -public interface AwsTranslateComponentBuilderFactory { - - /** - * AWS Translate (camel-aws-translate) - * Translate texts using AWS Translate. - * - * Category: cloud,management - * Since: 3.0 - * Maven coordinates: org.apache.camel:camel-aws-translate - * - * @return the dsl builder - */ - @Deprecated - static AwsTranslateComponentBuilder awsTranslate() { - return new AwsTranslateComponentBuilderImpl(); - } - - /** - * Builder for the AWS Translate component. - */ - interface AwsTranslateComponentBuilder - extends - ComponentBuilder<TranslateComponent> { - /** - * Setting the autoDiscoverClient mechanism, if true, the component will - * look for a client instance in the registry automatically otherwise it - * will skip that checking. - * - * The option is a: <code>boolean</code> type. - * - * Default: true - * Group: common - * - * @param autoDiscoverClient the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder autoDiscoverClient( - boolean autoDiscoverClient) { - doSetProperty("autoDiscoverClient", autoDiscoverClient); - return this; - } - /** - * Amazon AWS Access Key. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param accessKey the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder accessKey( - java.lang.String accessKey) { - doSetProperty("accessKey", accessKey); - return this; - } - /** - * Being able to autodetect the source language. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: producer - * - * @param autodetectSourceLanguage the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder autodetectSourceLanguage( - boolean autodetectSourceLanguage) { - doSetProperty("autodetectSourceLanguage", autodetectSourceLanguage); - return this; - } - /** - * The component configuration. - * - * The option is a: - * <code>org.apache.camel.component.aws.translate.TranslateConfiguration</code> type. - * - * Group: producer - * - * @param configuration the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder configuration( - org.apache.camel.component.aws.translate.TranslateConfiguration configuration) { - doSetProperty("configuration", configuration); - return this; - } - /** - * 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 producer may otherwise fail during - * starting and cause the route to fail being started. By deferring this - * startup to be lazy then the startup failure can be handled during - * routing messages via Camel's routing error handlers. Beware that when - * the first message is processed then creating and starting the - * producer may take a little time and prolong the total processing time - * of the processing. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: producer - * - * @param lazyStartProducer the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder lazyStartProducer( - boolean lazyStartProducer) { - doSetProperty("lazyStartProducer", lazyStartProducer); - return this; - } - /** - * The operation to perform. - * - * The option is a: - * <code>org.apache.camel.component.aws.translate.TranslateOperations</code> type. - * - * Default: translateText - * Group: producer - * - * @param operation the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder operation( - org.apache.camel.component.aws.translate.TranslateOperations operation) { - doSetProperty("operation", operation); - return this; - } - /** - * To define a proxy host when instantiating the Translate client. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param proxyHost the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder proxyHost( - java.lang.String proxyHost) { - doSetProperty("proxyHost", proxyHost); - return this; - } - /** - * To define a proxy port when instantiating the Translate client. - * - * The option is a: <code>java.lang.Integer</code> type. - * - * Group: producer - * - * @param proxyPort the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder proxyPort( - java.lang.Integer proxyPort) { - doSetProperty("proxyPort", proxyPort); - return this; - } - /** - * To define a proxy protocol when instantiating the Translate client. - * - * The option is a: <code>com.amazonaws.Protocol</code> - * type. - * - * Default: HTTPS - * Group: producer - * - * @param proxyProtocol the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder proxyProtocol( - com.amazonaws.Protocol proxyProtocol) { - doSetProperty("proxyProtocol", proxyProtocol); - return this; - } - /** - * The region in which Translate client needs to work. When using this - * parameter, the configuration will expect the capitalized name of the - * region (for example AP_EAST_1) You'll need to use the name - * Regions.EU_WEST_1.name(). - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param region the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder region(java.lang.String region) { - doSetProperty("region", region); - return this; - } - /** - * Amazon AWS Secret Key. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param secretKey the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder secretKey( - java.lang.String secretKey) { - doSetProperty("secretKey", secretKey); - return this; - } - /** - * Source language to use. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param sourceLanguage the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder sourceLanguage( - java.lang.String sourceLanguage) { - doSetProperty("sourceLanguage", sourceLanguage); - return this; - } - /** - * Target language to use. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param targetLanguage the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder targetLanguage( - java.lang.String targetLanguage) { - doSetProperty("targetLanguage", targetLanguage); - return this; - } - /** - * To use a existing configured AWS Translate as client. - * - * The option is a: - * <code>com.amazonaws.services.translate.AmazonTranslate</code> type. - * - * Group: producer - * - * @param translateClient the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder translateClient( - com.amazonaws.services.translate.AmazonTranslate translateClient) { - doSetProperty("translateClient", translateClient); - return this; - } - /** - * Whether autowiring is enabled. This is used for automatic autowiring - * options (the option must be marked as autowired) by looking up in the - * registry to find if there is a single instance of matching type, - * which then gets configured on the component. This can be used for - * automatic configuring JDBC data sources, JMS connection factories, - * AWS Clients, etc. - * - * The option is a: <code>boolean</code> type. - * - * Default: true - * Group: advanced - * - * @param autowiredEnabled the value to set - * @return the dsl builder - */ - default AwsTranslateComponentBuilder autowiredEnabled( - boolean autowiredEnabled) { - doSetProperty("autowiredEnabled", autowiredEnabled); - return this; - } - } - - class AwsTranslateComponentBuilderImpl - extends - AbstractComponentBuilder<TranslateComponent> - implements - AwsTranslateComponentBuilder { - @Override - protected TranslateComponent buildConcreteComponent() { - return new TranslateComponent(); - } - private org.apache.camel.component.aws.translate.TranslateConfiguration getOrCreateConfiguration( - org.apache.camel.component.aws.translate.TranslateComponent component) { - if (component.getConfiguration() == null) { - component.setConfiguration(new org.apache.camel.component.aws.translate.TranslateConfiguration()); - } - return component.getConfiguration(); - } - @Override - protected boolean setPropertyOnComponent( - Component component, - String name, - Object value) { - switch (name) { - case "autoDiscoverClient": getOrCreateConfiguration((TranslateComponent) component).setAutoDiscoverClient((boolean) value); return true; - case "accessKey": getOrCreateConfiguration((TranslateComponent) component).setAccessKey((java.lang.String) value); return true; - case "autodetectSourceLanguage": getOrCreateConfiguration((TranslateComponent) component).setAutodetectSourceLanguage((boolean) value); return true; - case "configuration": ((TranslateComponent) component).setConfiguration((org.apache.camel.component.aws.translate.TranslateConfiguration) value); return true; - case "lazyStartProducer": ((TranslateComponent) component).setLazyStartProducer((boolean) value); return true; - case "operation": getOrCreateConfiguration((TranslateComponent) component).setOperation((org.apache.camel.component.aws.translate.TranslateOperations) value); return true; - case "proxyHost": getOrCreateConfiguration((TranslateComponent) component).setProxyHost((java.lang.String) value); return true; - case "proxyPort": getOrCreateConfiguration((TranslateComponent) component).setProxyPort((java.lang.Integer) value); return true; - case "proxyProtocol": getOrCreateConfiguration((TranslateComponent) component).setProxyProtocol((com.amazonaws.Protocol) value); return true; - case "region": getOrCreateConfiguration((TranslateComponent) component).setRegion((java.lang.String) value); return true; - case "secretKey": getOrCreateConfiguration((TranslateComponent) component).setSecretKey((java.lang.String) value); return true; - case "sourceLanguage": getOrCreateConfiguration((TranslateComponent) component).setSourceLanguage((java.lang.String) value); return true; - case "targetLanguage": getOrCreateConfiguration((TranslateComponent) component).setTargetLanguage((java.lang.String) value); return true; - case "translateClient": getOrCreateConfiguration((TranslateComponent) component).setTranslateClient((com.amazonaws.services.translate.AmazonTranslate) value); return true; - case "autowiredEnabled": ((TranslateComponent) component).setAutowiredEnabled((boolean) value); return true; - default: return false; - } - } - } -} \ No newline at end of file diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 686c349..5b5e495 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -2644,51 +2644,6 @@ public class StaticEndpointBuilders { return org.apache.camel.builder.endpoint.dsl.SWFEndpointBuilderFactory.endpointBuilder(componentName, path); } /** - * AWS Translate (camel-aws-translate) - * Translate texts using AWS Translate. - * - * Category: cloud,management - * Since: 3.0 - * Maven coordinates: org.apache.camel:camel-aws-translate - * - * Syntax: <code>aws-translate:label</code> - * - * Path parameter: label (required) - * Logical name - * - * @param path label - * @return the dsl builder - */ - @Deprecated - public static org.apache.camel.builder.endpoint.dsl.TranslateEndpointBuilderFactory.TranslateEndpointBuilder awsTranslate( - String path) { - return org.apache.camel.builder.endpoint.dsl.TranslateEndpointBuilderFactory.endpointBuilder("aws-translate", path); - } - /** - * AWS Translate (camel-aws-translate) - * Translate texts using AWS Translate. - * - * Category: cloud,management - * Since: 3.0 - * Maven coordinates: org.apache.camel:camel-aws-translate - * - * Syntax: <code>aws-translate:label</code> - * - * Path parameter: label (required) - * Logical name - * - * @param componentName to use a custom component name for the endpoint - * instead of the default name - * @param path label - * @return the dsl builder - */ - @Deprecated - public static org.apache.camel.builder.endpoint.dsl.TranslateEndpointBuilderFactory.TranslateEndpointBuilder awsTranslate( - String componentName, - String path) { - return org.apache.camel.builder.endpoint.dsl.TranslateEndpointBuilderFactory.endpointBuilder(componentName, path); - } - /** * Azure Storage Blob Service (Deprecated) (camel-azure) * Store and retrieve blobs from Azure Storage Blob Service. * @@ -17207,4 +17162,4 @@ public class StaticEndpointBuilders { return org.apache.camel.builder.endpoint.dsl.ZooKeeperMasterEndpointBuilderFactory.endpointBuilder(componentName, path); } } -//CHECKSTYLE:ON \ No newline at end of file +//CHECKSTYLE:ON diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TranslateEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TranslateEndpointBuilderFactory.java deleted file mode 100644 index b7be0f0..0000000 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TranslateEndpointBuilderFactory.java +++ /dev/null @@ -1,444 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.builder.endpoint.dsl; - -import javax.annotation.Generated; -import org.apache.camel.builder.EndpointConsumerBuilder; -import org.apache.camel.builder.EndpointProducerBuilder; -import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; - -/** - * Translate texts using AWS Translate. - * - * Generated by camel build tools - do NOT edit this file! - */ -@Generated("org.apache.camel.maven.packaging.EndpointDslMojo") -public interface TranslateEndpointBuilderFactory { - - - /** - * Builder for endpoint for the AWS Translate component. - */ - public interface TranslateEndpointBuilder extends EndpointProducerBuilder { - /** - * Setting the autoDiscoverClient mechanism, if true, the component will - * look for a client instance in the registry automatically otherwise it - * will skip that checking. - * - * The option is a: <code>boolean</code> type. - * - * Default: true - * Group: common - * - * @param autoDiscoverClient the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder autoDiscoverClient( - boolean autoDiscoverClient) { - doSetProperty("autoDiscoverClient", autoDiscoverClient); - return this; - } - /** - * Setting the autoDiscoverClient mechanism, if true, the component will - * look for a client instance in the registry automatically otherwise it - * will skip that checking. - * - * The option will be converted to a <code>boolean</code> - * type. - * - * Default: true - * Group: common - * - * @param autoDiscoverClient the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder autoDiscoverClient( - String autoDiscoverClient) { - doSetProperty("autoDiscoverClient", autoDiscoverClient); - return this; - } - /** - * Amazon AWS Access Key. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param accessKey the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder accessKey(String accessKey) { - doSetProperty("accessKey", accessKey); - return this; - } - /** - * Being able to autodetect the source language. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: producer - * - * @param autodetectSourceLanguage the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder autodetectSourceLanguage( - boolean autodetectSourceLanguage) { - doSetProperty("autodetectSourceLanguage", autodetectSourceLanguage); - return this; - } - /** - * Being able to autodetect the source language. - * - * The option will be converted to a <code>boolean</code> - * type. - * - * Default: false - * Group: producer - * - * @param autodetectSourceLanguage the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder autodetectSourceLanguage( - String autodetectSourceLanguage) { - doSetProperty("autodetectSourceLanguage", autodetectSourceLanguage); - return this; - } - /** - * 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 producer may otherwise fail during - * starting and cause the route to fail being started. By deferring this - * startup to be lazy then the startup failure can be handled during - * routing messages via Camel's routing error handlers. Beware that when - * the first message is processed then creating and starting the - * producer may take a little time and prolong the total processing time - * of the processing. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: producer - * - * @param lazyStartProducer the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder lazyStartProducer( - boolean lazyStartProducer) { - doSetProperty("lazyStartProducer", lazyStartProducer); - return this; - } - /** - * 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 producer may otherwise fail during - * starting and cause the route to fail being started. By deferring this - * startup to be lazy then the startup failure can be handled during - * routing messages via Camel's routing error handlers. Beware that when - * the first message is processed then creating and starting the - * producer may take a little time and prolong the total processing time - * of the processing. - * - * The option will be converted to a <code>boolean</code> - * type. - * - * Default: false - * Group: producer - * - * @param lazyStartProducer the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder lazyStartProducer( - String lazyStartProducer) { - doSetProperty("lazyStartProducer", lazyStartProducer); - return this; - } - /** - * The operation to perform. - * - * The option is a: - * <code>org.apache.camel.component.aws.translate.TranslateOperations</code> type. - * - * Required: true - * Default: translateText - * Group: producer - * - * @param operation the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder operation(TranslateOperations operation) { - doSetProperty("operation", operation); - return this; - } - /** - * The operation to perform. - * - * The option will be converted to a - * <code>org.apache.camel.component.aws.translate.TranslateOperations</code> type. - * - * Required: true - * Default: translateText - * Group: producer - * - * @param operation the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder operation(String operation) { - doSetProperty("operation", operation); - return this; - } - /** - * To define a proxy host when instantiating the Translate client. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param proxyHost the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder proxyHost(String proxyHost) { - doSetProperty("proxyHost", proxyHost); - return this; - } - /** - * To define a proxy port when instantiating the Translate client. - * - * The option is a: <code>java.lang.Integer</code> type. - * - * Group: producer - * - * @param proxyPort the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder proxyPort(Integer proxyPort) { - doSetProperty("proxyPort", proxyPort); - return this; - } - /** - * To define a proxy port when instantiating the Translate client. - * - * The option will be converted to a - * <code>java.lang.Integer</code> type. - * - * Group: producer - * - * @param proxyPort the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder proxyPort(String proxyPort) { - doSetProperty("proxyPort", proxyPort); - return this; - } - /** - * To define a proxy protocol when instantiating the Translate client. - * - * The option is a: <code>com.amazonaws.Protocol</code> - * type. - * - * Default: HTTPS - * Group: producer - * - * @param proxyProtocol the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder proxyProtocol(Protocol proxyProtocol) { - doSetProperty("proxyProtocol", proxyProtocol); - return this; - } - /** - * To define a proxy protocol when instantiating the Translate client. - * - * The option will be converted to a - * <code>com.amazonaws.Protocol</code> type. - * - * Default: HTTPS - * Group: producer - * - * @param proxyProtocol the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder proxyProtocol(String proxyProtocol) { - doSetProperty("proxyProtocol", proxyProtocol); - return this; - } - /** - * The region in which Translate client needs to work. When using this - * parameter, the configuration will expect the capitalized name of the - * region (for example AP_EAST_1) You'll need to use the name - * Regions.EU_WEST_1.name(). - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param region the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder region(String region) { - doSetProperty("region", region); - return this; - } - /** - * Amazon AWS Secret Key. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param secretKey the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder secretKey(String secretKey) { - doSetProperty("secretKey", secretKey); - return this; - } - /** - * Source language to use. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param sourceLanguage the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder sourceLanguage(String sourceLanguage) { - doSetProperty("sourceLanguage", sourceLanguage); - return this; - } - /** - * Target language to use. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param targetLanguage the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder targetLanguage(String targetLanguage) { - doSetProperty("targetLanguage", targetLanguage); - return this; - } - /** - * To use a existing configured AWS Translate as client. - * - * The option is a: - * <code>com.amazonaws.services.translate.AmazonTranslate</code> type. - * - * Group: producer - * - * @param translateClient the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder translateClient(Object translateClient) { - doSetProperty("translateClient", translateClient); - return this; - } - /** - * To use a existing configured AWS Translate as client. - * - * The option will be converted to a - * <code>com.amazonaws.services.translate.AmazonTranslate</code> type. - * - * Group: producer - * - * @param translateClient the value to set - * @return the dsl builder - */ - default TranslateEndpointBuilder translateClient(String translateClient) { - doSetProperty("translateClient", translateClient); - return this; - } - } - - /** - * Proxy enum for - * <code>org.apache.camel.component.aws.translate.TranslateOperations</code> - * enum. - */ - enum TranslateOperations { - translateText; - } - - /** - * Proxy enum for <code>com.amazonaws.Protocol</code> enum. - */ - enum Protocol { - HTTP, - HTTPS; - } - - public interface TranslateBuilders { - /** - * AWS Translate (camel-aws-translate) - * Translate texts using AWS Translate. - * - * Category: cloud,management - * Since: 3.0 - * Maven coordinates: org.apache.camel:camel-aws-translate - * - * Syntax: <code>aws-translate:label</code> - * - * Path parameter: label (required) - * Logical name - * - * @param path label - * @return the dsl builder - */ - @Deprecated - default TranslateEndpointBuilder awsTranslate(String path) { - return TranslateEndpointBuilderFactory.endpointBuilder("aws-translate", path); - } - /** - * AWS Translate (camel-aws-translate) - * Translate texts using AWS Translate. - * - * Category: cloud,management - * Since: 3.0 - * Maven coordinates: org.apache.camel:camel-aws-translate - * - * Syntax: <code>aws-translate:label</code> - * - * Path parameter: label (required) - * Logical name - * - * @param componentName to use a custom component name for the endpoint - * instead of the default name - * @param path label - * @return the dsl builder - */ - @Deprecated - default TranslateEndpointBuilder awsTranslate( - String componentName, - String path) { - return TranslateEndpointBuilderFactory.endpointBuilder(componentName, path); - } - } - @Deprecated - static TranslateEndpointBuilder endpointBuilder( - String componentName, - String path) { - class TranslateEndpointBuilderImpl extends AbstractEndpointBuilder implements TranslateEndpointBuilder { - public TranslateEndpointBuilderImpl(String path) { - super(componentName, path); - } - } - return new TranslateEndpointBuilderImpl(path); - } -} \ No newline at end of file
