Example usage for com.amazonaws.services.ecs.model MountPoint MountPoint

List of usage examples for com.amazonaws.services.ecs.model MountPoint MountPoint

Introduction

In this page you can find the example usage for com.amazonaws.services.ecs.model MountPoint MountPoint.

Prototype

MountPoint

Source Link

Usage

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;
}