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
37 lines (29 loc) · 850 Bytes
/
Copy pathRemoveVolumeCmdImpl.java
File metadata and controls
37 lines (29 loc) · 850 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
package com.github.dockerjava.core.command;
import java.util.Objects;
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) {
this.name = Objects.requireNonNull(name, "name was not specified");
return this;
}
@Override
public Void exec() throws NotFoundException {
return super.exec();
}
}