org.apache.camel.component.twilio.AddressEndpointConfigurationConfigurer Maven / Gradle / Ivy
/* 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.AddressEndpointConfiguration;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
@SuppressWarnings("unchecked")
public class AddressEndpointConfigurationConfigurer 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("City", java.lang.String.class);
map.put("CustomerName", java.lang.String.class);
map.put("IsoCountry", 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("PostalCode", java.lang.String.class);
map.put("Region", java.lang.String.class);
map.put("Street", java.lang.String.class);
ALL_OPTIONS = map;
}
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
org.apache.camel.component.twilio.AddressEndpointConfiguration target = (org.apache.camel.component.twilio.AddressEndpointConfiguration) 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 "city": target.setCity(property(camelContext, java.lang.String.class, value)); return true;
case "customername":
case "customerName": target.setCustomerName(property(camelContext, java.lang.String.class, value)); return true;
case "isocountry":
case "isoCountry": target.setIsoCountry(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 "postalcode":
case "postalCode": target.setPostalCode(property(camelContext, java.lang.String.class, value)); return true;
case "region": target.setRegion(property(camelContext, java.lang.String.class, value)); return true;
case "street": target.setStreet(property(camelContext, java.lang.String.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 "city": return java.lang.String.class;
case "customername":
case "customerName": return java.lang.String.class;
case "isocountry":
case "isoCountry": 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 "postalcode":
case "postalCode": return java.lang.String.class;
case "region": return java.lang.String.class;
case "street": return java.lang.String.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
org.apache.camel.component.twilio.AddressEndpointConfiguration target = (org.apache.camel.component.twilio.AddressEndpointConfiguration) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "apiname":
case "apiName": return target.getApiName();
case "city": return target.getCity();
case "customername":
case "customerName": return target.getCustomerName();
case "isocountry":
case "isoCountry": return target.getIsoCountry();
case "methodname":
case "methodName": return target.getMethodName();
case "pathaccountsid":
case "pathAccountSid": return target.getPathAccountSid();
case "pathsid":
case "pathSid": return target.getPathSid();
case "postalcode":
case "postalCode": return target.getPostalCode();
case "region": return target.getRegion();
case "street": return target.getStreet();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy