List of usage examples for com.amazonaws.services.ecs.model MountPoint MountPoint
MountPoint
From source file:com.cloudbees.jenkins.plugins.amazonecs.ECSTaskTemplate.java
License:Open Source License
private Collection<MountPoint> getMountPointEntries() { if (null == mountPoints || mountPoints.isEmpty()) return null; Collection<MountPoint> mounts = new ArrayList<MountPoint>(); for (MountPointEntry mount : mountPoints) { String src = mount.name;//w w w . j av a 2 s. c om String path = mount.containerPath; Boolean ro = mount.readOnly; if (StringUtils.isEmpty(src) || StringUtils.isEmpty(path)) continue; mounts.add(new MountPoint().withSourceVolume(src).withContainerPath(path).withReadOnly(ro)); } return mounts; }