Class MinioConfiguration

java.lang.Object
org.apache.camel.component.minio.MinioConfiguration
All Implemented Interfaces:
Cloneable

@UriParams public class MinioConfiguration extends Object implements Cloneable
  • Constructor Details

    • MinioConfiguration

      public MinioConfiguration()
  • Method Details

    • getEndpoint

      public String getEndpoint()
    • setEndpoint

      public void setEndpoint(String endpoint)
      Endpoint can be an URL, domain name, IPv4 address or IPv6 address.
    • getProxyPort

      public Integer getProxyPort()
    • setProxyPort

      public void setProxyPort(Integer proxyPort)
      TCP/IP port number. 80 and 443 are used as defaults for HTTP and HTTPS.
    • isSecure

      public boolean isSecure()
    • setSecure

      public void setSecure(boolean secure)
      Flag to indicate to use secure connection to minio service or not.
    • getRegion

      public String getRegion()
    • setRegion

      public void setRegion(String region)
      The region in which Minio client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example ap-east-1). You'll need to use the name Region.EU_WEST_1.id()
    • getCustomHttpClient

      public okhttp3.OkHttpClient getCustomHttpClient()
    • setCustomHttpClient

      public void setCustomHttpClient(okhttp3.OkHttpClient customHttpClient)
      Set custom HTTP client for authenticated access.
    • getAccessKey

      public String getAccessKey()
    • setAccessKey

      public void setAccessKey(String accessKey)
      Amazon AWS Secret Access Key or Minio Access Key. If not set camel will connect to service for anonymous access.
    • getSecretKey

      public String getSecretKey()
    • setSecretKey

      public void setSecretKey(String secretKey)
      Amazon AWS Access Key Id or Minio Secret Key. If not set camel will connect to service for anonymous access.
    • getBucketName

      public String getBucketName()
    • setBucketName

      public void setBucketName(String bucketName)
      Name of the bucket. The bucket will be created if it doesn't already exists.
    • isAutoCreateBucket

      public boolean isAutoCreateBucket()
    • setAutoCreateBucket

      public void setAutoCreateBucket(boolean autoCreateBucket)
      Setting the autocreation of the bucket if bucket name not exist.
    • isObjectLock

      public boolean isObjectLock()
    • setObjectLock

      public void setObjectLock(boolean objectLock)
      Set when creating new bucket.
    • getPolicy

      public String getPolicy()
    • setPolicy

      public void setPolicy(String policy)
      The policy for this queue to set in the method.
    • getServerSideEncryptionCustomerKey

      public io.minio.ServerSideEncryptionCustomerKey getServerSideEncryptionCustomerKey()
    • setServerSideEncryptionCustomerKey

      public void setServerSideEncryptionCustomerKey(io.minio.ServerSideEncryptionCustomerKey serverSideEncryptionCustomerKey)
      Server-side encryption for source object while copy/move objects.
    • getServerSideEncryption

      public io.minio.ServerSideEncryption getServerSideEncryption()
    • setServerSideEncryption

      public void setServerSideEncryption(io.minio.ServerSideEncryption serverSideEncryption)
      Server-side encryption.
    • getMinioClient

      public io.minio.MinioClient getMinioClient()
    • setMinioClient

      public void setMinioClient(io.minio.MinioClient minioClient)
      Reference to a Minio Client object in the registry.
    • getMaxMessagesPerPoll

      public int getMaxMessagesPerPoll()
    • setMaxMessagesPerPoll

      public void setMaxMessagesPerPoll(int maxMessagesPerPoll)
      Gets the maximum number of messages as a limit to poll at each polling.

      Gets the maximum number of messages as a limit to poll at each polling. The default value is 10. Use 0 or a negative number to set it as unlimited.

    • getMaxConnections

      public int getMaxConnections()
    • setMaxConnections

      public void setMaxConnections(int maxConnections)
      Set the maxConnections parameter in the minio client configuration
    • getObjectName

      public String getObjectName()
    • setObjectName

      public void setObjectName(String objectName)
      To get the object from the bucket with the given object name.
    • getDelimiter

      public String getDelimiter()
    • setDelimiter

      public void setDelimiter(String delimiter)
      The delimiter which is used in the ListObjectsRequest to only consume objects we are interested in.
    • isIncludeUserMetadata

      public boolean isIncludeUserMetadata()
    • setIncludeUserMetadata

      public void setIncludeUserMetadata(boolean includeUserMetadata)
      The flag which is used in the ListObjectsRequest to get objects with user meta data.
    • isIncludeVersions

      public boolean isIncludeVersions()
    • setIncludeVersions

      public void setIncludeVersions(boolean includeVersions)
      The flag which is used in the ListObjectsRequest to get objects with versioning.
    • isIncludeFolders

      public boolean isIncludeFolders()
    • setIncludeFolders

      public void setIncludeFolders(boolean includeFolders)
      The flag which is used in the ListObjectsRequest to set include folders.
    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
      Object name starts with prefix.
    • isRecursive

      public boolean isRecursive()
    • setRecursive

      public void setRecursive(boolean recursive)
      List recursively than directory structure emulation.
    • getStartAfter

      public String getStartAfter()
    • setStartAfter

      public void setStartAfter(String startAfter)
      list objects in bucket after this object name.
    • isUseVersion1

      public boolean isUseVersion1()
    • setUseVersion1

      public void setUseVersion1(boolean useVersion1)
      when true, version 1 of REST API is used.
    • getOffset

      public long getOffset()
    • setOffset

      public void setOffset(long offset)
      Start byte position of object data.
    • getLength

      public long getLength()
    • setLength

      public void setLength(long length)
      Number of bytes of object data from offset.
    • getVersionId

      public String getVersionId()
    • setVersionId

      public void setVersionId(String versionId)
      Set specific version_ID of a object when deleting the object.
    • getMatchETag

      public String getMatchETag()
    • setMatchETag

      public void setMatchETag(String matchETag)
      Set match ETag parameter for get object(s).
    • getNotMatchETag

      public String getNotMatchETag()
    • setNotMatchETag

      public void setNotMatchETag(String notMatchETag)
      Set not match ETag parameter for get object(s).
    • getModifiedSince

      public ZonedDateTime getModifiedSince()
    • setModifiedSince

      public void setModifiedSince(ZonedDateTime modifiedSince)
      Set modified since parameter for get object(s).
    • getUnModifiedSince

      public ZonedDateTime getUnModifiedSince()
    • setUnModifiedSince

      public void setUnModifiedSince(ZonedDateTime unModifiedSince)
      Set un modified since parameter for get object(s).
    • getDestinationBucketName

      public String getDestinationBucketName()
    • setDestinationBucketName

      public void setDestinationBucketName(String destinationBucketName)
      Destination bucket name.
    • getDestinationObjectName

      public String getDestinationObjectName()
    • setDestinationObjectName

      public void setDestinationObjectName(String destinationObjectName)
      Destination object name.
    • isDeleteAfterRead

      public boolean isDeleteAfterRead()
    • setDeleteAfterRead

      public void setDeleteAfterRead(boolean deleteAfterRead)
      Delete objects from Minio after they have been retrieved. The delete is only performed if the Exchange is committed. If a rollback occurs, the object is not deleted.

      If this option is false, then the same objects will be retrieve over and over again on the polls. Therefore you need to use the Idempotent Consumer EIP in the route to filter out duplicates. You can filter using the MinioConstants.BUCKET_NAME and MinioConstants.OBJECT_NAME headers, or only the MinioConstants.OBJECT_NAME header.

    • isMoveAfterRead

      public boolean isMoveAfterRead()
    • setMoveAfterRead

      public void setMoveAfterRead(boolean moveAfterRead)
      Move objects from bucket to a different bucket after they have been retrieved. To accomplish the operation the destinationBucket option must be set. The copy bucket operation is only performed if the Exchange is committed. If a rollback occurs, the object is not moved.
    • isBypassGovernanceMode

      public boolean isBypassGovernanceMode()
    • setBypassGovernanceMode

      public void setBypassGovernanceMode(boolean bypassGovernanceMode)
      Set this flag if you want to bypassGovernanceMode when deleting a particular object.
    • isIncludeBody

      public boolean isIncludeBody()
    • setIncludeBody

      public void setIncludeBody(boolean includeBody)
      If it is true, the exchange body will be set to a stream to the contents of the file. If false, the headers will be set with the Minio object metadata, but the body will be null. This option is strongly related to autocloseBody option. In case of setting includeBody to true and autocloseBody to false, it will be up to the caller to close the MinioObject stream. Setting autocloseBody to true, will close the MinioObject stream automatically.
    • isAutoCloseBody

      public boolean isAutoCloseBody()
    • setAutoCloseBody

      public void setAutoCloseBody(boolean autoCloseBody)
      If this option is true and includeBody is true, then the MinioObject.close() method will be called on exchange completion. This option is strongly related to includeBody option. In case of setting includeBody to true and autocloseBody to false, it will be up to the caller to close the MinioObject stream. Setting autocloseBody to true, will close the MinioObject stream automatically.
    • getKeyName

      public String getKeyName()
    • setKeyName

      public void setKeyName(String keyName)
      Setting the key name for an element in the bucket through endpoint parameter.
    • isDeleteAfterWrite

      public boolean isDeleteAfterWrite()
    • setDeleteAfterWrite

      public void setDeleteAfterWrite(boolean deleteAfterWrite)
      Delete file object after the Minio file has been uploaded.
    • getStorageClass

      public String getStorageClass()
    • setStorageClass

      public void setStorageClass(String storageClass)
      The storage class to set in the request.
    • getOperation

      public MinioOperations getOperation()
    • setOperation

      public void setOperation(MinioOperations operation)
      The operation to do in case the user don't want to do only an upload.
    • isPojoRequest

      public boolean isPojoRequest()
    • setPojoRequest

      public void setPojoRequest(boolean pojoRequest)
      If we want to use a POJO request as body or not.
    • copy

      public MinioConfiguration copy()