class SwiftSegmentService {

    public String manifest(final String container, final List<StorageObject> objects) {
        JsonArray manifestSLO = new JsonArray();
        for(StorageObject s : objects) {
            JsonObject segmentJSON = new JsonObject();
            // this is the container and object name in the format {container-name}/{object-name}
            segmentJSON.addProperty("path", String.format("/%s/%s", container, s.getName()));
            // MD5 checksum of the content of the segment object
            segmentJSON.addProperty("etag", s.getMd5sum());
            segmentJSON.addProperty("size_bytes", s.getSize());
            manifestSLO.add(segmentJSON);
        }
        return manifestSLO.toString();
    }

    public  SwiftSegmentService(final SwiftSession session);
    public  SwiftSegmentService(final SwiftSession session, final String prefix);
    public  SwiftSegmentService(final SwiftSession session, final SwiftRegionService regionService);
    public  SwiftSegmentService(final SwiftSession session, final SwiftRegionService regionService, final String prefix);

}