org.apache.camel.component.twilio.MessageEndpointConfigurationConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-twilio Show documentation
Show all versions of camel-twilio Show documentation
Camel Component for Twilio
The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.twilio;
import javax.annotation.processing.Generated;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.component.twilio.MessageEndpointConfiguration;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
@SuppressWarnings("unchecked")
public class MessageEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
private static final Map ALL_OPTIONS;
static {
Map map = new CaseInsensitiveMap();
map.put("ApiName", org.apache.camel.component.twilio.internal.TwilioApiName.class);
map.put("Body", java.lang.String.class);
map.put("From", com.twilio.type.PhoneNumber.class);
map.put("MediaUrl", java.util.List.class);
map.put("MessagingServiceSid", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("PathAccountSid", java.lang.String.class);
map.put("PathSid", java.lang.String.class);
map.put("To", com.twilio.type.PhoneNumber.class);
ALL_OPTIONS = map;
}
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
org.apache.camel.component.twilio.MessageEndpointConfiguration target = (org.apache.camel.component.twilio.MessageEndpointConfiguration) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "apiname":
case "apiName": target.setApiName(property(camelContext, org.apache.camel.component.twilio.internal.TwilioApiName.class, value)); return true;
case "body": target.setBody(property(camelContext, java.lang.String.class, value)); return true;
case "from": target.setFrom(property(camelContext, com.twilio.type.PhoneNumber.class, value)); return true;
case "mediaurl":
case "mediaUrl": target.setMediaUrl(property(camelContext, java.util.List.class, value)); return true;
case "messagingservicesid":
case "messagingServiceSid": target.setMessagingServiceSid(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "methodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "pathaccountsid":
case "pathAccountSid": target.setPathAccountSid(property(camelContext, java.lang.String.class, value)); return true;
case "pathsid":
case "pathSid": target.setPathSid(property(camelContext, java.lang.String.class, value)); return true;
case "to": target.setTo(property(camelContext, com.twilio.type.PhoneNumber.class, value)); return true;
default: return false;
}
}
@Override
public Map getAllOptions(Object target) {
return ALL_OPTIONS;
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "apiname":
case "apiName": return org.apache.camel.component.twilio.internal.TwilioApiName.class;
case "body": return java.lang.String.class;
case "from": return com.twilio.type.PhoneNumber.class;
case "mediaurl":
case "mediaUrl": return java.util.List.class;
case "messagingservicesid":
case "messagingServiceSid": return java.lang.String.class;
case "methodname":
case "methodName": return java.lang.String.class;
case "pathaccountsid":
case "pathAccountSid": return java.lang.String.class;
case "pathsid":
case "pathSid": return java.lang.String.class;
case "to": return com.twilio.type.PhoneNumber.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
org.apache.camel.component.twilio.MessageEndpointConfiguration target = (org.apache.camel.component.twilio.MessageEndpointConfiguration) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "apiname":
case "apiName": return target.getApiName();
case "body": return target.getBody();
case "from": return target.getFrom();
case "mediaurl":
case "mediaUrl": return target.getMediaUrl();
case "messagingservicesid":
case "messagingServiceSid": return target.getMessagingServiceSid();
case "methodname":
case "methodName": return target.getMethodName();
case "pathaccountsid":
case "pathAccountSid": return target.getPathAccountSid();
case "pathsid":
case "pathSid": return target.getPathSid();
case "to": return target.getTo();
default: return null;
}
}
@Override
public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "mediaurl":
case "mediaUrl": return java.net.URI.class;
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy