Package org.jets3t.service.model

Examples of org.jets3t.service.model.LifecycleConfig$TimeEvent


        StorageBucket bucket = createBucketForTest("testBucketLifecycleConfiguration");
        String bucketName = bucket.getName();

        try {
            // No config rules initially for bucket
            LifecycleConfig config = s3Service.getLifecycleConfig(bucketName);
            assertNull(config);

            // Create Rule with Expiration by Days
            LifecycleConfig newConfig = new LifecycleConfig();
            Rule newRule = newConfig.newRule("rule-1", "/nothing", Boolean.TRUE);
            Expiration expiration = newRule.newExpiration();
            expiration.setDays(7);

            // Apply initial Rule
            s3Service.setLifecycleConfig(bucketName, newConfig);
View Full Code Here

TOP

Related Classes of org.jets3t.service.model.LifecycleConfig$TimeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.