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

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.support.component.PropertyConfigurerSupport;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
@SuppressWarnings("unchecked")
public class QueueServiceEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        QueueServiceEndpoint target = (QueueServiceEndpoint) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "azurequeueclient":
        case "azureQueueClient": target.getConfiguration().setAzureQueueClient(property(camelContext, com.microsoft.azure.storage.queue.CloudQueue.class, value)); return true;
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "credentials": target.getConfiguration().setCredentials(property(camelContext, com.microsoft.azure.storage.StorageCredentials.class, value)); return true;
        case "credentialsaccountkey":
        case "credentialsAccountKey": target.getConfiguration().setCredentialsAccountKey(property(camelContext, java.lang.String.class, value)); return true;
        case "credentialsaccountname":
        case "credentialsAccountName": target.getConfiguration().setCredentialsAccountName(property(camelContext, java.lang.String.class, value)); return true;
        case "exceptionhandler":
        case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
        case "exchangepattern":
        case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
        case "lazystartproducer":
        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "messagetimetolive":
        case "messageTimeToLive": target.getConfiguration().setMessageTimeToLive(property(camelContext, int.class, value)); return true;
        case "messagevisibilitydelay":
        case "messageVisibilityDelay": target.getConfiguration().setMessageVisibilityDelay(property(camelContext, int.class, value)); return true;
        case "operation": target.getConfiguration().setOperation(property(camelContext, org.apache.camel.component.azure.queue.QueueServiceOperations.class, value)); return true;
        case "queueprefix":
        case "queuePrefix": target.getConfiguration().setQueuePrefix(property(camelContext, java.lang.String.class, value)); return true;
        case "synchronous": target.setSynchronous(property(camelContext, boolean.class, value)); return true;
        case "validateclienturi":
        case "validateClientURI": target.getConfiguration().setValidateClientURI(property(camelContext, boolean.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public Class<?> getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "azurequeueclient":
        case "azureQueueClient": return com.microsoft.azure.storage.queue.CloudQueue.class;
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return boolean.class;
        case "credentials": return com.microsoft.azure.storage.StorageCredentials.class;
        case "credentialsaccountkey":
        case "credentialsAccountKey": return java.lang.String.class;
        case "credentialsaccountname":
        case "credentialsAccountName": return java.lang.String.class;
        case "exceptionhandler":
        case "exceptionHandler": return org.apache.camel.spi.ExceptionHandler.class;
        case "exchangepattern":
        case "exchangePattern": return org.apache.camel.ExchangePattern.class;
        case "lazystartproducer":
        case "lazyStartProducer": return boolean.class;
        case "messagetimetolive":
        case "messageTimeToLive": return int.class;
        case "messagevisibilitydelay":
        case "messageVisibilityDelay": return int.class;
        case "operation": return org.apache.camel.component.azure.queue.QueueServiceOperations.class;
        case "queueprefix":
        case "queuePrefix": return java.lang.String.class;
        case "synchronous": return boolean.class;
        case "validateclienturi":
        case "validateClientURI": return boolean.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        QueueServiceEndpoint target = (QueueServiceEndpoint) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "azurequeueclient":
        case "azureQueueClient": return target.getConfiguration().getAzureQueueClient();
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return target.isBridgeErrorHandler();
        case "credentials": return target.getConfiguration().getCredentials();
        case "credentialsaccountkey":
        case "credentialsAccountKey": return target.getConfiguration().getCredentialsAccountKey();
        case "credentialsaccountname":
        case "credentialsAccountName": return target.getConfiguration().getCredentialsAccountName();
        case "exceptionhandler":
        case "exceptionHandler": return target.getExceptionHandler();
        case "exchangepattern":
        case "exchangePattern": return target.getExchangePattern();
        case "lazystartproducer":
        case "lazyStartProducer": return target.isLazyStartProducer();
        case "messagetimetolive":
        case "messageTimeToLive": return target.getConfiguration().getMessageTimeToLive();
        case "messagevisibilitydelay":
        case "messageVisibilityDelay": return target.getConfiguration().getMessageVisibilityDelay();
        case "operation": return target.getConfiguration().getOperation();
        case "queueprefix":
        case "queuePrefix": return target.getConfiguration().getQueuePrefix();
        case "synchronous": return target.isSynchronous();
        case "validateclienturi":
        case "validateClientURI": return target.getConfiguration().isValidateClientURI();
        default: return null;
        }
    }
}

