public Pairtree getPairtree ( final String aBucket , final String aBucketPath ) throws PairtreeException { if ( myAccessKey . isPresent ( ) && mySecretKey . isPresent ( ) ) { final String accessKey = myAccessKey . get ( ) ; final String secretKey = mySecretKey . get ( ) ; if ( myRegion . isPresent ( ) ) { return new S3Pairtree ( myVertx , aBucket , aBucketPath , accessKey , secretKey , myRegion . get ( ) ) ; } else { return new S3Pairtree ( myVertx , aBucket , aBucketPath , accessKey , secretKey ) ; } } else { throw new PairtreeException ( MessageCodes . PT_021 ) ; } }
Gets the S3 based Pairtree using the supplied S3 bucket and bucket path .