001    /**
002     * Licensed to the Apache Software Foundation (ASF) under one or more
003     * contributor license agreements.  See the NOTICE file distributed with
004     * this work for additional information regarding copyright ownership.
005     * The ASF licenses this file to You under the Apache License, Version 2.0
006     * (the "License"); you may not use this file except in compliance with
007     * the License.  You may obtain a copy of the License at
008     *
009     *      http://www.apache.org/licenses/LICENSE-2.0
010     *
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     */
017    package org.apache.camel.component.aws.s3;
018    
019    import com.amazonaws.services.s3.AmazonS3Client;
020    
021    /**
022     * The AWS S3 component configuration properties
023     * 
024     */
025    public class S3Configuration implements Cloneable {
026    
027        private String accessKey;
028        private String secretKey;
029        private AmazonS3Client amazonS3Client;
030        
031        private String bucketName;
032        private String region;
033        private boolean deleteAfterRead = true;
034        private String amazonS3Endpoint;
035        
036        public void setAmazonS3Endpoint(String amazonS3Endpoint) {
037            this.amazonS3Endpoint = amazonS3Endpoint;
038        }
039        
040        public String getAmazonS3Endpoint() {
041            return amazonS3Endpoint;
042        }
043        
044        public String getAccessKey() {
045            return accessKey;
046        }
047    
048        public void setAccessKey(String accessKey) {
049            this.accessKey = accessKey;
050        }
051    
052        public String getSecretKey() {
053            return secretKey;
054        }
055    
056        public void setSecretKey(String secretKey) {
057            this.secretKey = secretKey;
058        }
059        
060        public AmazonS3Client getAmazonS3Client() {
061            return amazonS3Client;
062        }
063    
064        public void setAmazonS3Client(AmazonS3Client amazonS3Client) {
065            this.amazonS3Client = amazonS3Client;
066        }
067    
068        public String getBucketName() {
069            return bucketName;
070        }
071    
072        public void setBucketName(String bucketName) {
073            this.bucketName = bucketName;
074        }
075    
076        public String getRegion() {
077            return region;
078        }
079    
080        public void setRegion(String region) {
081            this.region = region;
082        }
083    
084        public boolean isDeleteAfterRead() {
085            return deleteAfterRead;
086        }
087    
088        public void setDeleteAfterRead(boolean deleteAfterRead) {
089            this.deleteAfterRead = deleteAfterRead;
090        }
091    }