blob: c8257fb911cdd525ce2bcae2de6056dd6cf07581 [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 java.util.Map;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
import org.apache.camel.ExchangePattern;
import org.apache.camel.LoggingLevel;
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;
import org.apache.camel.spi.PollingConsumerPollStrategy;
import org.apache.camel.spi.ScheduledPollConsumerScheduler;
/**
* The yammer component allows you to interact with the Yammer enterprise social
* network.
*
* Generated by camel-package-maven-plugin - do not edit this file!
*/
@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
public interface YammerEndpointBuilderFactory {
/**
* Builder for endpoint consumers for the Yammer component.
*/
public interface YammerEndpointConsumerBuilder
extends
EndpointConsumerBuilder {
default AdvancedYammerEndpointConsumerBuilder advanced() {
return (AdvancedYammerEndpointConsumerBuilder) this;
}
/**
* Set to true if you want to use raw JSON rather than converting to
* POJOs.
*
* The option is a: <code>boolean</code> type.
*
* Group: common
*/
default YammerEndpointConsumerBuilder useJson(boolean useJson) {
setProperty("useJson", useJson);
return this;
}
/**
* Set to true if you want to use raw JSON rather than converting to
* POJOs.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: common
*/
default YammerEndpointConsumerBuilder useJson(String useJson) {
setProperty("useJson", useJson);
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 YammerEndpointConsumerBuilder 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 YammerEndpointConsumerBuilder bridgeErrorHandler(
String bridgeErrorHandler) {
setProperty("bridgeErrorHandler", bridgeErrorHandler);
return this;
}
/**
* Delay between polling in millis.
*
* The option is a: <code>long</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder delay(long delay) {
setProperty("delay", delay);
return this;
}
/**
* Delay between polling in millis.
*
* The option will be converted to a <code>long</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder delay(String delay) {
setProperty("delay", delay);
return this;
}
/**
* Return only the specified number of messages. Works for threaded=true
* and threaded=extended.
*
* The option is a: <code>int</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder limit(int limit) {
setProperty("limit", limit);
return this;
}
/**
* Return only the specified number of messages. Works for threaded=true
* and threaded=extended.
*
* The option will be converted to a <code>int</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder limit(String limit) {
setProperty("limit", limit);
return this;
}
/**
* Returns messages newer than the message ID specified as a numeric
* string. This should be used when polling for new messages. If you're
* looking at messages, and the most recent message returned is 3516,
* you can make a request with the parameter newerThan=3516 to ensure
* that you do not get duplicate copies of messages already on your
* page.
*
* The option is a: <code>long</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder newerThan(long newerThan) {
setProperty("newerThan", newerThan);
return this;
}
/**
* Returns messages newer than the message ID specified as a numeric
* string. This should be used when polling for new messages. If you're
* looking at messages, and the most recent message returned is 3516,
* you can make a request with the parameter newerThan=3516 to ensure
* that you do not get duplicate copies of messages already on your
* page.
*
* The option will be converted to a <code>long</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder newerThan(String newerThan) {
setProperty("newerThan", newerThan);
return this;
}
/**
* Returns messages older than the message ID specified as a numeric
* string. This is useful for paginating messages. For example, if
* you're currently viewing 20 messages and the oldest is number 2912,
* you could append olderThan=2912 to your request to get the 20
* messages prior to those you're seeing.
*
* The option is a: <code>long</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder olderThan(long olderThan) {
setProperty("olderThan", olderThan);
return this;
}
/**
* Returns messages older than the message ID specified as a numeric
* string. This is useful for paginating messages. For example, if
* you're currently viewing 20 messages and the oldest is number 2912,
* you could append olderThan=2912 to your request to get the 20
* messages prior to those you're seeing.
*
* The option will be converted to a <code>long</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder olderThan(String olderThan) {
setProperty("olderThan", olderThan);
return this;
}
/**
* If the polling consumer did not poll any files, you can enable this
* option to send an empty message (no body) instead.
*
* The option is a: <code>boolean</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder sendEmptyMessageWhenIdle(
boolean sendEmptyMessageWhenIdle) {
setProperty("sendEmptyMessageWhenIdle", sendEmptyMessageWhenIdle);
return this;
}
/**
* If the polling consumer did not poll any files, you can enable this
* option to send an empty message (no body) instead.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder sendEmptyMessageWhenIdle(
String sendEmptyMessageWhenIdle) {
setProperty("sendEmptyMessageWhenIdle", sendEmptyMessageWhenIdle);
return this;
}
/**
* threaded=true will only return the first message in each thread. This
* parameter is intended for apps which display message threads
* collapsed. threaded=extended will return the thread starter messages
* in order of most recently active as well as the two most recent
* messages, as they are viewed in the default view on the Yammer web
* interface.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder threaded(String threaded) {
setProperty("threaded", threaded);
return this;
}
/**
* The user id.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: consumer
*/
default YammerEndpointConsumerBuilder userId(String userId) {
setProperty("userId", userId);
return this;
}
/**
* The number of subsequent error polls (failed due some error) that
* should happen before the backoffMultipler should kick-in.
*
* The option is a: <code>int</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder backoffErrorThreshold(
int backoffErrorThreshold) {
setProperty("backoffErrorThreshold", backoffErrorThreshold);
return this;
}
/**
* The number of subsequent error polls (failed due some error) that
* should happen before the backoffMultipler should kick-in.
*
* The option will be converted to a <code>int</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder backoffErrorThreshold(
String backoffErrorThreshold) {
setProperty("backoffErrorThreshold", backoffErrorThreshold);
return this;
}
/**
* The number of subsequent idle polls that should happen before the
* backoffMultipler should kick-in.
*
* The option is a: <code>int</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder backoffIdleThreshold(
int backoffIdleThreshold) {
setProperty("backoffIdleThreshold", backoffIdleThreshold);
return this;
}
/**
* The number of subsequent idle polls that should happen before the
* backoffMultipler should kick-in.
*
* The option will be converted to a <code>int</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder backoffIdleThreshold(
String backoffIdleThreshold) {
setProperty("backoffIdleThreshold", backoffIdleThreshold);
return this;
}
/**
* To let the scheduled polling consumer backoff if there has been a
* number of subsequent idles/errors in a row. The multiplier is then
* the number of polls that will be skipped before the next actual
* attempt is happening again. When this option is in use then
* backoffIdleThreshold and/or backoffErrorThreshold must also be
* configured.
*
* The option is a: <code>int</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder backoffMultiplier(
int backoffMultiplier) {
setProperty("backoffMultiplier", backoffMultiplier);
return this;
}
/**
* To let the scheduled polling consumer backoff if there has been a
* number of subsequent idles/errors in a row. The multiplier is then
* the number of polls that will be skipped before the next actual
* attempt is happening again. When this option is in use then
* backoffIdleThreshold and/or backoffErrorThreshold must also be
* configured.
*
* The option will be converted to a <code>int</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder backoffMultiplier(
String backoffMultiplier) {
setProperty("backoffMultiplier", backoffMultiplier);
return this;
}
/**
* If greedy is enabled, then the ScheduledPollConsumer will run
* immediately again, if the previous run polled 1 or more messages.
*
* The option is a: <code>boolean</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder greedy(boolean greedy) {
setProperty("greedy", greedy);
return this;
}
/**
* If greedy is enabled, then the ScheduledPollConsumer will run
* immediately again, if the previous run polled 1 or more messages.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder greedy(String greedy) {
setProperty("greedy", greedy);
return this;
}
/**
* Milliseconds before the first poll starts. You can also specify time
* values using units, such as 60s (60 seconds), 5m30s (5 minutes and 30
* seconds), and 1h (1 hour).
*
* The option is a: <code>long</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder initialDelay(long initialDelay) {
setProperty("initialDelay", initialDelay);
return this;
}
/**
* Milliseconds before the first poll starts. You can also specify time
* values using units, such as 60s (60 seconds), 5m30s (5 minutes and 30
* seconds), and 1h (1 hour).
*
* The option will be converted to a <code>long</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder initialDelay(String initialDelay) {
setProperty("initialDelay", initialDelay);
return this;
}
/**
* The consumer logs a start/complete log line when it polls. This
* option allows you to configure the logging level for that.
*
* The option is a: <code>org.apache.camel.LoggingLevel</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder runLoggingLevel(
LoggingLevel runLoggingLevel) {
setProperty("runLoggingLevel", runLoggingLevel);
return this;
}
/**
* The consumer logs a start/complete log line when it polls. This
* option allows you to configure the logging level for that.
*
* The option will be converted to a
* <code>org.apache.camel.LoggingLevel</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder runLoggingLevel(
String runLoggingLevel) {
setProperty("runLoggingLevel", runLoggingLevel);
return this;
}
/**
* Allows for configuring a custom/shared thread pool to use for the
* consumer. By default each consumer has its own single threaded thread
* pool.
*
* The option is a:
* <code>java.util.concurrent.ScheduledExecutorService</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder scheduledExecutorService(
ScheduledExecutorService scheduledExecutorService) {
setProperty("scheduledExecutorService", scheduledExecutorService);
return this;
}
/**
* Allows for configuring a custom/shared thread pool to use for the
* consumer. By default each consumer has its own single threaded thread
* pool.
*
* The option will be converted to a
* <code>java.util.concurrent.ScheduledExecutorService</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder scheduledExecutorService(
String scheduledExecutorService) {
setProperty("scheduledExecutorService", scheduledExecutorService);
return this;
}
/**
* To use a cron scheduler from either camel-spring or camel-quartz2
* component.
*
* The option is a:
* <code>org.apache.camel.spi.ScheduledPollConsumerScheduler</code>
* type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder scheduler(
ScheduledPollConsumerScheduler scheduler) {
setProperty("scheduler", scheduler);
return this;
}
/**
* To use a cron scheduler from either camel-spring or camel-quartz2
* component.
*
* The option will be converted to a
* <code>org.apache.camel.spi.ScheduledPollConsumerScheduler</code>
* type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder scheduler(String scheduler) {
setProperty("scheduler", scheduler);
return this;
}
/**
* To configure additional properties when using a custom scheduler or
* any of the Quartz2, Spring based scheduler.
*
* The option is a: <code>java.util.Map&lt;java.lang.String,
* java.lang.Object&gt;</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder schedulerProperties(
Map<String, Object> schedulerProperties) {
setProperty("schedulerProperties", schedulerProperties);
return this;
}
/**
* To configure additional properties when using a custom scheduler or
* any of the Quartz2, Spring based scheduler.
*
* The option will be converted to a
* <code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</code>
* type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder schedulerProperties(
String schedulerProperties) {
setProperty("schedulerProperties", schedulerProperties);
return this;
}
/**
* Whether the scheduler should be auto started.
*
* The option is a: <code>boolean</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder startScheduler(
boolean startScheduler) {
setProperty("startScheduler", startScheduler);
return this;
}
/**
* Whether the scheduler should be auto started.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder startScheduler(
String startScheduler) {
setProperty("startScheduler", startScheduler);
return this;
}
/**
* Time unit for initialDelay and delay options.
*
* The option is a: <code>java.util.concurrent.TimeUnit</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder timeUnit(TimeUnit timeUnit) {
setProperty("timeUnit", timeUnit);
return this;
}
/**
* Time unit for initialDelay and delay options.
*
* The option will be converted to a
* <code>java.util.concurrent.TimeUnit</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder timeUnit(String timeUnit) {
setProperty("timeUnit", timeUnit);
return this;
}
/**
* Controls if fixed delay or fixed rate is used. See
* ScheduledExecutorService in JDK for details.
*
* The option is a: <code>boolean</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder useFixedDelay(
boolean useFixedDelay) {
setProperty("useFixedDelay", useFixedDelay);
return this;
}
/**
* Controls if fixed delay or fixed rate is used. See
* ScheduledExecutorService in JDK for details.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: scheduler
*/
default YammerEndpointConsumerBuilder useFixedDelay(String useFixedDelay) {
setProperty("useFixedDelay", useFixedDelay);
return this;
}
/**
* The access token.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: security
*/
default YammerEndpointConsumerBuilder accessToken(String accessToken) {
setProperty("accessToken", accessToken);
return this;
}
/**
* The consumer key.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: security
*/
default YammerEndpointConsumerBuilder consumerKey(String consumerKey) {
setProperty("consumerKey", consumerKey);
return this;
}
/**
* The consumer secret.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: security
*/
default YammerEndpointConsumerBuilder consumerSecret(
String consumerSecret) {
setProperty("consumerSecret", consumerSecret);
return this;
}
}
/**
* Advanced builder for endpoint consumers for the Yammer component.
*/
public interface AdvancedYammerEndpointConsumerBuilder
extends
EndpointConsumerBuilder {
default YammerEndpointConsumerBuilder basic() {
return (YammerEndpointConsumerBuilder) 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 AdvancedYammerEndpointConsumerBuilder 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 AdvancedYammerEndpointConsumerBuilder 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 AdvancedYammerEndpointConsumerBuilder 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 AdvancedYammerEndpointConsumerBuilder exchangePattern(
String exchangePattern) {
setProperty("exchangePattern", exchangePattern);
return this;
}
/**
* A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing
* you to provide your custom implementation to control error handling
* usually occurred during the poll operation before an Exchange have
* been created and being routed in Camel.
*
* The option is a:
* <code>org.apache.camel.spi.PollingConsumerPollStrategy</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedYammerEndpointConsumerBuilder pollStrategy(
PollingConsumerPollStrategy pollStrategy) {
setProperty("pollStrategy", pollStrategy);
return this;
}
/**
* A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing
* you to provide your custom implementation to control error handling
* usually occurred during the poll operation before an Exchange have
* been created and being routed in Camel.
*
* The option will be converted to a
* <code>org.apache.camel.spi.PollingConsumerPollStrategy</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedYammerEndpointConsumerBuilder pollStrategy(
String pollStrategy) {
setProperty("pollStrategy", pollStrategy);
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 AdvancedYammerEndpointConsumerBuilder 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 AdvancedYammerEndpointConsumerBuilder 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 AdvancedYammerEndpointConsumerBuilder 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 AdvancedYammerEndpointConsumerBuilder synchronous(
String synchronous) {
setProperty("synchronous", synchronous);
return this;
}
}
/**
* Builder for endpoint producers for the Yammer component.
*/
public interface YammerEndpointProducerBuilder
extends
EndpointProducerBuilder {
default AdvancedYammerEndpointProducerBuilder advanced() {
return (AdvancedYammerEndpointProducerBuilder) this;
}
/**
* Set to true if you want to use raw JSON rather than converting to
* POJOs.
*
* The option is a: <code>boolean</code> type.
*
* Group: common
*/
default YammerEndpointProducerBuilder useJson(boolean useJson) {
setProperty("useJson", useJson);
return this;
}
/**
* Set to true if you want to use raw JSON rather than converting to
* POJOs.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: common
*/
default YammerEndpointProducerBuilder useJson(String useJson) {
setProperty("useJson", useJson);
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 YammerEndpointProducerBuilder 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 YammerEndpointProducerBuilder lazyStartProducer(
String lazyStartProducer) {
setProperty("lazyStartProducer", lazyStartProducer);
return this;
}
/**
* The access token.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: security
*/
default YammerEndpointProducerBuilder accessToken(String accessToken) {
setProperty("accessToken", accessToken);
return this;
}
/**
* The consumer key.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: security
*/
default YammerEndpointProducerBuilder consumerKey(String consumerKey) {
setProperty("consumerKey", consumerKey);
return this;
}
/**
* The consumer secret.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: security
*/
default YammerEndpointProducerBuilder consumerSecret(
String consumerSecret) {
setProperty("consumerSecret", consumerSecret);
return this;
}
}
/**
* Advanced builder for endpoint producers for the Yammer component.
*/
public interface AdvancedYammerEndpointProducerBuilder
extends
EndpointProducerBuilder {
default YammerEndpointProducerBuilder basic() {
return (YammerEndpointProducerBuilder) 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 AdvancedYammerEndpointProducerBuilder 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 AdvancedYammerEndpointProducerBuilder 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 AdvancedYammerEndpointProducerBuilder 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 AdvancedYammerEndpointProducerBuilder synchronous(
String synchronous) {
setProperty("synchronous", synchronous);
return this;
}
}
/**
* Builder for endpoint for the Yammer component.
*/
public interface YammerEndpointBuilder
extends
YammerEndpointConsumerBuilder, YammerEndpointProducerBuilder {
default AdvancedYammerEndpointBuilder advanced() {
return (AdvancedYammerEndpointBuilder) this;
}
/**
* Set to true if you want to use raw JSON rather than converting to
* POJOs.
*
* The option is a: <code>boolean</code> type.
*
* Group: common
*/
default YammerEndpointBuilder useJson(boolean useJson) {
setProperty("useJson", useJson);
return this;
}
/**
* Set to true if you want to use raw JSON rather than converting to
* POJOs.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: common
*/
default YammerEndpointBuilder useJson(String useJson) {
setProperty("useJson", useJson);
return this;
}
/**
* The access token.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: security
*/
default YammerEndpointBuilder accessToken(String accessToken) {
setProperty("accessToken", accessToken);
return this;
}
/**
* The consumer key.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: security
*/
default YammerEndpointBuilder consumerKey(String consumerKey) {
setProperty("consumerKey", consumerKey);
return this;
}
/**
* The consumer secret.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
* Group: security
*/
default YammerEndpointBuilder consumerSecret(String consumerSecret) {
setProperty("consumerSecret", consumerSecret);
return this;
}
}
/**
* Advanced builder for endpoint for the Yammer component.
*/
public interface AdvancedYammerEndpointBuilder
extends
AdvancedYammerEndpointConsumerBuilder, AdvancedYammerEndpointProducerBuilder {
default YammerEndpointBuilder basic() {
return (YammerEndpointBuilder) 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 AdvancedYammerEndpointBuilder 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 AdvancedYammerEndpointBuilder 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 AdvancedYammerEndpointBuilder 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 AdvancedYammerEndpointBuilder synchronous(String synchronous) {
setProperty("synchronous", synchronous);
return this;
}
}
/**
* Yammer (camel-yammer)
* The yammer component allows you to interact with the Yammer enterprise
* social network.
*
* Category: social
* Available as of version: 2.12
* Maven coordinates: org.apache.camel:camel-yammer
*
* Syntax: <code>yammer:function</code>
*
* Path parameter: function (required)
* The function to use
* The value can be one of: MESSAGES, MY_FEED, ALGO, FOLLOWING, SENT,
* PRIVATE, RECEIVED, USERS, CURRENT
*/
default YammerEndpointBuilder yammer(String path) {
class YammerEndpointBuilderImpl extends AbstractEndpointBuilder implements YammerEndpointBuilder, AdvancedYammerEndpointBuilder {
public YammerEndpointBuilderImpl(String path) {
super("yammer", path);
}
}
return new YammerEndpointBuilderImpl(path);
}
}