/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.consul.cluster;

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.consul.cluster.ConsulClusterService;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
@SuppressWarnings("unchecked")
public class ConsulClusterServiceConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        org.apache.camel.component.consul.cluster.ConsulClusterService target = (org.apache.camel.component.consul.cluster.ConsulClusterService) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "acltoken":
        case "aclToken": target.setAclToken(property(camelContext, java.lang.String.class, value)); return true;
        case "blockseconds":
        case "blockSeconds": target.setBlockSeconds(property(camelContext, int.class, value)); return true;
        case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.consul.cluster.ConsulClusterConfiguration.class, value)); return true;
        case "connecttimeout":
        case "connectTimeout": target.setConnectTimeout(property(camelContext, int.class, value)); return true;
        case "datacenter": target.setDatacenter(property(camelContext, java.lang.String.class, value)); return true;
        case "id": target.setId(property(camelContext, java.lang.String.class, value)); return true;
        case "password": target.setPassword(property(camelContext, java.lang.String.class, value)); return true;
        case "readtimeout":
        case "readTimeout": target.setReadTimeout(property(camelContext, int.class, value)); return true;
        case "rootpath":
        case "rootPath": target.setRootPath(property(camelContext, java.lang.String.class, value)); return true;
        case "sessionlockdelay":
        case "sessionLockDelay": target.setSessionLockDelay(property(camelContext, int.class, value)); return true;
        case "sessionrefreshinterval":
        case "sessionRefreshInterval": target.setSessionRefreshInterval(property(camelContext, int.class, value)); return true;
        case "sessionttl":
        case "sessionTtl": target.setSessionTtl(property(camelContext, int.class, value)); return true;
        case "sslcontextparameters":
        case "sslContextParameters": target.setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
        case "url": target.setUrl(property(camelContext, java.lang.String.class, value)); return true;
        case "username":
        case "userName": target.setUserName(property(camelContext, java.lang.String.class, value)); return true;
        case "writetimeout":
        case "writeTimeout": target.setWriteTimeout(property(camelContext, int.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public Class<?> getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "acltoken":
        case "aclToken": return java.lang.String.class;
        case "blockseconds":
        case "blockSeconds": return int.class;
        case "configuration": return org.apache.camel.component.consul.cluster.ConsulClusterConfiguration.class;
        case "connecttimeout":
        case "connectTimeout": return int.class;
        case "datacenter": return java.lang.String.class;
        case "id": return java.lang.String.class;
        case "password": return java.lang.String.class;
        case "readtimeout":
        case "readTimeout": return int.class;
        case "rootpath":
        case "rootPath": return java.lang.String.class;
        case "sessionlockdelay":
        case "sessionLockDelay": return int.class;
        case "sessionrefreshinterval":
        case "sessionRefreshInterval": return int.class;
        case "sessionttl":
        case "sessionTtl": return int.class;
        case "sslcontextparameters":
        case "sslContextParameters": return org.apache.camel.support.jsse.SSLContextParameters.class;
        case "url": return java.lang.String.class;
        case "username":
        case "userName": return java.lang.String.class;
        case "writetimeout":
        case "writeTimeout": return int.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        org.apache.camel.component.consul.cluster.ConsulClusterService target = (org.apache.camel.component.consul.cluster.ConsulClusterService) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "acltoken":
        case "aclToken": return target.getAclToken();
        case "blockseconds":
        case "blockSeconds": return target.getBlockSeconds();
        case "configuration": return target.getConfiguration();
        case "connecttimeout":
        case "connectTimeout": return target.getConnectTimeout();
        case "datacenter": return target.getDatacenter();
        case "id": return target.getId();
        case "password": return target.getPassword();
        case "readtimeout":
        case "readTimeout": return target.getReadTimeout();
        case "rootpath":
        case "rootPath": return target.getRootPath();
        case "sessionlockdelay":
        case "sessionLockDelay": return target.getSessionLockDelay();
        case "sessionrefreshinterval":
        case "sessionRefreshInterval": return target.getSessionRefreshInterval();
        case "sessionttl":
        case "sessionTtl": return target.getSessionTtl();
        case "sslcontextparameters":
        case "sslContextParameters": return target.getSslContextParameters();
        case "url": return target.getUrl();
        case "username":
        case "userName": return target.getUserName();
        case "writetimeout":
        case "writeTimeout": return target.getWriteTimeout();
        default: return null;
        }
    }
}

