org.apache.camel.component.aws.s3.S3EndpointConfigurer Maven / Gradle / Ivy
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.aws.s3;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigurerGetter;
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 S3EndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
S3Endpoint target = (S3Endpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "acceleratemodeenabled":
case "accelerateModeEnabled": target.getConfiguration().setAccelerateModeEnabled(property(camelContext, boolean.class, value)); return true;
case "accesskey":
case "accessKey": target.getConfiguration().setAccessKey(property(camelContext, java.lang.String.class, value)); return true;
case "amazons3client":
case "amazonS3Client": target.getConfiguration().setAmazonS3Client(property(camelContext, com.amazonaws.services.s3.AmazonS3.class, value)); return true;
case "autocreatebucket":
case "autoCreateBucket": target.getConfiguration().setAutoCreateBucket(property(camelContext, boolean.class, value)); return true;
case "autoclosebody":
case "autocloseBody": target.getConfiguration().setAutocloseBody(property(camelContext, boolean.class, value)); return true;
case "awskmskeyid":
case "awsKMSKeyId": target.getConfiguration().setAwsKMSKeyId(property(camelContext, java.lang.String.class, value)); return true;
case "backofferrorthreshold":
case "backoffErrorThreshold": target.setBackoffErrorThreshold(property(camelContext, int.class, value)); return true;
case "backoffidlethreshold":
case "backoffIdleThreshold": target.setBackoffIdleThreshold(property(camelContext, int.class, value)); return true;
case "backoffmultiplier":
case "backoffMultiplier": target.setBackoffMultiplier(property(camelContext, int.class, value)); return true;
case "basicpropertybinding":
case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "chunkedencodingdisabled":
case "chunkedEncodingDisabled": target.getConfiguration().setChunkedEncodingDisabled(property(camelContext, boolean.class, value)); return true;
case "delay": target.setDelay(property(camelContext, long.class, value)); return true;
case "deleteafterread":
case "deleteAfterRead": target.getConfiguration().setDeleteAfterRead(property(camelContext, boolean.class, value)); return true;
case "deleteafterwrite":
case "deleteAfterWrite": target.getConfiguration().setDeleteAfterWrite(property(camelContext, boolean.class, value)); return true;
case "delimiter": target.getConfiguration().setDelimiter(property(camelContext, java.lang.String.class, value)); return true;
case "dualstackenabled":
case "dualstackEnabled": target.getConfiguration().setDualstackEnabled(property(camelContext, boolean.class, value)); return true;
case "encryptionmaterials":
case "encryptionMaterials": target.getConfiguration().setEncryptionMaterials(property(camelContext, com.amazonaws.services.s3.model.EncryptionMaterials.class, value)); return true;
case "endpointconfiguration":
case "endpointConfiguration": target.getConfiguration().setEndpointConfiguration(property(camelContext, com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration.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 "filename":
case "fileName": target.getConfiguration().setFileName(property(camelContext, java.lang.String.class, value)); return true;
case "forceglobalbucketaccessenabled":
case "forceGlobalBucketAccessEnabled": target.getConfiguration().setForceGlobalBucketAccessEnabled(property(camelContext, boolean.class, value)); return true;
case "greedy": target.setGreedy(property(camelContext, boolean.class, value)); return true;
case "includebody":
case "includeBody": target.getConfiguration().setIncludeBody(property(camelContext, boolean.class, value)); return true;
case "initialdelay":
case "initialDelay": target.setInitialDelay(property(camelContext, long.class, value)); return true;
case "keyname":
case "keyName": target.getConfiguration().setKeyName(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "maxconnections":
case "maxConnections": target.setMaxConnections(property(camelContext, int.class, value)); return true;
case "maxmessagesperpoll":
case "maxMessagesPerPoll": target.setMaxMessagesPerPoll(property(camelContext, int.class, value)); return true;
case "multipartupload":
case "multiPartUpload": target.getConfiguration().setMultiPartUpload(property(camelContext, boolean.class, value)); return true;
case "operation": target.getConfiguration().setOperation(property(camelContext, org.apache.camel.component.aws.s3.S3Operations.class, value)); return true;
case "partsize":
case "partSize": target.getConfiguration().setPartSize(property(camelContext, long.class, value)); return true;
case "pathstyleaccess":
case "pathStyleAccess": target.getConfiguration().setPathStyleAccess(property(camelContext, boolean.class, value)); return true;
case "payloadsigningenabled":
case "payloadSigningEnabled": target.getConfiguration().setPayloadSigningEnabled(property(camelContext, boolean.class, value)); return true;
case "policy": target.getConfiguration().setPolicy(property(camelContext, java.lang.String.class, value)); return true;
case "pollstrategy":
case "pollStrategy": target.setPollStrategy(property(camelContext, org.apache.camel.spi.PollingConsumerPollStrategy.class, value)); return true;
case "prefix": target.getConfiguration().setPrefix(property(camelContext, java.lang.String.class, value)); return true;
case "proxyhost":
case "proxyHost": target.getConfiguration().setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
case "proxyport":
case "proxyPort": target.getConfiguration().setProxyPort(property(camelContext, java.lang.Integer.class, value)); return true;
case "proxyprotocol":
case "proxyProtocol": target.getConfiguration().setProxyProtocol(property(camelContext, com.amazonaws.Protocol.class, value)); return true;
case "region": target.getConfiguration().setRegion(property(camelContext, java.lang.String.class, value)); return true;
case "repeatcount":
case "repeatCount": target.setRepeatCount(property(camelContext, long.class, value)); return true;
case "runlogginglevel":
case "runLoggingLevel": target.setRunLoggingLevel(property(camelContext, org.apache.camel.LoggingLevel.class, value)); return true;
case "scheduledexecutorservice":
case "scheduledExecutorService": target.setScheduledExecutorService(property(camelContext, java.util.concurrent.ScheduledExecutorService.class, value)); return true;
case "scheduler": target.setScheduler(property(camelContext, java.lang.String.class, value)); return true;
case "schedulerproperties":
case "schedulerProperties": target.setSchedulerProperties(property(camelContext, java.util.Map.class, value)); return true;
case "secretkey":
case "secretKey": target.getConfiguration().setSecretKey(property(camelContext, java.lang.String.class, value)); return true;
case "sendemptymessagewhenidle":
case "sendEmptyMessageWhenIdle": target.setSendEmptyMessageWhenIdle(property(camelContext, boolean.class, value)); return true;
case "serversideencryption":
case "serverSideEncryption": target.getConfiguration().setServerSideEncryption(property(camelContext, java.lang.String.class, value)); return true;
case "startscheduler":
case "startScheduler": target.setStartScheduler(property(camelContext, boolean.class, value)); return true;
case "storageclass":
case "storageClass": target.getConfiguration().setStorageClass(property(camelContext, java.lang.String.class, value)); return true;
case "synchronous": target.setSynchronous(property(camelContext, boolean.class, value)); return true;
case "timeunit":
case "timeUnit": target.setTimeUnit(property(camelContext, java.util.concurrent.TimeUnit.class, value)); return true;
case "useawskms":
case "useAwsKMS": target.getConfiguration().setUseAwsKMS(property(camelContext, boolean.class, value)); return true;
case "useencryption":
case "useEncryption": target.getConfiguration().setUseEncryption(property(camelContext, boolean.class, value)); return true;
case "usefixeddelay":
case "useFixedDelay": target.setUseFixedDelay(property(camelContext, boolean.class, value)); return true;
case "useiamcredentials":
case "useIAMCredentials": target.getConfiguration().setUseIAMCredentials(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
@Override
public Map getAllOptions(Object target) {
Map answer = new CaseInsensitiveMap();
answer.put("accelerateModeEnabled", boolean.class);
answer.put("accessKey", java.lang.String.class);
answer.put("amazonS3Client", com.amazonaws.services.s3.AmazonS3.class);
answer.put("autoCreateBucket", boolean.class);
answer.put("autocloseBody", boolean.class);
answer.put("awsKMSKeyId", java.lang.String.class);
answer.put("backoffErrorThreshold", int.class);
answer.put("backoffIdleThreshold", int.class);
answer.put("backoffMultiplier", int.class);
answer.put("basicPropertyBinding", boolean.class);
answer.put("bridgeErrorHandler", boolean.class);
answer.put("chunkedEncodingDisabled", boolean.class);
answer.put("delay", long.class);
answer.put("deleteAfterRead", boolean.class);
answer.put("deleteAfterWrite", boolean.class);
answer.put("delimiter", java.lang.String.class);
answer.put("dualstackEnabled", boolean.class);
answer.put("encryptionMaterials", com.amazonaws.services.s3.model.EncryptionMaterials.class);
answer.put("endpointConfiguration", com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration.class);
answer.put("exceptionHandler", org.apache.camel.spi.ExceptionHandler.class);
answer.put("exchangePattern", org.apache.camel.ExchangePattern.class);
answer.put("fileName", java.lang.String.class);
answer.put("forceGlobalBucketAccessEnabled", boolean.class);
answer.put("greedy", boolean.class);
answer.put("includeBody", boolean.class);
answer.put("initialDelay", long.class);
answer.put("keyName", java.lang.String.class);
answer.put("lazyStartProducer", boolean.class);
answer.put("maxConnections", int.class);
answer.put("maxMessagesPerPoll", int.class);
answer.put("multiPartUpload", boolean.class);
answer.put("operation", org.apache.camel.component.aws.s3.S3Operations.class);
answer.put("partSize", long.class);
answer.put("pathStyleAccess", boolean.class);
answer.put("payloadSigningEnabled", boolean.class);
answer.put("policy", java.lang.String.class);
answer.put("pollStrategy", org.apache.camel.spi.PollingConsumerPollStrategy.class);
answer.put("prefix", java.lang.String.class);
answer.put("proxyHost", java.lang.String.class);
answer.put("proxyPort", java.lang.Integer.class);
answer.put("proxyProtocol", com.amazonaws.Protocol.class);
answer.put("region", java.lang.String.class);
answer.put("repeatCount", long.class);
answer.put("runLoggingLevel", org.apache.camel.LoggingLevel.class);
answer.put("scheduledExecutorService", java.util.concurrent.ScheduledExecutorService.class);
answer.put("scheduler", java.lang.String.class);
answer.put("schedulerProperties", java.util.Map.class);
answer.put("secretKey", java.lang.String.class);
answer.put("sendEmptyMessageWhenIdle", boolean.class);
answer.put("serverSideEncryption", java.lang.String.class);
answer.put("startScheduler", boolean.class);
answer.put("storageClass", java.lang.String.class);
answer.put("synchronous", boolean.class);
answer.put("timeUnit", java.util.concurrent.TimeUnit.class);
answer.put("useAwsKMS", boolean.class);
answer.put("useEncryption", boolean.class);
answer.put("useFixedDelay", boolean.class);
answer.put("useIAMCredentials", boolean.class);
return answer;
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
S3Endpoint target = (S3Endpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "acceleratemodeenabled":
case "accelerateModeEnabled": return target.getConfiguration().isAccelerateModeEnabled();
case "accesskey":
case "accessKey": return target.getConfiguration().getAccessKey();
case "amazons3client":
case "amazonS3Client": return target.getConfiguration().getAmazonS3Client();
case "autocreatebucket":
case "autoCreateBucket": return target.getConfiguration().isAutoCreateBucket();
case "autoclosebody":
case "autocloseBody": return target.getConfiguration().isAutocloseBody();
case "awskmskeyid":
case "awsKMSKeyId": return target.getConfiguration().getAwsKMSKeyId();
case "backofferrorthreshold":
case "backoffErrorThreshold": return target.getBackoffErrorThreshold();
case "backoffidlethreshold":
case "backoffIdleThreshold": return target.getBackoffIdleThreshold();
case "backoffmultiplier":
case "backoffMultiplier": return target.getBackoffMultiplier();
case "basicpropertybinding":
case "basicPropertyBinding": return target.isBasicPropertyBinding();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
case "chunkedencodingdisabled":
case "chunkedEncodingDisabled": return target.getConfiguration().isChunkedEncodingDisabled();
case "delay": return target.getDelay();
case "deleteafterread":
case "deleteAfterRead": return target.getConfiguration().isDeleteAfterRead();
case "deleteafterwrite":
case "deleteAfterWrite": return target.getConfiguration().isDeleteAfterWrite();
case "delimiter": return target.getConfiguration().getDelimiter();
case "dualstackenabled":
case "dualstackEnabled": return target.getConfiguration().isDualstackEnabled();
case "encryptionmaterials":
case "encryptionMaterials": return target.getConfiguration().getEncryptionMaterials();
case "endpointconfiguration":
case "endpointConfiguration": return target.getConfiguration().getEndpointConfiguration();
case "exceptionhandler":
case "exceptionHandler": return target.getExceptionHandler();
case "exchangepattern":
case "exchangePattern": return target.getExchangePattern();
case "filename":
case "fileName": return target.getConfiguration().getFileName();
case "forceglobalbucketaccessenabled":
case "forceGlobalBucketAccessEnabled": return target.getConfiguration().isForceGlobalBucketAccessEnabled();
case "greedy": return target.isGreedy();
case "includebody":
case "includeBody": return target.getConfiguration().isIncludeBody();
case "initialdelay":
case "initialDelay": return target.getInitialDelay();
case "keyname":
case "keyName": return target.getConfiguration().getKeyName();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "maxconnections":
case "maxConnections": return target.getMaxConnections();
case "maxmessagesperpoll":
case "maxMessagesPerPoll": return target.getMaxMessagesPerPoll();
case "multipartupload":
case "multiPartUpload": return target.getConfiguration().isMultiPartUpload();
case "operation": return target.getConfiguration().getOperation();
case "partsize":
case "partSize": return target.getConfiguration().getPartSize();
case "pathstyleaccess":
case "pathStyleAccess": return target.getConfiguration().isPathStyleAccess();
case "payloadsigningenabled":
case "payloadSigningEnabled": return target.getConfiguration().isPayloadSigningEnabled();
case "policy": return target.getConfiguration().getPolicy();
case "pollstrategy":
case "pollStrategy": return target.getPollStrategy();
case "prefix": return target.getConfiguration().getPrefix();
case "proxyhost":
case "proxyHost": return target.getConfiguration().getProxyHost();
case "proxyport":
case "proxyPort": return target.getConfiguration().getProxyPort();
case "proxyprotocol":
case "proxyProtocol": return target.getConfiguration().getProxyProtocol();
case "region": return target.getConfiguration().getRegion();
case "repeatcount":
case "repeatCount": return target.getRepeatCount();
case "runlogginglevel":
case "runLoggingLevel": return target.getRunLoggingLevel();
case "scheduledexecutorservice":
case "scheduledExecutorService": return target.getScheduledExecutorService();
case "scheduler": return target.getScheduler();
case "schedulerproperties":
case "schedulerProperties": return target.getSchedulerProperties();
case "secretkey":
case "secretKey": return target.getConfiguration().getSecretKey();
case "sendemptymessagewhenidle":
case "sendEmptyMessageWhenIdle": return target.isSendEmptyMessageWhenIdle();
case "serversideencryption":
case "serverSideEncryption": return target.getConfiguration().getServerSideEncryption();
case "startscheduler":
case "startScheduler": return target.isStartScheduler();
case "storageclass":
case "storageClass": return target.getConfiguration().getStorageClass();
case "synchronous": return target.isSynchronous();
case "timeunit":
case "timeUnit": return target.getTimeUnit();
case "useawskms":
case "useAwsKMS": return target.getConfiguration().isUseAwsKMS();
case "useencryption":
case "useEncryption": return target.getConfiguration().isUseEncryption();
case "usefixeddelay":
case "useFixedDelay": return target.isUseFixedDelay();
case "useiamcredentials":
case "useIAMCredentials": return target.getConfiguration().isUseIAMCredentials();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy