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
commit ed0a4a08d5ee9bc5e82dc7e694be134697380f14 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Jul 26 09:13:15 2022 +0200 camel-kubernetes - config-maps also has consumer --- ...ubernetesConfigMapsComponentBuilderFactory.java | 25 +- .../src/generated/resources/metadata.json | 2 +- ...KubernetesConfigMapsEndpointBuilderFactory.java | 1117 ++++++++++++++++++-- 3 files changed, 1071 insertions(+), 73 deletions(-) diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/KubernetesConfigMapsComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/KubernetesConfigMapsComponentBuilderFactory.java index 4d3fe9cd644..5e66f7d7e3b 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/KubernetesConfigMapsComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/KubernetesConfigMapsComponentBuilderFactory.java @@ -58,7 +58,7 @@ public interface KubernetesConfigMapsComponentBuilderFactory { * The option is a: * <code>io.fabric8.kubernetes.client.KubernetesClient</code> type. * - * Group: producer + * Group: common * * @param kubernetesClient the value to set * @return the dsl builder @@ -68,6 +68,28 @@ public interface KubernetesConfigMapsComponentBuilderFactory { doSetProperty("kubernetesClient", kubernetesClient); return this; } + /** + * Allows for bridging the consumer to the Camel routing Error Handler, + * which mean any exceptions occurred while the consumer is trying to + * pickup incoming messages, or the likes, will now be processed as a + * message and handled by the routing Error Handler. By default the + * consumer will use the org.apache.camel.spi.ExceptionHandler to deal + * with exceptions, that will be logged at WARN or ERROR level and + * ignored. + * + * The option is a: <code>boolean</code> type. + * + * Default: false + * Group: consumer + * + * @param bridgeErrorHandler the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsComponentBuilder bridgeErrorHandler( + boolean bridgeErrorHandler) { + doSetProperty("bridgeErrorHandler", bridgeErrorHandler); + 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 @@ -131,6 +153,7 @@ public interface KubernetesConfigMapsComponentBuilderFactory { Object value) { switch (name) { case "kubernetesClient": ((KubernetesConfigMapsComponent) component).setKubernetesClient((io.fabric8.kubernetes.client.KubernetesClient) value); return true; + case "bridgeErrorHandler": ((KubernetesConfigMapsComponent) component).setBridgeErrorHandler((boolean) value); return true; case "lazyStartProducer": ((KubernetesConfigMapsComponent) component).setLazyStartProducer((boolean) value); return true; case "autowiredEnabled": ((KubernetesConfigMapsComponent) component).setAutowiredEnabled((boolean) value); return true; default: return false; diff --git a/dsl/camel-componentdsl/src/generated/resources/metadata.json b/dsl/camel-componentdsl/src/generated/resources/metadata.json index 81c9b3eb367..f999cdffb16 100644 --- a/dsl/camel-componentdsl/src/generated/resources/metadata.json +++ b/dsl/camel-componentdsl/src/generated/resources/metadata.json @@ -4236,7 +4236,7 @@ "async": false, "api": false, "consumerOnly": false, - "producerOnly": true, + "producerOnly": false, "lenientProperties": false }, "KubernetesCustomResourcesComponentBuilderFactory": { diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KubernetesConfigMapsEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KubernetesConfigMapsEndpointBuilderFactory.java index 0755ee76ea0..d33f40d4a4e 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KubernetesConfigMapsEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KubernetesConfigMapsEndpointBuilderFactory.java @@ -35,12 +35,1049 @@ import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; public interface KubernetesConfigMapsEndpointBuilderFactory { + /** + * Builder for endpoint consumers for the Kubernetes ConfigMap component. + */ + public interface KubernetesConfigMapsEndpointConsumerBuilder + extends + EndpointConsumerBuilder { + default AdvancedKubernetesConfigMapsEndpointConsumerBuilder advanced() { + return (AdvancedKubernetesConfigMapsEndpointConsumerBuilder) this; + } + /** + * The Kubernetes API Version to use. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + * + * @param apiVersion the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder apiVersion( + String apiVersion) { + doSetProperty("apiVersion", apiVersion); + return this; + } + /** + * The dns domain, used for ServiceCall EIP. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + * + * @param dnsDomain the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder dnsDomain( + String dnsDomain) { + doSetProperty("dnsDomain", dnsDomain); + return this; + } + /** + * Default KubernetesClient to use if provided. + * + * The option is a: + * <code>io.fabric8.kubernetes.client.KubernetesClient</code> type. + * + * Group: common + * + * @param kubernetesClient the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder kubernetesClient( + io.fabric8.kubernetes.client.KubernetesClient kubernetesClient) { + doSetProperty("kubernetesClient", kubernetesClient); + return this; + } + /** + * Default KubernetesClient to use if provided. + * + * The option will be converted to a + * <code>io.fabric8.kubernetes.client.KubernetesClient</code> type. + * + * Group: common + * + * @param kubernetesClient the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder kubernetesClient( + String kubernetesClient) { + doSetProperty("kubernetesClient", kubernetesClient); + return this; + } + /** + * The port name, used for ServiceCall EIP. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + * + * @param portName the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder portName( + String portName) { + doSetProperty("portName", portName); + return this; + } + /** + * The port protocol, used for ServiceCall EIP. + * + * The option is a: <code>java.lang.String</code> type. + * + * Default: tcp + * Group: common + * + * @param portProtocol the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder portProtocol( + String portProtocol) { + doSetProperty("portProtocol", portProtocol); + return this; + } + /** + * The Consumer CRD Resource Group we would like to watch. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: consumer + * + * @param crdGroup the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder crdGroup( + String crdGroup) { + doSetProperty("crdGroup", crdGroup); + return this; + } + /** + * The Consumer CRD Resource name we would like to watch. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: consumer + * + * @param crdName the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder crdName( + String crdName) { + doSetProperty("crdName", crdName); + return this; + } + /** + * The Consumer CRD Resource Plural we would like to watch. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: consumer + * + * @param crdPlural the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder crdPlural( + String crdPlural) { + doSetProperty("crdPlural", crdPlural); + return this; + } + /** + * The Consumer CRD Resource Scope we would like to watch. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: consumer + * + * @param crdScope the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder crdScope( + String crdScope) { + doSetProperty("crdScope", crdScope); + return this; + } + /** + * The Consumer CRD Resource Version we would like to watch. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: consumer + * + * @param crdVersion the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder crdVersion( + String crdVersion) { + doSetProperty("crdVersion", crdVersion); + return this; + } + /** + * The Consumer Label key when watching at some resources. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: consumer + * + * @param labelKey the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder labelKey( + String labelKey) { + doSetProperty("labelKey", labelKey); + return this; + } + /** + * The Consumer Label value when watching at some resources. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: consumer + * + * @param labelValue the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder labelValue( + String labelValue) { + doSetProperty("labelValue", labelValue); + return this; + } + /** + * The namespace. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: consumer + * + * @param namespace the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder namespace( + String namespace) { + doSetProperty("namespace", namespace); + return this; + } + /** + * The Consumer pool size. + * + * The option is a: <code>int</code> type. + * + * Default: 1 + * Group: consumer + * + * @param poolSize the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder poolSize( + int poolSize) { + doSetProperty("poolSize", poolSize); + return this; + } + /** + * The Consumer pool size. + * + * The option will be converted to a <code>int</code> type. + * + * Default: 1 + * Group: consumer + * + * @param poolSize the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder poolSize( + String poolSize) { + doSetProperty("poolSize", poolSize); + return this; + } + /** + * The Consumer Resource Name we would like to watch. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: consumer + * + * @param resourceName the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder resourceName( + String resourceName) { + doSetProperty("resourceName", resourceName); + return this; + } + /** + * The CA Cert Data. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param caCertData the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder caCertData( + String caCertData) { + doSetProperty("caCertData", caCertData); + return this; + } + /** + * The CA Cert File. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param caCertFile the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder caCertFile( + String caCertFile) { + doSetProperty("caCertFile", caCertFile); + return this; + } + /** + * The Client Cert Data. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientCertData the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder clientCertData( + String clientCertData) { + doSetProperty("clientCertData", clientCertData); + return this; + } + /** + * The Client Cert File. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientCertFile the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder clientCertFile( + String clientCertFile) { + doSetProperty("clientCertFile", clientCertFile); + return this; + } + /** + * The Key Algorithm used by the client. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientKeyAlgo the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder clientKeyAlgo( + String clientKeyAlgo) { + doSetProperty("clientKeyAlgo", clientKeyAlgo); + return this; + } + /** + * The Client Key data. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientKeyData the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder clientKeyData( + String clientKeyData) { + doSetProperty("clientKeyData", clientKeyData); + return this; + } + /** + * The Client Key file. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientKeyFile the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder clientKeyFile( + String clientKeyFile) { + doSetProperty("clientKeyFile", clientKeyFile); + return this; + } + /** + * The Client Key Passphrase. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientKeyPassphrase the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder clientKeyPassphrase( + String clientKeyPassphrase) { + doSetProperty("clientKeyPassphrase", clientKeyPassphrase); + return this; + } + /** + * The Auth Token. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param oauthToken the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder oauthToken( + String oauthToken) { + doSetProperty("oauthToken", oauthToken); + return this; + } + /** + * Password to connect to Kubernetes. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param password the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder password( + String password) { + doSetProperty("password", password); + return this; + } + /** + * Define if the certs we used are trusted anyway or not. + * + * The option is a: <code>java.lang.Boolean</code> type. + * + * Group: security + * + * @param trustCerts the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder trustCerts( + Boolean trustCerts) { + doSetProperty("trustCerts", trustCerts); + return this; + } + /** + * Define if the certs we used are trusted anyway or not. + * + * The option will be converted to a + * <code>java.lang.Boolean</code> type. + * + * Group: security + * + * @param trustCerts the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder trustCerts( + String trustCerts) { + doSetProperty("trustCerts", trustCerts); + return this; + } + /** + * Username to connect to Kubernetes. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param username the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointConsumerBuilder username( + String username) { + doSetProperty("username", username); + return this; + } + } + + /** + * Advanced builder for endpoint consumers for the Kubernetes ConfigMap + * component. + */ + public interface AdvancedKubernetesConfigMapsEndpointConsumerBuilder + extends + EndpointConsumerBuilder { + default KubernetesConfigMapsEndpointConsumerBuilder basic() { + return (KubernetesConfigMapsEndpointConsumerBuilder) this; + } + /** + * Allows for bridging the consumer to the Camel routing Error Handler, + * which mean any exceptions occurred while the consumer is trying to + * pickup incoming messages, or the likes, will now be processed as a + * message and handled by the routing Error Handler. By default the + * consumer will use the org.apache.camel.spi.ExceptionHandler to deal + * with exceptions, that will be logged at WARN or ERROR level and + * ignored. + * + * The option is a: <code>boolean</code> type. + * + * Default: false + * Group: consumer (advanced) + * + * @param bridgeErrorHandler the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointConsumerBuilder bridgeErrorHandler( + boolean bridgeErrorHandler) { + doSetProperty("bridgeErrorHandler", bridgeErrorHandler); + return this; + } + /** + * Allows for bridging the consumer to the Camel routing Error Handler, + * which mean any exceptions occurred while the consumer is trying to + * pickup incoming messages, or the likes, will now be processed as a + * message and handled by the routing Error Handler. By default the + * consumer will use the org.apache.camel.spi.ExceptionHandler to deal + * with exceptions, that will be logged at WARN or ERROR level and + * ignored. + * + * The option will be converted to a <code>boolean</code> + * type. + * + * Default: false + * Group: consumer (advanced) + * + * @param bridgeErrorHandler the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointConsumerBuilder bridgeErrorHandler( + String bridgeErrorHandler) { + doSetProperty("bridgeErrorHandler", bridgeErrorHandler); + return this; + } + /** + * To let the consumer use a custom ExceptionHandler. Notice if the + * option bridgeErrorHandler is enabled then this option is not in use. + * By default the consumer will deal with exceptions, that will be + * logged at WARN or ERROR level and ignored. + * + * The option is a: + * <code>org.apache.camel.spi.ExceptionHandler</code> type. + * + * Group: consumer (advanced) + * + * @param exceptionHandler the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointConsumerBuilder exceptionHandler( + org.apache.camel.spi.ExceptionHandler exceptionHandler) { + doSetProperty("exceptionHandler", exceptionHandler); + return this; + } + /** + * To let the consumer use a custom ExceptionHandler. Notice if the + * option bridgeErrorHandler is enabled then this option is not in use. + * By default the consumer will deal with exceptions, that will be + * logged at WARN or ERROR level and ignored. + * + * The option will be converted to a + * <code>org.apache.camel.spi.ExceptionHandler</code> type. + * + * Group: consumer (advanced) + * + * @param exceptionHandler the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointConsumerBuilder exceptionHandler( + String exceptionHandler) { + doSetProperty("exceptionHandler", exceptionHandler); + return this; + } + /** + * Sets the exchange pattern when the consumer creates an exchange. + * + * The option is a: + * <code>org.apache.camel.ExchangePattern</code> type. + * + * Group: consumer (advanced) + * + * @param exchangePattern the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointConsumerBuilder exchangePattern( + org.apache.camel.ExchangePattern exchangePattern) { + doSetProperty("exchangePattern", exchangePattern); + return this; + } + /** + * Sets the exchange pattern when the consumer creates an exchange. + * + * The option will be converted to a + * <code>org.apache.camel.ExchangePattern</code> type. + * + * Group: consumer (advanced) + * + * @param exchangePattern the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointConsumerBuilder exchangePattern( + String exchangePattern) { + doSetProperty("exchangePattern", exchangePattern); + return this; + } + /** + * Connection timeout in milliseconds to use when making requests to the + * Kubernetes API server. + * + * The option is a: <code>java.lang.Integer</code> type. + * + * Group: advanced + * + * @param connectionTimeout the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointConsumerBuilder connectionTimeout( + Integer connectionTimeout) { + doSetProperty("connectionTimeout", connectionTimeout); + return this; + } + /** + * Connection timeout in milliseconds to use when making requests to the + * Kubernetes API server. + * + * The option will be converted to a + * <code>java.lang.Integer</code> type. + * + * Group: advanced + * + * @param connectionTimeout the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointConsumerBuilder connectionTimeout( + String connectionTimeout) { + doSetProperty("connectionTimeout", connectionTimeout); + return this; + } + } + + /** + * Builder for endpoint producers for the Kubernetes ConfigMap component. + */ + public interface KubernetesConfigMapsEndpointProducerBuilder + extends + EndpointProducerBuilder { + default AdvancedKubernetesConfigMapsEndpointProducerBuilder advanced() { + return (AdvancedKubernetesConfigMapsEndpointProducerBuilder) this; + } + /** + * The Kubernetes API Version to use. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + * + * @param apiVersion the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder apiVersion( + String apiVersion) { + doSetProperty("apiVersion", apiVersion); + return this; + } + /** + * The dns domain, used for ServiceCall EIP. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + * + * @param dnsDomain the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder dnsDomain( + String dnsDomain) { + doSetProperty("dnsDomain", dnsDomain); + return this; + } + /** + * Default KubernetesClient to use if provided. + * + * The option is a: + * <code>io.fabric8.kubernetes.client.KubernetesClient</code> type. + * + * Group: common + * + * @param kubernetesClient the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder kubernetesClient( + io.fabric8.kubernetes.client.KubernetesClient kubernetesClient) { + doSetProperty("kubernetesClient", kubernetesClient); + return this; + } + /** + * Default KubernetesClient to use if provided. + * + * The option will be converted to a + * <code>io.fabric8.kubernetes.client.KubernetesClient</code> type. + * + * Group: common + * + * @param kubernetesClient the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder kubernetesClient( + String kubernetesClient) { + doSetProperty("kubernetesClient", kubernetesClient); + return this; + } + /** + * The port name, used for ServiceCall EIP. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + * + * @param portName the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder portName( + String portName) { + doSetProperty("portName", portName); + return this; + } + /** + * The port protocol, used for ServiceCall EIP. + * + * The option is a: <code>java.lang.String</code> type. + * + * Default: tcp + * Group: common + * + * @param portProtocol the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder portProtocol( + String portProtocol) { + doSetProperty("portProtocol", portProtocol); + return this; + } + /** + * Producer operation to do on Kubernetes. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: producer + * + * @param operation the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder operation( + String operation) { + doSetProperty("operation", operation); + return this; + } + /** + * The CA Cert Data. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param caCertData the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder caCertData( + String caCertData) { + doSetProperty("caCertData", caCertData); + return this; + } + /** + * The CA Cert File. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param caCertFile the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder caCertFile( + String caCertFile) { + doSetProperty("caCertFile", caCertFile); + return this; + } + /** + * The Client Cert Data. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientCertData the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder clientCertData( + String clientCertData) { + doSetProperty("clientCertData", clientCertData); + return this; + } + /** + * The Client Cert File. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientCertFile the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder clientCertFile( + String clientCertFile) { + doSetProperty("clientCertFile", clientCertFile); + return this; + } + /** + * The Key Algorithm used by the client. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientKeyAlgo the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder clientKeyAlgo( + String clientKeyAlgo) { + doSetProperty("clientKeyAlgo", clientKeyAlgo); + return this; + } + /** + * The Client Key data. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientKeyData the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder clientKeyData( + String clientKeyData) { + doSetProperty("clientKeyData", clientKeyData); + return this; + } + /** + * The Client Key file. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientKeyFile the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder clientKeyFile( + String clientKeyFile) { + doSetProperty("clientKeyFile", clientKeyFile); + return this; + } + /** + * The Client Key Passphrase. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param clientKeyPassphrase the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder clientKeyPassphrase( + String clientKeyPassphrase) { + doSetProperty("clientKeyPassphrase", clientKeyPassphrase); + return this; + } + /** + * The Auth Token. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param oauthToken the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder oauthToken( + String oauthToken) { + doSetProperty("oauthToken", oauthToken); + return this; + } + /** + * Password to connect to Kubernetes. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param password the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder password( + String password) { + doSetProperty("password", password); + return this; + } + /** + * Define if the certs we used are trusted anyway or not. + * + * The option is a: <code>java.lang.Boolean</code> type. + * + * Group: security + * + * @param trustCerts the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder trustCerts( + Boolean trustCerts) { + doSetProperty("trustCerts", trustCerts); + return this; + } + /** + * Define if the certs we used are trusted anyway or not. + * + * The option will be converted to a + * <code>java.lang.Boolean</code> type. + * + * Group: security + * + * @param trustCerts the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder trustCerts( + String trustCerts) { + doSetProperty("trustCerts", trustCerts); + return this; + } + /** + * Username to connect to Kubernetes. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param username the value to set + * @return the dsl builder + */ + default KubernetesConfigMapsEndpointProducerBuilder username( + String username) { + doSetProperty("username", username); + return this; + } + } + + /** + * Advanced builder for endpoint producers for the Kubernetes ConfigMap + * component. + */ + public interface AdvancedKubernetesConfigMapsEndpointProducerBuilder + extends + EndpointProducerBuilder { + default KubernetesConfigMapsEndpointProducerBuilder basic() { + return (KubernetesConfigMapsEndpointProducerBuilder) 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 (advanced) + * + * @param lazyStartProducer the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointProducerBuilder 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 (advanced) + * + * @param lazyStartProducer the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointProducerBuilder lazyStartProducer( + String lazyStartProducer) { + doSetProperty("lazyStartProducer", lazyStartProducer); + return this; + } + /** + * Connection timeout in milliseconds to use when making requests to the + * Kubernetes API server. + * + * The option is a: <code>java.lang.Integer</code> type. + * + * Group: advanced + * + * @param connectionTimeout the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointProducerBuilder connectionTimeout( + Integer connectionTimeout) { + doSetProperty("connectionTimeout", connectionTimeout); + return this; + } + /** + * Connection timeout in milliseconds to use when making requests to the + * Kubernetes API server. + * + * The option will be converted to a + * <code>java.lang.Integer</code> type. + * + * Group: advanced + * + * @param connectionTimeout the value to set + * @return the dsl builder + */ + default AdvancedKubernetesConfigMapsEndpointProducerBuilder connectionTimeout( + String connectionTimeout) { + doSetProperty("connectionTimeout", connectionTimeout); + return this; + } + } + /** * Builder for endpoint for the Kubernetes ConfigMap component. */ public interface KubernetesConfigMapsEndpointBuilder extends - EndpointProducerBuilder { + KubernetesConfigMapsEndpointConsumerBuilder, + KubernetesConfigMapsEndpointProducerBuilder { default AdvancedKubernetesConfigMapsEndpointBuilder advanced() { return (AdvancedKubernetesConfigMapsEndpointBuilder) this; } @@ -49,7 +1086,7 @@ public interface KubernetesConfigMapsEndpointBuilderFactory { * * The option is a: <code>java.lang.String</code> type. * - * Group: producer + * Group: common * * @param apiVersion the value to set * @return the dsl builder @@ -63,7 +1100,7 @@ public interface KubernetesConfigMapsEndpointBuilderFactory { * * The option is a: <code>java.lang.String</code> type. * - * Group: producer + * Group: common * * @param dnsDomain the value to set * @return the dsl builder @@ -78,7 +1115,7 @@ public interface KubernetesConfigMapsEndpointBuilderFactory { * The option is a: * <code>io.fabric8.kubernetes.client.KubernetesClient</code> type. * - * Group: producer + * Group: common * * @param kubernetesClient the value to set * @return the dsl builder @@ -94,7 +1131,7 @@ public interface KubernetesConfigMapsEndpointBuilderFactory { * The option will be converted to a * <code>io.fabric8.kubernetes.client.KubernetesClient</code> type. * - * Group: producer + * Group: common * * @param kubernetesClient the value to set * @return the dsl builder @@ -104,26 +1141,12 @@ public interface KubernetesConfigMapsEndpointBuilderFactory { doSetProperty("kubernetesClient", kubernetesClient); return this; } - /** - * Producer operation to do on Kubernetes. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param operation the value to set - * @return the dsl builder - */ - default KubernetesConfigMapsEndpointBuilder operation(String operation) { - doSetProperty("operation", operation); - return this; - } /** * The port name, used for ServiceCall EIP. * * The option is a: <code>java.lang.String</code> type. * - * Group: producer + * Group: common * * @param portName the value to set * @return the dsl builder @@ -138,7 +1161,7 @@ public interface KubernetesConfigMapsEndpointBuilderFactory { * The option is a: <code>java.lang.String</code> type. * * Default: tcp - * Group: producer + * Group: common * * @param portProtocol the value to set * @return the dsl builder @@ -345,59 +1368,11 @@ public interface KubernetesConfigMapsEndpointBuilderFactory { */ public interface AdvancedKubernetesConfigMapsEndpointBuilder extends - EndpointProducerBuilder { + AdvancedKubernetesConfigMapsEndpointConsumerBuilder, + AdvancedKubernetesConfigMapsEndpointProducerBuilder { default KubernetesConfigMapsEndpointBuilder basic() { return (KubernetesConfigMapsEndpointBuilder) 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 (advanced) - * - * @param lazyStartProducer the value to set - * @return the dsl builder - */ - default AdvancedKubernetesConfigMapsEndpointBuilder 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 (advanced) - * - * @param lazyStartProducer the value to set - * @return the dsl builder - */ - default AdvancedKubernetesConfigMapsEndpointBuilder lazyStartProducer( - String lazyStartProducer) { - doSetProperty("lazyStartProducer", lazyStartProducer); - return this; - } /** * Connection timeout in milliseconds to use when making requests to the * Kubernetes API server.