public class CreateNetworkCmdImpl extends AbstrDockerCmd<CreateNetworkCmd,CreateNetworkResponse> implements CreateNetworkCmd
CreateNetworkCmd.Execexecution| Constructor and Description |
|---|
CreateNetworkCmdImpl(DockerCmdSyncExec<CreateNetworkCmd,CreateNetworkResponse> execution) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getCheckDuplicate() |
String |
getDriver() |
Boolean |
getEnableIPv6() |
Boolean |
getInternal() |
Network.Ipam |
getIpam() |
String |
getName() |
Map<String,String> |
getOptions() |
CreateNetworkCmd |
withCheckDuplicate(boolean checkDuplicate) |
CreateNetworkCmd |
withDriver(String driver)
Name of the network driver to use.
|
CreateNetworkCmd |
withEnableIpv6(boolean enableIpv6) |
CreateNetworkCmd |
withInternal(boolean internal) |
CreateNetworkCmd |
withIpam(Network.Ipam ipam)
Ipam config, such es subnet, gateway and ip range of the network
|
CreateNetworkCmd |
withName(String name)
The new network's name.
|
CreateNetworkCmd |
withOptions(Map<String,String> options)
Driver specific options
|
close, exec, registryAuth, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecpublic CreateNetworkCmdImpl(DockerCmdSyncExec<CreateNetworkCmd,CreateNetworkResponse> execution)
public String getName()
getName in interface CreateNetworkCmdpublic String getDriver()
getDriver in interface CreateNetworkCmdpublic Network.Ipam getIpam()
getIpam in interface CreateNetworkCmdpublic Map<String,String> getOptions()
getOptions in interface CreateNetworkCmdpublic Boolean getCheckDuplicate()
getCheckDuplicate in interface CreateNetworkCmdpublic Boolean getInternal()
getInternal in interface CreateNetworkCmdpublic Boolean getEnableIPv6()
getEnableIPv6 in interface CreateNetworkCmdpublic CreateNetworkCmd withName(String name)
CreateNetworkCmdwithName in interface CreateNetworkCmdpublic CreateNetworkCmd withDriver(String driver)
CreateNetworkCmdbridge.withDriver in interface CreateNetworkCmdpublic CreateNetworkCmd withIpam(Network.Ipam ipam)
CreateNetworkCmdwithIpam in interface CreateNetworkCmdpublic CreateNetworkCmd withOptions(Map<String,String> options)
CreateNetworkCmdwithOptions in interface CreateNetworkCmdpublic CreateNetworkCmd withCheckDuplicate(boolean checkDuplicate)
withCheckDuplicate in interface CreateNetworkCmdpublic CreateNetworkCmd withInternal(boolean internal)
withInternal in interface CreateNetworkCmdpublic CreateNetworkCmd withEnableIpv6(boolean enableIpv6)
withEnableIpv6 in interface CreateNetworkCmdCopyright © 2017. All Rights Reserved.