Class IBMCOSConfiguration
java.lang.Object
org.apache.camel.component.ibm.cos.IBMCOSConfiguration
- All Implemented Interfaces:
Cloneable
IBM COS component configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()com.ibm.cloud.objectstorage.services.s3.AmazonS3longbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidIBM Cloud API Key for authenticationvoidsetAutocloseBody(boolean autocloseBody) Whether to automatically close the object input stream after processingvoidsetAutoCreateBucket(boolean autoCreateBucket) Automatically create the bucket if it doesn't existvoidsetBucketName(String bucketName) Name of the bucketvoidsetCosClient(com.ibm.cloud.objectstorage.services.s3.AmazonS3 cosClient) Reference to an IBM COS Client instance in the registryvoidsetDeleteAfterRead(boolean deleteAfterRead) Delete the object from IBM COS after it has been retrievedvoidsetDeleteAfterWrite(boolean deleteAfterWrite) Delete the object from the local filesystem after uploadingvoidsetDelimiter(String delimiter) The delimiter to use for listing objectsvoidsetDestinationBucket(String destinationBucket) The destination bucket to move objects tovoidsetDestinationBucketPrefix(String destinationBucketPrefix) The prefix to add to objects in the destination bucketvoidsetDestinationBucketSuffix(String destinationBucketSuffix) The suffix to add to objects in the destination bucketvoidsetEndpointUrl(String endpointUrl) IBM COS Endpoint URL (e.g., https://s3.us-south.cloud-object-storage.appdomain.cloud)voidsetFileName(String fileName) To get the object from the bucket with the given file namevoidsetIncludeBody(boolean includeBody) Include the object body in the exchangevoidsetIncludeFolders(boolean includeFolders) Include folders/directories when listing objectsvoidsetKeyName(String keyName) The key name for the objectvoidsetLocation(String location) IBM COS Location/Region (e.g., us-south, eu-gb)voidsetMoveAfterRead(boolean moveAfterRead) Move the object to a different bucket after it has been retrievedvoidsetMultiPartUpload(boolean multiPartUpload) Use multi-part upload for large filesvoidsetOperation(IBMCOSOperations operation) The operation to performvoidsetPartSize(long partSize) Part size for multi-part uploads (default 25MB)voidThe prefix to use for listing objectsvoidsetServiceInstanceId(String serviceInstanceId) IBM COS Service Instance ID (CRN)voidsetStorageClass(String storageClass) The storage class to use when storing objects (e.g., STANDARD, VAULT, COLD, FLEX)
-
Constructor Details
-
IBMCOSConfiguration
public IBMCOSConfiguration()
-
-
Method Details
-
copy
-
getBucketName
-
setBucketName
Name of the bucket -
getCosClient
public com.ibm.cloud.objectstorage.services.s3.AmazonS3 getCosClient() -
setCosClient
public void setCosClient(com.ibm.cloud.objectstorage.services.s3.AmazonS3 cosClient) Reference to an IBM COS Client instance in the registry -
getApiKey
-
setApiKey
IBM Cloud API Key for authentication -
getServiceInstanceId
-
setServiceInstanceId
IBM COS Service Instance ID (CRN) -
getEndpointUrl
-
setEndpointUrl
IBM COS Endpoint URL (e.g., https://s3.us-south.cloud-object-storage.appdomain.cloud) -
getLocation
-
setLocation
IBM COS Location/Region (e.g., us-south, eu-gb) -
getFileName
-
setFileName
To get the object from the bucket with the given file name -
getPrefix
-
setPrefix
The prefix to use for listing objects -
getDelimiter
-
setDelimiter
The delimiter to use for listing objects -
isDeleteAfterRead
public boolean isDeleteAfterRead() -
setDeleteAfterRead
public void setDeleteAfterRead(boolean deleteAfterRead) Delete the object from IBM COS after it has been retrieved -
isMoveAfterRead
public boolean isMoveAfterRead() -
setMoveAfterRead
public void setMoveAfterRead(boolean moveAfterRead) Move the object to a different bucket after it has been retrieved -
getDestinationBucket
-
setDestinationBucket
The destination bucket to move objects to -
getDestinationBucketPrefix
-
setDestinationBucketPrefix
The prefix to add to objects in the destination bucket -
getDestinationBucketSuffix
-
setDestinationBucketSuffix
The suffix to add to objects in the destination bucket -
isDeleteAfterWrite
public boolean isDeleteAfterWrite() -
setDeleteAfterWrite
public void setDeleteAfterWrite(boolean deleteAfterWrite) Delete the object from the local filesystem after uploading -
isMultiPartUpload
public boolean isMultiPartUpload() -
setMultiPartUpload
public void setMultiPartUpload(boolean multiPartUpload) Use multi-part upload for large files -
getPartSize
public long getPartSize() -
setPartSize
public void setPartSize(long partSize) Part size for multi-part uploads (default 25MB) -
getStorageClass
-
setStorageClass
The storage class to use when storing objects (e.g., STANDARD, VAULT, COLD, FLEX) -
isIncludeBody
public boolean isIncludeBody() -
setIncludeBody
public void setIncludeBody(boolean includeBody) Include the object body in the exchange -
getOperation
-
setOperation
The operation to perform -
isAutocloseBody
public boolean isAutocloseBody() -
setAutocloseBody
public void setAutocloseBody(boolean autocloseBody) Whether to automatically close the object input stream after processing -
isAutoCreateBucket
public boolean isAutoCreateBucket() -
setAutoCreateBucket
public void setAutoCreateBucket(boolean autoCreateBucket) Automatically create the bucket if it doesn't exist -
getKeyName
-
setKeyName
The key name for the object -
isIncludeFolders
public boolean isIncludeFolders() -
setIncludeFolders
public void setIncludeFolders(boolean includeFolders) Include folders/directories when listing objects
-