forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRenameContainerCmd.java
More file actions
34 lines (25 loc) · 800 Bytes
/
Copy pathRenameContainerCmd.java
File metadata and controls
34 lines (25 loc) · 800 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
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.exception.NotFoundException;
import com.github.dockerjava.core.RemoteApiVersion;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
/**
* Rename a container.
*
* @since {@link RemoteApiVersion#VERSION_1_17}
*/
public interface RenameContainerCmd extends SyncDockerCmd<Void> {
@CheckForNull
String getContainerId();
RenameContainerCmd withContainerId(@Nonnull String containerId);
@CheckForNull
String getName();
RenameContainerCmd withName(@Nonnull String name);
/**
* @throws NotFoundException No such container
*/
@Override
Void exec() throws NotFoundException;
interface Exec extends DockerCmdSyncExec<RenameContainerCmd, Void> {
}
}