Examples of newTransition()


Examples of org.jets3t.service.model.LifecycleConfig.Rule.newTransition()

            rule = config.getRules().get(0);
            assertNull(rule.getExpiration().getDays());
            assertEquals(sdf.parse("2020-01-01+0000"), rule.getExpiration().getDate());

            // Add Transition by Date
            Transition transition = rule.newTransition()// Default's to GLACIER storage class
            transition.setDate(sdf.parse("2016-01-01+0000"));
            s3Service.setLifecycleConfig(bucketName, config);
            config = s3Service.getLifecycleConfig(bucketName);
            rule = config.getRules().get(0);
            assertEquals(sdf.parse("2016-01-01+0000"), rule.getTransition().getDate());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.