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

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.pinecone.PineconeVectorDbConfiguration;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
@SuppressWarnings("unchecked")
public class PineconeVectorDbConfigurationConfigurer 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.pinecone.PineconeVectorDbConfiguration target = (org.apache.camel.component.pinecone.PineconeVectorDbConfiguration) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "action": target.setAction(property(camelContext, org.apache.camel.component.pinecone.PineconeVectorDbAction.class, value)); return true;
        case "client": target.setClient(property(camelContext, io.pinecone.clients.Pinecone.class, value)); return true;
        case "cloud": target.setCloud(property(camelContext, java.lang.String.class, value)); return true;
        case "cloudregion":
        case "cloudRegion": target.setCloudRegion(property(camelContext, java.lang.String.class, value)); return true;
        case "collectiondimension":
        case "collectionDimension": target.setCollectionDimension(property(camelContext, java.lang.Integer.class, value)); return true;
        case "collectionsimilaritymetric":
        case "collectionSimilarityMetric": target.setCollectionSimilarityMetric(property(camelContext, java.lang.String.class, value)); return true;
        case "host": target.setHost(property(camelContext, java.lang.String.class, value)); return true;
        case "indexname":
        case "indexName": target.setIndexName(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyhost":
        case "proxyHost": target.setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyport":
        case "proxyPort": target.setProxyPort(property(camelContext, java.lang.Integer.class, value)); return true;
        case "tls": target.setTls(property(camelContext, boolean.class, value)); return true;
        case "token": target.setToken(property(camelContext, java.lang.String.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public Class<?> getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "action": return org.apache.camel.component.pinecone.PineconeVectorDbAction.class;
        case "client": return io.pinecone.clients.Pinecone.class;
        case "cloud": return java.lang.String.class;
        case "cloudregion":
        case "cloudRegion": return java.lang.String.class;
        case "collectiondimension":
        case "collectionDimension": return java.lang.Integer.class;
        case "collectionsimilaritymetric":
        case "collectionSimilarityMetric": return java.lang.String.class;
        case "host": return java.lang.String.class;
        case "indexname":
        case "indexName": return java.lang.String.class;
        case "proxyhost":
        case "proxyHost": return java.lang.String.class;
        case "proxyport":
        case "proxyPort": return java.lang.Integer.class;
        case "tls": return boolean.class;
        case "token": return java.lang.String.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        org.apache.camel.component.pinecone.PineconeVectorDbConfiguration target = (org.apache.camel.component.pinecone.PineconeVectorDbConfiguration) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "action": return target.getAction();
        case "client": return target.getClient();
        case "cloud": return target.getCloud();
        case "cloudregion":
        case "cloudRegion": return target.getCloudRegion();
        case "collectiondimension":
        case "collectionDimension": return target.getCollectionDimension();
        case "collectionsimilaritymetric":
        case "collectionSimilarityMetric": return target.getCollectionSimilarityMetric();
        case "host": return target.getHost();
        case "indexname":
        case "indexName": return target.getIndexName();
        case "proxyhost":
        case "proxyHost": return target.getProxyHost();
        case "proxyport":
        case "proxyPort": return target.getProxyPort();
        case "tls": return target.isTls();
        case "token": return target.getToken();
        default: return null;
        }
    }
}

