public class CreateNetworkCmdImpl extends AbstrDockerCmd<CreateNetworkCmd,CreateNetworkResponse> implements CreateNetworkCmd
CreateNetworkCmd.Exec
execution
Constructor and Description |
---|
CreateNetworkCmdImpl(DockerCmdSyncExec<CreateNetworkCmd,CreateNetworkResponse> execution) |
Modifier and Type | Method and Description |
---|---|
String |
getDriver() |
Network.Ipam |
getIpam() |
String |
getName() |
CreateNetworkCmd |
withDriver(String driver)
Name of the network driver to use.
|
CreateNetworkCmd |
withIpamConfig(Network.Ipam.Config config)
Optional custom IP scheme for the network.
|
CreateNetworkCmd |
withName(String name)
The new network's name.
|
CreateNetworkCmd |
withOptions(Map<String,String> options)
Driver specific options
|
close, exec, registryAuth, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exec
public CreateNetworkCmdImpl(DockerCmdSyncExec<CreateNetworkCmd,CreateNetworkResponse> execution)
public String getName()
getName
in interface CreateNetworkCmd
public String getDriver()
getDriver
in interface CreateNetworkCmd
public Network.Ipam getIpam()
getIpam
in interface CreateNetworkCmd
public CreateNetworkCmd withName(String name)
CreateNetworkCmd
withName
in interface CreateNetworkCmd
public CreateNetworkCmd withDriver(String driver)
CreateNetworkCmd
bridge
.withDriver
in interface CreateNetworkCmd
public CreateNetworkCmd withIpamConfig(Network.Ipam.Config config)
CreateNetworkCmd
withIpamConfig
in interface CreateNetworkCmd
public CreateNetworkCmd withOptions(Map<String,String> options)
CreateNetworkCmd
withOptions
in interface CreateNetworkCmd
Copyright © 2016. All Rights Reserved.