| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package org.apache.camel.builder.endpoint.dsl; |
| |
| import javax.annotation.Generated; |
| import org.apache.camel.builder.EndpointConsumerBuilder; |
| import org.apache.camel.builder.EndpointProducerBuilder; |
| import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; |
| |
| /** |
| * The Kubernetes Build Config component provides a producer to execute |
| * kubernetes build config operations. |
| * |
| * Generated by camel-package-maven-plugin - do not edit this file! |
| */ |
| @Generated("org.apache.camel.maven.packaging.EndpointDslMojo") |
| public interface OpenshiftBuildConfigsEndpointBuilderFactory { |
| |
| |
| /** |
| * Builder for endpoint for the Openshift Build Config component. |
| */ |
| public interface OpenshiftBuildConfigsEndpointBuilder |
| extends |
| EndpointProducerBuilder { |
| default AdvancedOpenshiftBuildConfigsEndpointBuilder advanced() { |
| return (AdvancedOpenshiftBuildConfigsEndpointBuilder) this; |
| } |
| /** |
| * The Kubernetes API Version to use. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: producer |
| */ |
| default OpenshiftBuildConfigsEndpointBuilder 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: producer |
| */ |
| default OpenshiftBuildConfigsEndpointBuilder 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: producer |
| */ |
| default OpenshiftBuildConfigsEndpointBuilder 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: producer |
| */ |
| default OpenshiftBuildConfigsEndpointBuilder kubernetesClient( |
| String kubernetesClient) { |
| doSetProperty("kubernetesClient", kubernetesClient); |
| 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 |
| */ |
| default OpenshiftBuildConfigsEndpointBuilder 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: producer |
| */ |
| default OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder clientKeyPassphrase( |
| String clientKeyPassphrase) { |
| doSetProperty("clientKeyPassphrase", clientKeyPassphrase); |
| return this; |
| } |
| /** |
| * The Auth Token. |
| * |
| * The option is a: <code>java.lang.String</code> type. |
| * |
| * Group: security |
| */ |
| default OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder 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 OpenshiftBuildConfigsEndpointBuilder username(String username) { |
| doSetProperty("username", username); |
| return this; |
| } |
| } |
| |
| /** |
| * Advanced builder for endpoint for the Openshift Build Config component. |
| */ |
| public interface AdvancedOpenshiftBuildConfigsEndpointBuilder |
| extends |
| EndpointProducerBuilder { |
| default OpenshiftBuildConfigsEndpointBuilder basic() { |
| return (OpenshiftBuildConfigsEndpointBuilder) 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 AdvancedOpenshiftBuildConfigsEndpointBuilder 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 AdvancedOpenshiftBuildConfigsEndpointBuilder 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 AdvancedOpenshiftBuildConfigsEndpointBuilder 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 AdvancedOpenshiftBuildConfigsEndpointBuilder 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 AdvancedOpenshiftBuildConfigsEndpointBuilder 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 AdvancedOpenshiftBuildConfigsEndpointBuilder synchronous( |
| String synchronous) { |
| doSetProperty("synchronous", synchronous); |
| return this; |
| } |
| } |
| /** |
| * Openshift Build Config (camel-kubernetes) |
| * The Kubernetes Build Config component provides a producer to execute |
| * kubernetes build config operations. |
| * |
| * Category: container,cloud,paas |
| * Available as of version: 2.17 |
| * Maven coordinates: org.apache.camel:camel-kubernetes |
| * |
| * Syntax: <code>openshift-build-configs:masterUrl</code> |
| * |
| * Path parameter: masterUrl (required) |
| * Kubernetes Master url |
| */ |
| default OpenshiftBuildConfigsEndpointBuilder openshiftBuildConfigs( |
| String path) { |
| class OpenshiftBuildConfigsEndpointBuilderImpl extends AbstractEndpointBuilder implements OpenshiftBuildConfigsEndpointBuilder, AdvancedOpenshiftBuildConfigsEndpointBuilder { |
| public OpenshiftBuildConfigsEndpointBuilderImpl(String path) { |
| super("openshift-build-configs", path); |
| } |
| } |
| return new OpenshiftBuildConfigsEndpointBuilderImpl(path); |
| } |
| } |