blob: cd52ebea09ee3dfd04247b6109e5f0002093e807 [file] [log] [blame]
/*
* 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 jira component interacts with the JIRA issue tracker.
*
* Generated by camel-package-maven-plugin - do not edit this file!
*/
@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
public interface JiraEndpointBuilderFactory {
/**
* Builder for endpoint consumers for the Jira component.
*/
public interface JiraEndpointConsumerBuilder
extends
EndpointConsumerBuilder {
default AdvancedJiraEndpointConsumerBuilder advanced() {
return (AdvancedJiraEndpointConsumerBuilder) this;
}
/**
* Time in milliseconds to elapse for the next poll.
*
* The option is a: <code>java.lang.Integer</code> type.
*
* Group: common
*/
default JiraEndpointConsumerBuilder delay(Integer delay) {
setProperty("delay", delay);
return this;
}
/**
* Time in milliseconds to elapse for the next poll.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
*
* Group: common
*/
default JiraEndpointConsumerBuilder delay(String delay) {
setProperty("delay", delay);
return this;
}
/**
* The Jira server url, example: http://my_jira.com:8081.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: common
*/
default JiraEndpointConsumerBuilder jiraUrl(String jiraUrl) {
setProperty("jiraUrl", jiraUrl);
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 JiraEndpointConsumerBuilder bridgeErrorHandler(
boolean bridgeErrorHandler) {
setProperty("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 JiraEndpointConsumerBuilder bridgeErrorHandler(
String bridgeErrorHandler) {
setProperty("bridgeErrorHandler", bridgeErrorHandler);
return this;
}
/**
* JQL is the query language from JIRA which allows you to retrieve the
* data you want. For example jql=project=MyProject Where MyProject is
* the product key in Jira. It is important to use the RAW() and set the
* JQL inside it to prevent camel parsing it, example: RAW(project in
* (MYP, COM) AND resolution = Unresolved).
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: consumer
*/
default JiraEndpointConsumerBuilder jql(String jql) {
setProperty("jql", jql);
return this;
}
/**
* Max number of issues to search for.
*
* The option is a: <code>java.lang.Integer</code> type.
*
* Group: consumer
*/
default JiraEndpointConsumerBuilder maxResults(Integer maxResults) {
setProperty("maxResults", maxResults);
return this;
}
/**
* Max number of issues to search for.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
*
* Group: consumer
*/
default JiraEndpointConsumerBuilder maxResults(String maxResults) {
setProperty("maxResults", maxResults);
return this;
}
/**
* (OAuth only) The access token generated by the Jira server.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointConsumerBuilder accessToken(String accessToken) {
setProperty("accessToken", accessToken);
return this;
}
/**
* (OAuth only) The consumer key from Jira settings.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointConsumerBuilder consumerKey(String consumerKey) {
setProperty("consumerKey", consumerKey);
return this;
}
/**
* (Basic authentication only) The password to authenticate to the Jira
* server. Use only if username basic authentication is used.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointConsumerBuilder password(String password) {
setProperty("password", password);
return this;
}
/**
* (OAuth only) The private key generated by the client to encrypt the
* conversation to the server.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointConsumerBuilder privateKey(String privateKey) {
setProperty("privateKey", privateKey);
return this;
}
/**
* (Basic authentication only) The username to authenticate to the Jira
* server. Use only if OAuth is not enabled on the Jira server. Do not
* set the username and OAuth token parameter, if they are both set, the
* username basic authentication takes precedence.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointConsumerBuilder username(String username) {
setProperty("username", username);
return this;
}
/**
* (OAuth only) The verification code from Jira generated in the first
* step of the authorization proccess.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointConsumerBuilder verificationCode(
String verificationCode) {
setProperty("verificationCode", verificationCode);
return this;
}
}
/**
* Advanced builder for endpoint consumers for the Jira component.
*/
public interface AdvancedJiraEndpointConsumerBuilder
extends
EndpointConsumerBuilder {
default JiraEndpointConsumerBuilder basic() {
return (JiraEndpointConsumerBuilder) 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 AdvancedJiraEndpointConsumerBuilder exceptionHandler(
ExceptionHandler exceptionHandler) {
setProperty("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 AdvancedJiraEndpointConsumerBuilder exceptionHandler(
String exceptionHandler) {
setProperty("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 AdvancedJiraEndpointConsumerBuilder exchangePattern(
ExchangePattern exchangePattern) {
setProperty("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 AdvancedJiraEndpointConsumerBuilder exchangePattern(
String exchangePattern) {
setProperty("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 AdvancedJiraEndpointConsumerBuilder basicPropertyBinding(
boolean basicPropertyBinding) {
setProperty("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 AdvancedJiraEndpointConsumerBuilder basicPropertyBinding(
String basicPropertyBinding) {
setProperty("basicPropertyBinding", basicPropertyBinding);
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 AdvancedJiraEndpointConsumerBuilder synchronous(
boolean synchronous) {
setProperty("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 AdvancedJiraEndpointConsumerBuilder synchronous(
String synchronous) {
setProperty("synchronous", synchronous);
return this;
}
}
/**
* Builder for endpoint producers for the Jira component.
*/
public interface JiraEndpointProducerBuilder
extends
EndpointProducerBuilder {
default AdvancedJiraEndpointProducerBuilder advanced() {
return (AdvancedJiraEndpointProducerBuilder) this;
}
/**
* Time in milliseconds to elapse for the next poll.
*
* The option is a: <code>java.lang.Integer</code> type.
*
* Group: common
*/
default JiraEndpointProducerBuilder delay(Integer delay) {
setProperty("delay", delay);
return this;
}
/**
* Time in milliseconds to elapse for the next poll.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
*
* Group: common
*/
default JiraEndpointProducerBuilder delay(String delay) {
setProperty("delay", delay);
return this;
}
/**
* The Jira server url, example: http://my_jira.com:8081.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: common
*/
default JiraEndpointProducerBuilder jiraUrl(String jiraUrl) {
setProperty("jiraUrl", jiraUrl);
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 JiraEndpointProducerBuilder lazyStartProducer(
boolean lazyStartProducer) {
setProperty("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 JiraEndpointProducerBuilder lazyStartProducer(
String lazyStartProducer) {
setProperty("lazyStartProducer", lazyStartProducer);
return this;
}
/**
* (OAuth only) The access token generated by the Jira server.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointProducerBuilder accessToken(String accessToken) {
setProperty("accessToken", accessToken);
return this;
}
/**
* (OAuth only) The consumer key from Jira settings.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointProducerBuilder consumerKey(String consumerKey) {
setProperty("consumerKey", consumerKey);
return this;
}
/**
* (Basic authentication only) The password to authenticate to the Jira
* server. Use only if username basic authentication is used.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointProducerBuilder password(String password) {
setProperty("password", password);
return this;
}
/**
* (OAuth only) The private key generated by the client to encrypt the
* conversation to the server.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointProducerBuilder privateKey(String privateKey) {
setProperty("privateKey", privateKey);
return this;
}
/**
* (Basic authentication only) The username to authenticate to the Jira
* server. Use only if OAuth is not enabled on the Jira server. Do not
* set the username and OAuth token parameter, if they are both set, the
* username basic authentication takes precedence.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointProducerBuilder username(String username) {
setProperty("username", username);
return this;
}
/**
* (OAuth only) The verification code from Jira generated in the first
* step of the authorization proccess.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointProducerBuilder verificationCode(
String verificationCode) {
setProperty("verificationCode", verificationCode);
return this;
}
}
/**
* Advanced builder for endpoint producers for the Jira component.
*/
public interface AdvancedJiraEndpointProducerBuilder
extends
EndpointProducerBuilder {
default JiraEndpointProducerBuilder basic() {
return (JiraEndpointProducerBuilder) 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 AdvancedJiraEndpointProducerBuilder basicPropertyBinding(
boolean basicPropertyBinding) {
setProperty("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 AdvancedJiraEndpointProducerBuilder basicPropertyBinding(
String basicPropertyBinding) {
setProperty("basicPropertyBinding", basicPropertyBinding);
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 AdvancedJiraEndpointProducerBuilder synchronous(
boolean synchronous) {
setProperty("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 AdvancedJiraEndpointProducerBuilder synchronous(
String synchronous) {
setProperty("synchronous", synchronous);
return this;
}
}
/**
* Builder for endpoint for the Jira component.
*/
public interface JiraEndpointBuilder
extends
JiraEndpointConsumerBuilder, JiraEndpointProducerBuilder {
default AdvancedJiraEndpointBuilder advanced() {
return (AdvancedJiraEndpointBuilder) this;
}
/**
* Time in milliseconds to elapse for the next poll.
*
* The option is a: <code>java.lang.Integer</code> type.
*
* Group: common
*/
default JiraEndpointBuilder delay(Integer delay) {
setProperty("delay", delay);
return this;
}
/**
* Time in milliseconds to elapse for the next poll.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
*
* Group: common
*/
default JiraEndpointBuilder delay(String delay) {
setProperty("delay", delay);
return this;
}
/**
* The Jira server url, example: http://my_jira.com:8081.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: common
*/
default JiraEndpointBuilder jiraUrl(String jiraUrl) {
setProperty("jiraUrl", jiraUrl);
return this;
}
/**
* (OAuth only) The access token generated by the Jira server.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointBuilder accessToken(String accessToken) {
setProperty("accessToken", accessToken);
return this;
}
/**
* (OAuth only) The consumer key from Jira settings.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointBuilder consumerKey(String consumerKey) {
setProperty("consumerKey", consumerKey);
return this;
}
/**
* (Basic authentication only) The password to authenticate to the Jira
* server. Use only if username basic authentication is used.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointBuilder password(String password) {
setProperty("password", password);
return this;
}
/**
* (OAuth only) The private key generated by the client to encrypt the
* conversation to the server.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointBuilder privateKey(String privateKey) {
setProperty("privateKey", privateKey);
return this;
}
/**
* (Basic authentication only) The username to authenticate to the Jira
* server. Use only if OAuth is not enabled on the Jira server. Do not
* set the username and OAuth token parameter, if they are both set, the
* username basic authentication takes precedence.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointBuilder username(String username) {
setProperty("username", username);
return this;
}
/**
* (OAuth only) The verification code from Jira generated in the first
* step of the authorization proccess.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*/
default JiraEndpointBuilder verificationCode(String verificationCode) {
setProperty("verificationCode", verificationCode);
return this;
}
}
/**
* Advanced builder for endpoint for the Jira component.
*/
public interface AdvancedJiraEndpointBuilder
extends
AdvancedJiraEndpointConsumerBuilder, AdvancedJiraEndpointProducerBuilder {
default JiraEndpointBuilder basic() {
return (JiraEndpointBuilder) 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 AdvancedJiraEndpointBuilder basicPropertyBinding(
boolean basicPropertyBinding) {
setProperty("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 AdvancedJiraEndpointBuilder basicPropertyBinding(
String basicPropertyBinding) {
setProperty("basicPropertyBinding", basicPropertyBinding);
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 AdvancedJiraEndpointBuilder synchronous(boolean synchronous) {
setProperty("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 AdvancedJiraEndpointBuilder synchronous(String synchronous) {
setProperty("synchronous", synchronous);
return this;
}
}
/**
* Jira (camel-jira)
* The jira component interacts with the JIRA issue tracker.
*
* Category: api,reporting
* Available as of version: 3.0
* Maven coordinates: org.apache.camel:camel-jira
*
* Syntax: <code>jira:type</code>
*
* Path parameter: type (required)
* Operation to perform. Consumers: NewIssues, NewComments. Producers:
* AddIssue, AttachFile, DeleteIssue, TransitionIssue, UpdateIssue,
* Watchers. See this class javadoc description for more information.
* The value can be one of: ADDCOMMENT, ADDISSUE, ATTACH, DELETEISSUE,
* NEWISSUES, NEWCOMMENTS, UPDATEISSUE, TRANSITIONISSUE, WATCHERS
*/
default JiraEndpointBuilder jira(String path) {
class JiraEndpointBuilderImpl extends AbstractEndpointBuilder implements JiraEndpointBuilder, AdvancedJiraEndpointBuilder {
public JiraEndpointBuilderImpl(String path) {
super("jira", path);
}
}
return new JiraEndpointBuilderImpl(path);
}
}