| /* |
| * 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.ExchangePattern; |
| import org.apache.camel.builder.EndpointConsumerBuilder; |
| import org.apache.camel.builder.EndpointProducerBuilder; |
| import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; |
| import org.apache.camel.spi.ExceptionHandler; |
| |
| /** |
| * The Kubernetes Nodes component provides a producer to execute kubernetes node |
| * operations and a consumer to consume node events. |
| * |
| * Generated by camel-package-maven-plugin - do not edit this file! |
| */ |
| @Generated("org.apache.camel.maven.packaging.EndpointDslMojo") |
| public interface KubernetesNodesEndpointBuilderFactory { |
| |
| |
| /** |
| * Builder for endpoint consumers for the Kubernetes Nodes component. |
| */ |
| public interface KubernetesNodesEndpointConsumerBuilder |
| extends |
| EndpointConsumerBuilder { |
| default AdvancedKubernetesNodesEndpointConsumerBuilder advanced() { |
| return (AdvancedKubernetesNodesEndpointConsumerBuilder) this; |
| } |
| /** |
| * The Kubernetes API Version to use. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: common |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder kubernetesClient( |
| Object 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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. |
| * |
| * Group: common |
| */ |
| default KubernetesNodesEndpointConsumerBuilder portProtocol( |
| String portProtocol) { |
| doSetProperty("portProtocol", portProtocol); |
| 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. |
| * |
| * Group: consumer |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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. |
| * |
| * Group: consumer |
| */ |
| default KubernetesNodesEndpointConsumerBuilder bridgeErrorHandler( |
| String bridgeErrorHandler) { |
| doSetProperty("bridgeErrorHandler", bridgeErrorHandler); |
| return this; |
| } |
| /** |
| * The Consumer Label key when watching at some resources. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: consumer |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder labelValue( |
| String labelValue) { |
| doSetProperty("labelValue", labelValue); |
| return this; |
| } |
| /** |
| * The namespace. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: consumer |
| */ |
| default KubernetesNodesEndpointConsumerBuilder namespace( |
| String namespace) { |
| doSetProperty("namespace", namespace); |
| return this; |
| } |
| /** |
| * The Consumer pool size. |
| * |
| * The option is a: <code>int</code> type. |
| * |
| * Group: consumer |
| */ |
| default KubernetesNodesEndpointConsumerBuilder poolSize(int poolSize) { |
| doSetProperty("poolSize", poolSize); |
| return this; |
| } |
| /** |
| * The Consumer pool size. |
| * |
| * The option will be converted to a <code>int</code> type. |
| * |
| * Group: consumer |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder resourceName( |
| String resourceName) { |
| doSetProperty("resourceName", resourceName); |
| return this; |
| } |
| /** |
| * The CA Cert Data. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointConsumerBuilder caCertData( |
| String caCertData) { |
| doSetProperty("caCertData", caCertData); |
| return this; |
| } |
| /** |
| * The CA Cert File. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointConsumerBuilder caCertFile( |
| String caCertFile) { |
| doSetProperty("caCertFile", caCertFile); |
| return this; |
| } |
| /** |
| * The Client Cert Data. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointConsumerBuilder clientCertData( |
| String clientCertData) { |
| doSetProperty("clientCertData", clientCertData); |
| return this; |
| } |
| /** |
| * The Client Cert File. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder clientKeyAlgo( |
| String clientKeyAlgo) { |
| doSetProperty("clientKeyAlgo", clientKeyAlgo); |
| return this; |
| } |
| /** |
| * The Client Key data. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointConsumerBuilder clientKeyData( |
| String clientKeyData) { |
| doSetProperty("clientKeyData", clientKeyData); |
| return this; |
| } |
| /** |
| * The Client Key file. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointConsumerBuilder clientKeyFile( |
| String clientKeyFile) { |
| doSetProperty("clientKeyFile", clientKeyFile); |
| return this; |
| } |
| /** |
| * The Client Key Passphrase. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointConsumerBuilder clientKeyPassphrase( |
| String clientKeyPassphrase) { |
| doSetProperty("clientKeyPassphrase", clientKeyPassphrase); |
| return this; |
| } |
| /** |
| * The Auth Token. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default KubernetesNodesEndpointConsumerBuilder username(String username) { |
| doSetProperty("username", username); |
| return this; |
| } |
| } |
| |
| /** |
| * Advanced builder for endpoint consumers for the Kubernetes Nodes |
| * component. |
| */ |
| public interface AdvancedKubernetesNodesEndpointConsumerBuilder |
| extends |
| EndpointConsumerBuilder { |
| default KubernetesNodesEndpointConsumerBuilder basic() { |
| return (KubernetesNodesEndpointConsumerBuilder) 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) |
| */ |
| default AdvancedKubernetesNodesEndpointConsumerBuilder exceptionHandler( |
| 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) |
| */ |
| default AdvancedKubernetesNodesEndpointConsumerBuilder 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) |
| */ |
| default AdvancedKubernetesNodesEndpointConsumerBuilder exchangePattern( |
| 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) |
| */ |
| default AdvancedKubernetesNodesEndpointConsumerBuilder exchangePattern( |
| String exchangePattern) { |
| doSetProperty("exchangePattern", exchangePattern); |
| return this; |
| } |
| /** |
| * Whether the endpoint should use basic property binding (Camel 2.x) or |
| * the newer property binding with additional capabilities. |
| * |
| * The option is a: <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointConsumerBuilder basicPropertyBinding( |
| boolean basicPropertyBinding) { |
| doSetProperty("basicPropertyBinding", basicPropertyBinding); |
| return this; |
| } |
| /** |
| * Whether the endpoint should use basic property binding (Camel 2.x) or |
| * the newer property binding with additional capabilities. |
| * |
| * The option will be converted to a <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointConsumerBuilder basicPropertyBinding( |
| String basicPropertyBinding) { |
| doSetProperty("basicPropertyBinding", basicPropertyBinding); |
| 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 |
| */ |
| default AdvancedKubernetesNodesEndpointConsumerBuilder 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 |
| */ |
| default AdvancedKubernetesNodesEndpointConsumerBuilder connectionTimeout( |
| String connectionTimeout) { |
| doSetProperty("connectionTimeout", connectionTimeout); |
| return this; |
| } |
| /** |
| * Sets whether synchronous processing should be strictly used, or Camel |
| * is allowed to use asynchronous processing (if supported). |
| * |
| * The option is a: <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointConsumerBuilder synchronous( |
| boolean synchronous) { |
| doSetProperty("synchronous", synchronous); |
| return this; |
| } |
| /** |
| * Sets whether synchronous processing should be strictly used, or Camel |
| * is allowed to use asynchronous processing (if supported). |
| * |
| * The option will be converted to a <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointConsumerBuilder synchronous( |
| String synchronous) { |
| doSetProperty("synchronous", synchronous); |
| return this; |
| } |
| } |
| |
| /** |
| * Builder for endpoint producers for the Kubernetes Nodes component. |
| */ |
| public interface KubernetesNodesEndpointProducerBuilder |
| extends |
| EndpointProducerBuilder { |
| default AdvancedKubernetesNodesEndpointProducerBuilder advanced() { |
| return (AdvancedKubernetesNodesEndpointProducerBuilder) this; |
| } |
| /** |
| * The Kubernetes API Version to use. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: common |
| */ |
| default KubernetesNodesEndpointProducerBuilder 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 |
| */ |
| default KubernetesNodesEndpointProducerBuilder 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 |
| */ |
| default KubernetesNodesEndpointProducerBuilder kubernetesClient( |
| Object 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 |
| */ |
| default KubernetesNodesEndpointProducerBuilder 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 |
| */ |
| default KubernetesNodesEndpointProducerBuilder 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. |
| * |
| * Group: common |
| */ |
| default KubernetesNodesEndpointProducerBuilder portProtocol( |
| String portProtocol) { |
| doSetProperty("portProtocol", portProtocol); |
| 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. |
| * |
| * Group: producer |
| */ |
| default KubernetesNodesEndpointProducerBuilder 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. |
| * |
| * Group: producer |
| */ |
| default KubernetesNodesEndpointProducerBuilder lazyStartProducer( |
| String lazyStartProducer) { |
| doSetProperty("lazyStartProducer", lazyStartProducer); |
| return this; |
| } |
| /** |
| * Producer operation to do on Kubernetes. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: producer |
| */ |
| default KubernetesNodesEndpointProducerBuilder operation( |
| String operation) { |
| doSetProperty("operation", operation); |
| return this; |
| } |
| /** |
| * The CA Cert Data. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointProducerBuilder caCertData( |
| String caCertData) { |
| doSetProperty("caCertData", caCertData); |
| return this; |
| } |
| /** |
| * The CA Cert File. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointProducerBuilder caCertFile( |
| String caCertFile) { |
| doSetProperty("caCertFile", caCertFile); |
| return this; |
| } |
| /** |
| * The Client Cert Data. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointProducerBuilder clientCertData( |
| String clientCertData) { |
| doSetProperty("clientCertData", clientCertData); |
| return this; |
| } |
| /** |
| * The Client Cert File. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointProducerBuilder 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 |
| */ |
| default KubernetesNodesEndpointProducerBuilder clientKeyAlgo( |
| String clientKeyAlgo) { |
| doSetProperty("clientKeyAlgo", clientKeyAlgo); |
| return this; |
| } |
| /** |
| * The Client Key data. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointProducerBuilder clientKeyData( |
| String clientKeyData) { |
| doSetProperty("clientKeyData", clientKeyData); |
| return this; |
| } |
| /** |
| * The Client Key file. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointProducerBuilder clientKeyFile( |
| String clientKeyFile) { |
| doSetProperty("clientKeyFile", clientKeyFile); |
| return this; |
| } |
| /** |
| * The Client Key Passphrase. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointProducerBuilder clientKeyPassphrase( |
| String clientKeyPassphrase) { |
| doSetProperty("clientKeyPassphrase", clientKeyPassphrase); |
| return this; |
| } |
| /** |
| * The Auth Token. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointProducerBuilder 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 |
| */ |
| default KubernetesNodesEndpointProducerBuilder 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 |
| */ |
| default KubernetesNodesEndpointProducerBuilder 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 |
| */ |
| default KubernetesNodesEndpointProducerBuilder 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 |
| */ |
| default KubernetesNodesEndpointProducerBuilder username(String username) { |
| doSetProperty("username", username); |
| return this; |
| } |
| } |
| |
| /** |
| * Advanced builder for endpoint producers for the Kubernetes Nodes |
| * component. |
| */ |
| public interface AdvancedKubernetesNodesEndpointProducerBuilder |
| extends |
| EndpointProducerBuilder { |
| default KubernetesNodesEndpointProducerBuilder basic() { |
| return (KubernetesNodesEndpointProducerBuilder) this; |
| } |
| /** |
| * Whether the endpoint should use basic property binding (Camel 2.x) or |
| * the newer property binding with additional capabilities. |
| * |
| * The option is a: <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointProducerBuilder basicPropertyBinding( |
| boolean basicPropertyBinding) { |
| doSetProperty("basicPropertyBinding", basicPropertyBinding); |
| return this; |
| } |
| /** |
| * Whether the endpoint should use basic property binding (Camel 2.x) or |
| * the newer property binding with additional capabilities. |
| * |
| * The option will be converted to a <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointProducerBuilder basicPropertyBinding( |
| String basicPropertyBinding) { |
| doSetProperty("basicPropertyBinding", basicPropertyBinding); |
| 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 |
| */ |
| default AdvancedKubernetesNodesEndpointProducerBuilder 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 |
| */ |
| default AdvancedKubernetesNodesEndpointProducerBuilder connectionTimeout( |
| String connectionTimeout) { |
| doSetProperty("connectionTimeout", connectionTimeout); |
| return this; |
| } |
| /** |
| * Sets whether synchronous processing should be strictly used, or Camel |
| * is allowed to use asynchronous processing (if supported). |
| * |
| * The option is a: <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointProducerBuilder synchronous( |
| boolean synchronous) { |
| doSetProperty("synchronous", synchronous); |
| return this; |
| } |
| /** |
| * Sets whether synchronous processing should be strictly used, or Camel |
| * is allowed to use asynchronous processing (if supported). |
| * |
| * The option will be converted to a <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointProducerBuilder synchronous( |
| String synchronous) { |
| doSetProperty("synchronous", synchronous); |
| return this; |
| } |
| } |
| |
| /** |
| * Builder for endpoint for the Kubernetes Nodes component. |
| */ |
| public interface KubernetesNodesEndpointBuilder |
| extends |
| KubernetesNodesEndpointConsumerBuilder, KubernetesNodesEndpointProducerBuilder { |
| default AdvancedKubernetesNodesEndpointBuilder advanced() { |
| return (AdvancedKubernetesNodesEndpointBuilder) this; |
| } |
| /** |
| * The Kubernetes API Version to use. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: common |
| */ |
| default KubernetesNodesEndpointBuilder 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 |
| */ |
| default KubernetesNodesEndpointBuilder 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 |
| */ |
| default KubernetesNodesEndpointBuilder kubernetesClient( |
| Object 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 |
| */ |
| default KubernetesNodesEndpointBuilder 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 |
| */ |
| default KubernetesNodesEndpointBuilder 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. |
| * |
| * Group: common |
| */ |
| default KubernetesNodesEndpointBuilder portProtocol(String portProtocol) { |
| doSetProperty("portProtocol", portProtocol); |
| return this; |
| } |
| /** |
| * The CA Cert Data. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointBuilder caCertData(String caCertData) { |
| doSetProperty("caCertData", caCertData); |
| return this; |
| } |
| /** |
| * The CA Cert File. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointBuilder caCertFile(String caCertFile) { |
| doSetProperty("caCertFile", caCertFile); |
| return this; |
| } |
| /** |
| * The Client Cert Data. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointBuilder clientCertData( |
| String clientCertData) { |
| doSetProperty("clientCertData", clientCertData); |
| return this; |
| } |
| /** |
| * The Client Cert File. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointBuilder 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 |
| */ |
| default KubernetesNodesEndpointBuilder clientKeyAlgo( |
| String clientKeyAlgo) { |
| doSetProperty("clientKeyAlgo", clientKeyAlgo); |
| return this; |
| } |
| /** |
| * The Client Key data. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointBuilder clientKeyData( |
| String clientKeyData) { |
| doSetProperty("clientKeyData", clientKeyData); |
| return this; |
| } |
| /** |
| * The Client Key file. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointBuilder clientKeyFile( |
| String clientKeyFile) { |
| doSetProperty("clientKeyFile", clientKeyFile); |
| return this; |
| } |
| /** |
| * The Client Key Passphrase. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointBuilder clientKeyPassphrase( |
| String clientKeyPassphrase) { |
| doSetProperty("clientKeyPassphrase", clientKeyPassphrase); |
| return this; |
| } |
| /** |
| * The Auth Token. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default KubernetesNodesEndpointBuilder 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 |
| */ |
| default KubernetesNodesEndpointBuilder 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 |
| */ |
| default KubernetesNodesEndpointBuilder 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 |
| */ |
| default KubernetesNodesEndpointBuilder 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 |
| */ |
| default KubernetesNodesEndpointBuilder username(String username) { |
| doSetProperty("username", username); |
| return this; |
| } |
| } |
| |
| /** |
| * Advanced builder for endpoint for the Kubernetes Nodes component. |
| */ |
| public interface AdvancedKubernetesNodesEndpointBuilder |
| extends |
| AdvancedKubernetesNodesEndpointConsumerBuilder, AdvancedKubernetesNodesEndpointProducerBuilder { |
| default KubernetesNodesEndpointBuilder basic() { |
| return (KubernetesNodesEndpointBuilder) this; |
| } |
| /** |
| * Whether the endpoint should use basic property binding (Camel 2.x) or |
| * the newer property binding with additional capabilities. |
| * |
| * The option is a: <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointBuilder basicPropertyBinding( |
| boolean basicPropertyBinding) { |
| doSetProperty("basicPropertyBinding", basicPropertyBinding); |
| return this; |
| } |
| /** |
| * Whether the endpoint should use basic property binding (Camel 2.x) or |
| * the newer property binding with additional capabilities. |
| * |
| * The option will be converted to a <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointBuilder basicPropertyBinding( |
| String basicPropertyBinding) { |
| doSetProperty("basicPropertyBinding", basicPropertyBinding); |
| 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 |
| */ |
| default AdvancedKubernetesNodesEndpointBuilder 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 |
| */ |
| default AdvancedKubernetesNodesEndpointBuilder connectionTimeout( |
| String connectionTimeout) { |
| doSetProperty("connectionTimeout", connectionTimeout); |
| return this; |
| } |
| /** |
| * Sets whether synchronous processing should be strictly used, or Camel |
| * is allowed to use asynchronous processing (if supported). |
| * |
| * The option is a: <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointBuilder synchronous( |
| boolean synchronous) { |
| doSetProperty("synchronous", synchronous); |
| return this; |
| } |
| /** |
| * Sets whether synchronous processing should be strictly used, or Camel |
| * is allowed to use asynchronous processing (if supported). |
| * |
| * The option will be converted to a <code>boolean</code> type. |
| * |
| * Group: advanced |
| */ |
| default AdvancedKubernetesNodesEndpointBuilder synchronous( |
| String synchronous) { |
| doSetProperty("synchronous", synchronous); |
| return this; |
| } |
| } |
| /** |
| * Kubernetes Nodes (camel-kubernetes) |
| * The Kubernetes Nodes component provides a producer to execute kubernetes |
| * node operations and a consumer to consume node events. |
| * |
| * Category: container,cloud,paas |
| * Since: 2.17 |
| * Maven coordinates: org.apache.camel:camel-kubernetes |
| * |
| * Syntax: <code>kubernetes-nodes:masterUrl</code> |
| * |
| * Path parameter: masterUrl (required) |
| * Kubernetes Master url |
| */ |
| default KubernetesNodesEndpointBuilder kubernetesNodes(String path) { |
| class KubernetesNodesEndpointBuilderImpl extends AbstractEndpointBuilder implements KubernetesNodesEndpointBuilder, AdvancedKubernetesNodesEndpointBuilder { |
| public KubernetesNodesEndpointBuilderImpl(String path) { |
| super("kubernetes-nodes", path); |
| } |
| } |
| return new KubernetesNodesEndpointBuilderImpl(path); |
| } |
| } |