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

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 BlobComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

    private org.apache.camel.component.azure.storage.blob.BlobConfiguration getOrCreateConfiguration(BlobComponent target) {
        if (target.getConfiguration() == null) {
            target.setConfiguration(new org.apache.camel.component.azure.storage.blob.BlobConfiguration());
        }
        return target.getConfiguration();
    }

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        BlobComponent target = (BlobComponent) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesskey":
        case "accessKey": getOrCreateConfiguration(target).setAccessKey(property(camelContext, java.lang.String.class, value)); return true;
        case "autowiredenabled":
        case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
        case "azureclientid":
        case "azureClientId": getOrCreateConfiguration(target).setAzureClientId(property(camelContext, java.lang.String.class, value)); return true;
        case "azureclientsecret":
        case "azureClientSecret": getOrCreateConfiguration(target).setAzureClientSecret(property(camelContext, java.lang.String.class, value)); return true;
        case "azuretenantid":
        case "azureTenantId": getOrCreateConfiguration(target).setAzureTenantId(property(camelContext, java.lang.String.class, value)); return true;
        case "blobname":
        case "blobName": getOrCreateConfiguration(target).setBlobName(property(camelContext, java.lang.String.class, value)); return true;
        case "bloboffset":
        case "blobOffset": getOrCreateConfiguration(target).setBlobOffset(property(camelContext, long.class, value)); return true;
        case "blobsequencenumber":
        case "blobSequenceNumber": getOrCreateConfiguration(target).setBlobSequenceNumber(property(camelContext, java.lang.Long.class, value)); return true;
        case "blobtype":
        case "blobType": getOrCreateConfiguration(target).setBlobType(property(camelContext, org.apache.camel.component.azure.storage.blob.BlobType.class, value)); return true;
        case "blocklisttype":
        case "blockListType": getOrCreateConfiguration(target).setBlockListType(property(camelContext, com.azure.storage.blob.models.BlockListType.class, value)); return true;
        case "blocksize":
        case "blockSize": getOrCreateConfiguration(target).setBlockSize(property(camelContext, java.lang.Long.class, value)); return true;
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "changefeedcontext":
        case "changeFeedContext": getOrCreateConfiguration(target).setChangeFeedContext(property(camelContext, com.azure.core.util.Context.class, value)); return true;
        case "changefeedendtime":
        case "changeFeedEndTime": getOrCreateConfiguration(target).setChangeFeedEndTime(property(camelContext, java.time.OffsetDateTime.class, value)); return true;
        case "changefeedstarttime":
        case "changeFeedStartTime": getOrCreateConfiguration(target).setChangeFeedStartTime(property(camelContext, java.time.OffsetDateTime.class, value)); return true;
        case "closestreamafterread":
        case "closeStreamAfterRead": getOrCreateConfiguration(target).setCloseStreamAfterRead(property(camelContext, boolean.class, value)); return true;
        case "closestreamafterwrite":
        case "closeStreamAfterWrite": getOrCreateConfiguration(target).setCloseStreamAfterWrite(property(camelContext, boolean.class, value)); return true;
        case "commitblocklistlater":
        case "commitBlockListLater": getOrCreateConfiguration(target).setCommitBlockListLater(property(camelContext, boolean.class, value)); return true;
        case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.azure.storage.blob.BlobConfiguration.class, value)); return true;
        case "createappendblob":
        case "createAppendBlob": getOrCreateConfiguration(target).setCreateAppendBlob(property(camelContext, boolean.class, value)); return true;
        case "createpageblob":
        case "createPageBlob": getOrCreateConfiguration(target).setCreatePageBlob(property(camelContext, boolean.class, value)); return true;
        case "credentialtype":
        case "credentialType": getOrCreateConfiguration(target).setCredentialType(property(camelContext, org.apache.camel.component.azure.storage.blob.CredentialType.class, value)); return true;
        case "credentials": getOrCreateConfiguration(target).setCredentials(property(camelContext, com.azure.storage.common.StorageSharedKeyCredential.class, value)); return true;
        case "datacount":
        case "dataCount": getOrCreateConfiguration(target).setDataCount(property(camelContext, java.lang.Long.class, value)); return true;
        case "deleteafterread":
        case "deleteAfterRead": getOrCreateConfiguration(target).setDeleteAfterRead(property(camelContext, boolean.class, value)); return true;
        case "destinationblobprefix":
        case "destinationBlobPrefix": getOrCreateConfiguration(target).setDestinationBlobPrefix(property(camelContext, java.lang.String.class, value)); return true;
        case "destinationblobsuffix":
        case "destinationBlobSuffix": getOrCreateConfiguration(target).setDestinationBlobSuffix(property(camelContext, java.lang.String.class, value)); return true;
        case "destinationcontainer":
        case "destinationContainer": getOrCreateConfiguration(target).setDestinationContainer(property(camelContext, java.lang.String.class, value)); return true;
        case "downloadlinkexpiration":
        case "downloadLinkExpiration": getOrCreateConfiguration(target).setDownloadLinkExpiration(property(camelContext, java.lang.Long.class, value)); return true;
        case "filedir":
        case "fileDir": getOrCreateConfiguration(target).setFileDir(property(camelContext, java.lang.String.class, value)); return true;
        case "healthcheckconsumerenabled":
        case "healthCheckConsumerEnabled": target.setHealthCheckConsumerEnabled(property(camelContext, boolean.class, value)); return true;
        case "healthcheckproducerenabled":
        case "healthCheckProducerEnabled": target.setHealthCheckProducerEnabled(property(camelContext, boolean.class, value)); return true;
        case "lazystartproducer":
        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "leaseblob":
        case "leaseBlob": getOrCreateConfiguration(target).setLeaseBlob(property(camelContext, boolean.class, value)); return true;
        case "leasedurationinseconds":
        case "leaseDurationInSeconds": getOrCreateConfiguration(target).setLeaseDurationInSeconds(property(camelContext, java.lang.Integer.class, value)); return true;
        case "maxconcurrency":
        case "maxConcurrency": getOrCreateConfiguration(target).setMaxConcurrency(property(camelContext, java.lang.Integer.class, value)); return true;
        case "maxresultsperpage":
        case "maxResultsPerPage": getOrCreateConfiguration(target).setMaxResultsPerPage(property(camelContext, java.lang.Integer.class, value)); return true;
        case "maxretryrequests":
        case "maxRetryRequests": getOrCreateConfiguration(target).setMaxRetryRequests(property(camelContext, int.class, value)); return true;
        case "maxsingleuploadsize":
        case "maxSingleUploadSize": getOrCreateConfiguration(target).setMaxSingleUploadSize(property(camelContext, java.lang.Long.class, value)); return true;
        case "moveafterread":
        case "moveAfterRead": getOrCreateConfiguration(target).setMoveAfterRead(property(camelContext, boolean.class, value)); return true;
        case "operation": getOrCreateConfiguration(target).setOperation(property(camelContext, org.apache.camel.component.azure.storage.blob.BlobOperationsDefinition.class, value)); return true;
        case "pageblobsize":
        case "pageBlobSize": getOrCreateConfiguration(target).setPageBlobSize(property(camelContext, java.lang.Long.class, value)); return true;
        case "prefix": getOrCreateConfiguration(target).setPrefix(property(camelContext, java.lang.String.class, value)); return true;
        case "regex": getOrCreateConfiguration(target).setRegex(property(camelContext, java.lang.String.class, value)); return true;
        case "removeprefixonmove":
        case "removePrefixOnMove": getOrCreateConfiguration(target).setRemovePrefixOnMove(property(camelContext, boolean.class, value)); return true;
        case "sastoken":
        case "sasToken": getOrCreateConfiguration(target).setSasToken(property(camelContext, java.lang.String.class, value)); return true;
        case "serviceclient":
        case "serviceClient": getOrCreateConfiguration(target).setServiceClient(property(camelContext, com.azure.storage.blob.BlobServiceClient.class, value)); return true;
        case "snapshotid":
        case "snapshotId": getOrCreateConfiguration(target).setSnapshotId(property(camelContext, java.lang.String.class, value)); return true;
        case "sourceblobaccesskey":
        case "sourceBlobAccessKey": getOrCreateConfiguration(target).setSourceBlobAccessKey(property(camelContext, java.lang.String.class, value)); return true;
        case "timeout": getOrCreateConfiguration(target).setTimeout(property(camelContext, java.time.Duration.class, value)); return true;
        case "versionid":
        case "versionId": getOrCreateConfiguration(target).setVersionId(property(camelContext, java.lang.String.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public String[] getAutowiredNames() {
        return new String[]{"credentials", "serviceClient"};
    }

    @Override
    public Class<?> getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesskey":
        case "accessKey": return java.lang.String.class;
        case "autowiredenabled":
        case "autowiredEnabled": return boolean.class;
        case "azureclientid":
        case "azureClientId": return java.lang.String.class;
        case "azureclientsecret":
        case "azureClientSecret": return java.lang.String.class;
        case "azuretenantid":
        case "azureTenantId": return java.lang.String.class;
        case "blobname":
        case "blobName": return java.lang.String.class;
        case "bloboffset":
        case "blobOffset": return long.class;
        case "blobsequencenumber":
        case "blobSequenceNumber": return java.lang.Long.class;
        case "blobtype":
        case "blobType": return org.apache.camel.component.azure.storage.blob.BlobType.class;
        case "blocklisttype":
        case "blockListType": return com.azure.storage.blob.models.BlockListType.class;
        case "blocksize":
        case "blockSize": return java.lang.Long.class;
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return boolean.class;
        case "changefeedcontext":
        case "changeFeedContext": return com.azure.core.util.Context.class;
        case "changefeedendtime":
        case "changeFeedEndTime": return java.time.OffsetDateTime.class;
        case "changefeedstarttime":
        case "changeFeedStartTime": return java.time.OffsetDateTime.class;
        case "closestreamafterread":
        case "closeStreamAfterRead": return boolean.class;
        case "closestreamafterwrite":
        case "closeStreamAfterWrite": return boolean.class;
        case "commitblocklistlater":
        case "commitBlockListLater": return boolean.class;
        case "configuration": return org.apache.camel.component.azure.storage.blob.BlobConfiguration.class;
        case "createappendblob":
        case "createAppendBlob": return boolean.class;
        case "createpageblob":
        case "createPageBlob": return boolean.class;
        case "credentialtype":
        case "credentialType": return org.apache.camel.component.azure.storage.blob.CredentialType.class;
        case "credentials": return com.azure.storage.common.StorageSharedKeyCredential.class;
        case "datacount":
        case "dataCount": return java.lang.Long.class;
        case "deleteafterread":
        case "deleteAfterRead": return boolean.class;
        case "destinationblobprefix":
        case "destinationBlobPrefix": return java.lang.String.class;
        case "destinationblobsuffix":
        case "destinationBlobSuffix": return java.lang.String.class;
        case "destinationcontainer":
        case "destinationContainer": return java.lang.String.class;
        case "downloadlinkexpiration":
        case "downloadLinkExpiration": return java.lang.Long.class;
        case "filedir":
        case "fileDir": return java.lang.String.class;
        case "healthcheckconsumerenabled":
        case "healthCheckConsumerEnabled": return boolean.class;
        case "healthcheckproducerenabled":
        case "healthCheckProducerEnabled": return boolean.class;
        case "lazystartproducer":
        case "lazyStartProducer": return boolean.class;
        case "leaseblob":
        case "leaseBlob": return boolean.class;
        case "leasedurationinseconds":
        case "leaseDurationInSeconds": return java.lang.Integer.class;
        case "maxconcurrency":
        case "maxConcurrency": return java.lang.Integer.class;
        case "maxresultsperpage":
        case "maxResultsPerPage": return java.lang.Integer.class;
        case "maxretryrequests":
        case "maxRetryRequests": return int.class;
        case "maxsingleuploadsize":
        case "maxSingleUploadSize": return java.lang.Long.class;
        case "moveafterread":
        case "moveAfterRead": return boolean.class;
        case "operation": return org.apache.camel.component.azure.storage.blob.BlobOperationsDefinition.class;
        case "pageblobsize":
        case "pageBlobSize": return java.lang.Long.class;
        case "prefix": return java.lang.String.class;
        case "regex": return java.lang.String.class;
        case "removeprefixonmove":
        case "removePrefixOnMove": return boolean.class;
        case "sastoken":
        case "sasToken": return java.lang.String.class;
        case "serviceclient":
        case "serviceClient": return com.azure.storage.blob.BlobServiceClient.class;
        case "snapshotid":
        case "snapshotId": return java.lang.String.class;
        case "sourceblobaccesskey":
        case "sourceBlobAccessKey": return java.lang.String.class;
        case "timeout": return java.time.Duration.class;
        case "versionid":
        case "versionId": return java.lang.String.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        BlobComponent target = (BlobComponent) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesskey":
        case "accessKey": return getOrCreateConfiguration(target).getAccessKey();
        case "autowiredenabled":
        case "autowiredEnabled": return target.isAutowiredEnabled();
        case "azureclientid":
        case "azureClientId": return getOrCreateConfiguration(target).getAzureClientId();
        case "azureclientsecret":
        case "azureClientSecret": return getOrCreateConfiguration(target).getAzureClientSecret();
        case "azuretenantid":
        case "azureTenantId": return getOrCreateConfiguration(target).getAzureTenantId();
        case "blobname":
        case "blobName": return getOrCreateConfiguration(target).getBlobName();
        case "bloboffset":
        case "blobOffset": return getOrCreateConfiguration(target).getBlobOffset();
        case "blobsequencenumber":
        case "blobSequenceNumber": return getOrCreateConfiguration(target).getBlobSequenceNumber();
        case "blobtype":
        case "blobType": return getOrCreateConfiguration(target).getBlobType();
        case "blocklisttype":
        case "blockListType": return getOrCreateConfiguration(target).getBlockListType();
        case "blocksize":
        case "blockSize": return getOrCreateConfiguration(target).getBlockSize();
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return target.isBridgeErrorHandler();
        case "changefeedcontext":
        case "changeFeedContext": return getOrCreateConfiguration(target).getChangeFeedContext();
        case "changefeedendtime":
        case "changeFeedEndTime": return getOrCreateConfiguration(target).getChangeFeedEndTime();
        case "changefeedstarttime":
        case "changeFeedStartTime": return getOrCreateConfiguration(target).getChangeFeedStartTime();
        case "closestreamafterread":
        case "closeStreamAfterRead": return getOrCreateConfiguration(target).isCloseStreamAfterRead();
        case "closestreamafterwrite":
        case "closeStreamAfterWrite": return getOrCreateConfiguration(target).isCloseStreamAfterWrite();
        case "commitblocklistlater":
        case "commitBlockListLater": return getOrCreateConfiguration(target).isCommitBlockListLater();
        case "configuration": return target.getConfiguration();
        case "createappendblob":
        case "createAppendBlob": return getOrCreateConfiguration(target).isCreateAppendBlob();
        case "createpageblob":
        case "createPageBlob": return getOrCreateConfiguration(target).isCreatePageBlob();
        case "credentialtype":
        case "credentialType": return getOrCreateConfiguration(target).getCredentialType();
        case "credentials": return getOrCreateConfiguration(target).getCredentials();
        case "datacount":
        case "dataCount": return getOrCreateConfiguration(target).getDataCount();
        case "deleteafterread":
        case "deleteAfterRead": return getOrCreateConfiguration(target).isDeleteAfterRead();
        case "destinationblobprefix":
        case "destinationBlobPrefix": return getOrCreateConfiguration(target).getDestinationBlobPrefix();
        case "destinationblobsuffix":
        case "destinationBlobSuffix": return getOrCreateConfiguration(target).getDestinationBlobSuffix();
        case "destinationcontainer":
        case "destinationContainer": return getOrCreateConfiguration(target).getDestinationContainer();
        case "downloadlinkexpiration":
        case "downloadLinkExpiration": return getOrCreateConfiguration(target).getDownloadLinkExpiration();
        case "filedir":
        case "fileDir": return getOrCreateConfiguration(target).getFileDir();
        case "healthcheckconsumerenabled":
        case "healthCheckConsumerEnabled": return target.isHealthCheckConsumerEnabled();
        case "healthcheckproducerenabled":
        case "healthCheckProducerEnabled": return target.isHealthCheckProducerEnabled();
        case "lazystartproducer":
        case "lazyStartProducer": return target.isLazyStartProducer();
        case "leaseblob":
        case "leaseBlob": return getOrCreateConfiguration(target).isLeaseBlob();
        case "leasedurationinseconds":
        case "leaseDurationInSeconds": return getOrCreateConfiguration(target).getLeaseDurationInSeconds();
        case "maxconcurrency":
        case "maxConcurrency": return getOrCreateConfiguration(target).getMaxConcurrency();
        case "maxresultsperpage":
        case "maxResultsPerPage": return getOrCreateConfiguration(target).getMaxResultsPerPage();
        case "maxretryrequests":
        case "maxRetryRequests": return getOrCreateConfiguration(target).getMaxRetryRequests();
        case "maxsingleuploadsize":
        case "maxSingleUploadSize": return getOrCreateConfiguration(target).getMaxSingleUploadSize();
        case "moveafterread":
        case "moveAfterRead": return getOrCreateConfiguration(target).isMoveAfterRead();
        case "operation": return getOrCreateConfiguration(target).getOperation();
        case "pageblobsize":
        case "pageBlobSize": return getOrCreateConfiguration(target).getPageBlobSize();
        case "prefix": return getOrCreateConfiguration(target).getPrefix();
        case "regex": return getOrCreateConfiguration(target).getRegex();
        case "removeprefixonmove":
        case "removePrefixOnMove": return getOrCreateConfiguration(target).isRemovePrefixOnMove();
        case "sastoken":
        case "sasToken": return getOrCreateConfiguration(target).getSasToken();
        case "serviceclient":
        case "serviceClient": return getOrCreateConfiguration(target).getServiceClient();
        case "snapshotid":
        case "snapshotId": return getOrCreateConfiguration(target).getSnapshotId();
        case "sourceblobaccesskey":
        case "sourceBlobAccessKey": return getOrCreateConfiguration(target).getSourceBlobAccessKey();
        case "timeout": return getOrCreateConfiguration(target).getTimeout();
        case "versionid":
        case "versionId": return getOrCreateConfiguration(target).getVersionId();
        default: return null;
        }
    }
}

