forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemoveVolumeCmdImpl.java
More file actions
38 lines (30 loc) · 893 Bytes
/
Copy pathRemoveVolumeCmdImpl.java
File metadata and controls
38 lines (30 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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<RemoveVolumeCmd, Void> 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();
}
}