content: /* Generated by camel build tools - do NOT edit this file! */
  package org.apache.camel.component.digitalocean;
  
  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.support.component.PropertyConfigurerSupport;
  
  /**
   * Generated by camel build tools - do NOT edit this file!
   */
  @Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
  @SuppressWarnings("unchecked")
  public class DigitalOceanEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
  
      @Override
      public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
          DigitalOceanEndpoint target = (DigitalOceanEndpoint) obj;
          switch (ignoreCase ? name.toLowerCase() : name) {
          case "digitaloceanclient":
          case "digitalOceanClient": target.getConfiguration().setDigitalOceanClient(property(camelContext, com.myjeeva.digitalocean.impl.DigitalOceanClient.class, value)); return true;
          case "httpproxyhost":
          case "httpProxyHost": target.getConfiguration().setHttpProxyHost(property(camelContext, java.lang.String.class, value)); return true;
          case "httpproxypassword":
          case "httpProxyPassword": target.getConfiguration().setHttpProxyPassword(property(camelContext, java.lang.String.class, value)); return true;
          case "httpproxyport":
          case "httpProxyPort": target.getConfiguration().setHttpProxyPort(property(camelContext, java.lang.Integer.class, value)); return true;
          case "httpproxyuser":
          case "httpProxyUser": target.getConfiguration().setHttpProxyUser(property(camelContext, java.lang.String.class, value)); return true;
          case "lazystartproducer":
          case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
          case "oauthtoken":
          case "oAuthToken": target.getConfiguration().setOAuthToken(property(camelContext, java.lang.String.class, value)); return true;
          case "page": target.getConfiguration().setPage(property(camelContext, java.lang.Integer.class, value)); return true;
          case "perpage":
          case "perPage": target.getConfiguration().setPerPage(property(camelContext, java.lang.Integer.class, value)); return true;
          case "resource": target.getConfiguration().setResource(property(camelContext, org.apache.camel.component.digitalocean.constants.DigitalOceanResources.class, value)); return true;
          default: return false;
          }
      }
  
      @Override
      public Class<?> getOptionType(String name, boolean ignoreCase) {
          switch (ignoreCase ? name.toLowerCase() : name) {
          case "digitaloceanclient":
          case "digitalOceanClient": return com.myjeeva.digitalocean.impl.DigitalOceanClient.class;
          case "httpproxyhost":
          case "httpProxyHost": return java.lang.String.class;
          case "httpproxypassword":
          case "httpProxyPassword": return java.lang.String.class;
          case "httpproxyport":
          case "httpProxyPort": return java.lang.Integer.class;
          case "httpproxyuser":
          case "httpProxyUser": return java.lang.String.class;
          case "lazystartproducer":
          case "lazyStartProducer": return boolean.class;
          case "oauthtoken":
          case "oAuthToken": return java.lang.String.class;
          case "page": return java.lang.Integer.class;
          case "perpage":
          case "perPage": return java.lang.Integer.class;
          case "resource": return org.apache.camel.component.digitalocean.constants.DigitalOceanResources.class;
          default: return null;
          }
      }
  
      @Override
      public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
          DigitalOceanEndpoint target = (DigitalOceanEndpoint) obj;
          switch (ignoreCase ? name.toLowerCase() : name) {
          case "digitaloceanclient":
          case "digitalOceanClient": return target.getConfiguration().getDigitalOceanClient();
          case "httpproxyhost":
          case "httpProxyHost": return target.getConfiguration().getHttpProxyHost();
          case "httpproxypassword":
          case "httpProxyPassword": return target.getConfiguration().getHttpProxyPassword();
          case "httpproxyport":
          case "httpProxyPort": return target.getConfiguration().getHttpProxyPort();
          case "httpproxyuser":
          case "httpProxyUser": return target.getConfiguration().getHttpProxyUser();
          case "lazystartproducer":
          case "lazyStartProducer": return target.isLazyStartProducer();
          case "oauthtoken":
          case "oAuthToken": return target.getConfiguration().getOAuthToken();
          case "page": return target.getConfiguration().getPage();
          case "perpage":
          case "perPage": return target.getConfiguration().getPerPage();
          case "resource": return target.getConfiguration().getResource();
          default: return null;
          }
      }
  }
  
  