This is an automated email from the ASF dual-hosted git repository. acosentino 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 4cac5d671c2 Regen for commit bd796a2d414cd46867b8662276798571aba633be 4cac5d671c2 is described below commit 4cac5d671c2a3fbebad3a598b7efdb65bd2c5770 Author: oscerd <osc...@users.noreply.github.com> AuthorDate: Tue Oct 11 13:59:18 2022 +0000 Regen for commit bd796a2d414cd46867b8662276798571aba633be Signed-off-by: GitHub <nore...@github.com> --- .../builder/endpoint/EndpointBuilderFactory.java | 1 + .../camel/builder/endpoint/EndpointBuilders.java | 1 + .../builder/endpoint/StaticEndpointBuilders.java | 45 + .../KubernetesEventsEndpointBuilderFactory.java | 1666 ++++++++++++++++++++ 4 files changed, 1713 insertions(+) diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java index 3e69aa65d76..0f3b0ede90c 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java @@ -205,6 +205,7 @@ public interface EndpointBuilderFactory org.apache.camel.builder.endpoint.dsl.KubernetesConfigMapsEndpointBuilderFactory.KubernetesConfigMapsBuilders, org.apache.camel.builder.endpoint.dsl.KubernetesCustomResourcesEndpointBuilderFactory.KubernetesCustomResourcesBuilders, org.apache.camel.builder.endpoint.dsl.KubernetesDeploymentsEndpointBuilderFactory.KubernetesDeploymentsBuilders, + org.apache.camel.builder.endpoint.dsl.KubernetesEventsEndpointBuilderFactory.KubernetesEventsBuilders, org.apache.camel.builder.endpoint.dsl.KubernetesHPAEndpointBuilderFactory.KubernetesHPABuilders, org.apache.camel.builder.endpoint.dsl.KubernetesJobEndpointBuilderFactory.KubernetesJobBuilders, org.apache.camel.builder.endpoint.dsl.KubernetesNamespacesEndpointBuilderFactory.KubernetesNamespacesBuilders, diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java index c0337a04301..94e18d2a232 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java @@ -202,6 +202,7 @@ public interface EndpointBuilders org.apache.camel.builder.endpoint.dsl.KubernetesConfigMapsEndpointBuilderFactory, org.apache.camel.builder.endpoint.dsl.KubernetesCustomResourcesEndpointBuilderFactory, org.apache.camel.builder.endpoint.dsl.KubernetesDeploymentsEndpointBuilderFactory, + org.apache.camel.builder.endpoint.dsl.KubernetesEventsEndpointBuilderFactory, org.apache.camel.builder.endpoint.dsl.KubernetesHPAEndpointBuilderFactory, org.apache.camel.builder.endpoint.dsl.KubernetesJobEndpointBuilderFactory, org.apache.camel.builder.endpoint.dsl.KubernetesNamespacesEndpointBuilderFactory, diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index f27ee5904f7..45a7d986cda 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -8924,6 +8924,51 @@ public class StaticEndpointBuilders { String path) { return org.apache.camel.builder.endpoint.dsl.KubernetesDeploymentsEndpointBuilderFactory.endpointBuilder(componentName, path); } + /** + * Kubernetes Event (camel-kubernetes) + * Perform operations on Kubernetes Events and get notified on Events + * changes. + * + * Category: container,cloud,paas + * Since: 3.20 + * Maven coordinates: org.apache.camel:camel-kubernetes + * + * Syntax: <code>kubernetes-events:masterUrl</code> + * + * Path parameter: masterUrl (required) + * Kubernetes Master url + * + * @param path masterUrl + * @return the dsl builder + */ + public static org.apache.camel.builder.endpoint.dsl.KubernetesEventsEndpointBuilderFactory.KubernetesEventsEndpointBuilder kubernetesEvents( + String path) { + return org.apache.camel.builder.endpoint.dsl.KubernetesEventsEndpointBuilderFactory.endpointBuilder("kubernetes-events", path); + } + /** + * Kubernetes Event (camel-kubernetes) + * Perform operations on Kubernetes Events and get notified on Events + * changes. + * + * Category: container,cloud,paas + * Since: 3.20 + * Maven coordinates: org.apache.camel:camel-kubernetes + * + * Syntax: <code>kubernetes-events:masterUrl</code> + * + * Path parameter: masterUrl (required) + * Kubernetes Master url + * + * @param componentName to use a custom component name for the endpoint + * instead of the default name + * @param path masterUrl + * @return the dsl builder + */ + public static org.apache.camel.builder.endpoint.dsl.KubernetesEventsEndpointBuilderFactory.KubernetesEventsEndpointBuilder kubernetesEvents( + String componentName, + String path) { + return org.apache.camel.builder.endpoint.dsl.KubernetesEventsEndpointBuilderFactory.endpointBuilder(componentName, path); + } /** * Kubernetes HPA (camel-kubernetes) * Perform operations on Kubernetes Horizontal Pod Autoscalers (HPA) and get diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KubernetesEventsEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KubernetesEventsEndpointBuilderFactory.java new file mode 100644 index 00000000000..3daaf96768c --- /dev/null +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/KubernetesEventsEndpointBuilderFactory.java @@ -0,0 +1,1666 @@ +/* + * 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 java.util.*; +import java.util.concurrent.*; +import java.util.function.*; +import java.util.stream.*; +import javax.annotation.Generated; +import org.apache.camel.builder.EndpointConsumerBuilder; +import org.apache.camel.builder.EndpointProducerBuilder; +import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; + +/** + * Perform operations on Kubernetes Events and get notified on Events changes. + * + * Generated by camel build tools - do NOT edit this file! + */ +@Generated("org.apache.camel.maven.packaging.EndpointDslMojo") +public interface KubernetesEventsEndpointBuilderFactory { + + + /** + * Builder for endpoint consumers for the Kubernetes Event component. + */ + public interface KubernetesEventsEndpointConsumerBuilder + extends + EndpointConsumerBuilder { + default AdvancedKubernetesEventsEndpointConsumerBuilder advanced() { + return (AdvancedKubernetesEventsEndpointConsumerBuilder) 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder 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 KubernetesEventsEndpointConsumerBuilder username(String username) { + doSetProperty("username", username); + return this; + } + } + + /** + * Advanced builder for endpoint consumers for the Kubernetes Event + * component. + */ + public interface AdvancedKubernetesEventsEndpointConsumerBuilder + extends + EndpointConsumerBuilder { + default KubernetesEventsEndpointConsumerBuilder basic() { + return (KubernetesEventsEndpointConsumerBuilder) 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 AdvancedKubernetesEventsEndpointConsumerBuilder 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 AdvancedKubernetesEventsEndpointConsumerBuilder 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 AdvancedKubernetesEventsEndpointConsumerBuilder 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 AdvancedKubernetesEventsEndpointConsumerBuilder 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 AdvancedKubernetesEventsEndpointConsumerBuilder 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 AdvancedKubernetesEventsEndpointConsumerBuilder 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 AdvancedKubernetesEventsEndpointConsumerBuilder 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 AdvancedKubernetesEventsEndpointConsumerBuilder connectionTimeout( + String connectionTimeout) { + doSetProperty("connectionTimeout", connectionTimeout); + return this; + } + } + + /** + * Builder for endpoint producers for the Kubernetes Event component. + */ + public interface KubernetesEventsEndpointProducerBuilder + extends + EndpointProducerBuilder { + default AdvancedKubernetesEventsEndpointProducerBuilder advanced() { + return (AdvancedKubernetesEventsEndpointProducerBuilder) 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder 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 KubernetesEventsEndpointProducerBuilder username(String username) { + doSetProperty("username", username); + return this; + } + } + + /** + * Advanced builder for endpoint producers for the Kubernetes Event + * component. + */ + public interface AdvancedKubernetesEventsEndpointProducerBuilder + extends + EndpointProducerBuilder { + default KubernetesEventsEndpointProducerBuilder basic() { + return (KubernetesEventsEndpointProducerBuilder) 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 AdvancedKubernetesEventsEndpointProducerBuilder 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 AdvancedKubernetesEventsEndpointProducerBuilder 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 AdvancedKubernetesEventsEndpointProducerBuilder 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 AdvancedKubernetesEventsEndpointProducerBuilder connectionTimeout( + String connectionTimeout) { + doSetProperty("connectionTimeout", connectionTimeout); + return this; + } + } + + /** + * Builder for endpoint for the Kubernetes Event component. + */ + public interface KubernetesEventsEndpointBuilder + extends + KubernetesEventsEndpointConsumerBuilder, + KubernetesEventsEndpointProducerBuilder { + default AdvancedKubernetesEventsEndpointBuilder advanced() { + return (AdvancedKubernetesEventsEndpointBuilder) 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder portProtocol(String portProtocol) { + doSetProperty("portProtocol", portProtocol); + 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder 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 KubernetesEventsEndpointBuilder username(String username) { + doSetProperty("username", username); + return this; + } + } + + /** + * Advanced builder for endpoint for the Kubernetes Event component. + */ + public interface AdvancedKubernetesEventsEndpointBuilder + extends + AdvancedKubernetesEventsEndpointConsumerBuilder, + AdvancedKubernetesEventsEndpointProducerBuilder { + default KubernetesEventsEndpointBuilder basic() { + return (KubernetesEventsEndpointBuilder) 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 AdvancedKubernetesEventsEndpointBuilder 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 AdvancedKubernetesEventsEndpointBuilder connectionTimeout( + String connectionTimeout) { + doSetProperty("connectionTimeout", connectionTimeout); + return this; + } + } + + public interface KubernetesEventsBuilders { + /** + * Kubernetes Event (camel-kubernetes) + * Perform operations on Kubernetes Events and get notified on Events + * changes. + * + * Category: container,cloud,paas + * Since: 3.20 + * Maven coordinates: org.apache.camel:camel-kubernetes + * + * @return the dsl builder for the headers' name. + */ + default KubernetesEventsHeaderNameBuilder kubernetesEvents() { + return KubernetesEventsHeaderNameBuilder.INSTANCE; + } + /** + * Kubernetes Event (camel-kubernetes) + * Perform operations on Kubernetes Events and get notified on Events + * changes. + * + * Category: container,cloud,paas + * Since: 3.20 + * Maven coordinates: org.apache.camel:camel-kubernetes + * + * Syntax: <code>kubernetes-events:masterUrl</code> + * + * Path parameter: masterUrl (required) + * Kubernetes Master url + * + * @param path masterUrl + * @return the dsl builder + */ + default KubernetesEventsEndpointBuilder kubernetesEvents(String path) { + return KubernetesEventsEndpointBuilderFactory.endpointBuilder("kubernetes-events", path); + } + /** + * Kubernetes Event (camel-kubernetes) + * Perform operations on Kubernetes Events and get notified on Events + * changes. + * + * Category: container,cloud,paas + * Since: 3.20 + * Maven coordinates: org.apache.camel:camel-kubernetes + * + * Syntax: <code>kubernetes-events:masterUrl</code> + * + * Path parameter: masterUrl (required) + * Kubernetes Master url + * + * @param componentName to use a custom component name for the endpoint + * instead of the default name + * @param path masterUrl + * @return the dsl builder + */ + default KubernetesEventsEndpointBuilder kubernetesEvents( + String componentName, + String path) { + return KubernetesEventsEndpointBuilderFactory.endpointBuilder(componentName, path); + } + } + + /** + * The builder of headers' name for the Kubernetes Event component. + */ + public static class KubernetesEventsHeaderNameBuilder { + /** + * The internal instance of the builder used to access to all the + * methods representing the name of headers. + */ + private static final KubernetesEventsHeaderNameBuilder INSTANCE = new KubernetesEventsHeaderNameBuilder(); + + /** + * The Producer operation. + * + * The option is a: {@code String} type. + * + * Group: producer + * + * @return the name of the header {@code KubernetesOperation}. + */ + public String kubernetesOperation() { + return "KubernetesOperation"; + } + + /** + * The namespace name. + * + * The option is a: {@code String} type. + * + * Group: producer + * + * @return the name of the header {@code KubernetesNamespaceName}. + */ + public String kubernetesNamespaceName() { + return "KubernetesNamespaceName"; + } + + /** + * The event labels. + * + * The option is a: {@code Map<String, String>} type. + * + * Group: producer + * + * @return the name of the header {@code KubernetesEventsLabels}. + */ + public String kubernetesEventsLabels() { + return "KubernetesEventsLabels"; + } + + /** + * The event time in ISO-8601 extended offset date-time format, such as + * '2011-12-03T10:15:3001:00'. + * + * The option is a: {@code String} type. + * + * Default: server time + * Group: producer + * + * @return the name of the header {@code KubernetesEventTime}. + */ + public String kubernetesEventTime() { + return "KubernetesEventTime"; + } + + /** + * Action watched by the consumer. + * + * The option is a: {@code io.fabric8.kubernetes.client.Watcher.Action} + * type. + * + * Group: consumer + * + * @return the name of the header {@code KubernetesEventAction}. + */ + public String kubernetesEventAction() { + return "KubernetesEventAction"; + } + + /** + * The event type. + * + * The option is a: {@code String} type. + * + * Group: producer + * + * @return the name of the header {@code KubernetesEventType}. + */ + public String kubernetesEventType() { + return "KubernetesEventType"; + } + + /** + * The event reason. + * + * The option is a: {@code String} type. + * + * Group: producer + * + * @return the name of the header {@code KubernetesEventReason}. + */ + public String kubernetesEventReason() { + return "KubernetesEventReason"; + } + + /** + * The event note. + * + * The option is a: {@code String} type. + * + * Group: producer + * + * @return the name of the header {@code KubernetesEventNote}. + */ + public String kubernetesEventNote() { + return "KubernetesEventNote"; + } + + /** + * The event regarding. + * + * The option is a: {@code + * io.fabric8.kubernetes.api.model.ObjectReference} type. + * + * Group: producer + * + * @return the name of the header {@code KubernetesEventRegarding}. + */ + public String kubernetesEventRegarding() { + return "KubernetesEventRegarding"; + } + + /** + * The event related. + * + * The option is a: {@code + * io.fabric8.kubernetes.api.model.ObjectReference} type. + * + * Group: producer + * + * @return the name of the header {@code KubernetesEventRelated}. + */ + public String kubernetesEventRelated() { + return "KubernetesEventRelated"; + } + + /** + * The event reporting controller. + * + * The option is a: {@code String} type. + * + * Group: producer + * + * @return the name of the header {@code + * KubernetesEventReportingController}. + */ + public String kubernetesEventReportingController() { + return "KubernetesEventReportingController"; + } + + /** + * The event reporting instance. + * + * The option is a: {@code String} type. + * + * Group: producer + * + * @return the name of the header {@code + * KubernetesEventReportingInstance}. + */ + public String kubernetesEventReportingInstance() { + return "KubernetesEventReportingInstance"; + } + + /** + * The event name. + * + * The option is a: {@code String} type. + * + * Group: producer + * + * @return the name of the header {@code KubernetesEventName}. + */ + public String kubernetesEventName() { + return "KubernetesEventName"; + } + + /** + * Timestamp of the action watched by the consumer. + * + * The option is a: {@code long} type. + * + * Group: consumer + * + * @return the name of the header {@code KubernetesEventTimestamp}. + */ + public String kubernetesEventTimestamp() { + return "KubernetesEventTimestamp"; + } + } + static KubernetesEventsEndpointBuilder endpointBuilder( + String componentName, + String path) { + class KubernetesEventsEndpointBuilderImpl extends AbstractEndpointBuilder implements KubernetesEventsEndpointBuilder, AdvancedKubernetesEventsEndpointBuilder { + public KubernetesEventsEndpointBuilderImpl(String path) { + super(componentName, path); + } + } + return new KubernetesEventsEndpointBuilderImpl(path); + } +} \ No newline at end of file