com.github.dockerjava.core.command.RemoveVolumeCmdImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.core.command;
import static com.google.common.base.Preconditions.checkNotNull;
import com.github.dockerjava.api.command.RemoveVolumeCmd;
import com.github.dockerjava.api.exception.NotFoundException;
/**
* Remove a volume.
*
* @author Marcus Linke
*/
public class RemoveVolumeCmdImpl extends AbstrDockerCmd implements RemoveVolumeCmd {
private String name;
public RemoveVolumeCmdImpl(RemoveVolumeCmd.Exec exec, String name) {
super(exec);
withName(name);
}
@Override
public String getName() {
return name;
}
@Override
public RemoveVolumeCmd withName(String name) {
checkNotNull(name, "name was not specified");
this.name = name;
return this;
}
@Override
public Void exec() throws NotFoundException {
return super.exec();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy