public class RemoveContainerCmdImpl extends AbstrDockerCmd<RemoveContainerCmd,java.lang.Void> implements RemoveContainerCmd
RemoveContainerCmd.Exec
execution
Constructor and Description |
---|
RemoveContainerCmdImpl(RemoveContainerCmd.Exec exec,
java.lang.String containerId) |
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
exec() |
java.lang.String |
getContainerId() |
java.lang.Boolean |
hasForceEnabled() |
java.lang.Boolean |
hasRemoveVolumesEnabled() |
RemoveContainerCmd |
withContainerId(java.lang.String containerId) |
RemoveContainerCmd |
withForce(java.lang.Boolean force) |
RemoveContainerCmd |
withRemoveVolumes(java.lang.Boolean removeVolumes) |
close, registryAuth, toString
public RemoveContainerCmdImpl(RemoveContainerCmd.Exec exec, java.lang.String containerId)
public java.lang.String getContainerId()
getContainerId
in interface RemoveContainerCmd
public java.lang.Boolean hasRemoveVolumesEnabled()
hasRemoveVolumesEnabled
in interface RemoveContainerCmd
public java.lang.Boolean hasForceEnabled()
hasForceEnabled
in interface RemoveContainerCmd
public RemoveContainerCmd withContainerId(java.lang.String containerId)
withContainerId
in interface RemoveContainerCmd
public RemoveContainerCmd withRemoveVolumes(java.lang.Boolean removeVolumes)
withRemoveVolumes
in interface RemoveContainerCmd
public RemoveContainerCmd withForce(java.lang.Boolean force)
withForce
in interface RemoveContainerCmd
public java.lang.Void exec() throws NotFoundException
exec
in interface RemoveContainerCmd
exec
in interface SyncDockerCmd<java.lang.Void>
exec
in class AbstrDockerCmd<RemoveContainerCmd,java.lang.Void>
NotFoundException
- No such containerCopyright © 2019. All Rights Reserved.