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 |
---|---|
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, 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 Map<String,String> getOptions()
getOptions
in interface CreateNetworkCmd
public Boolean getCheckDuplicate()
getCheckDuplicate
in interface CreateNetworkCmd
public Boolean getInternal()
getInternal
in interface CreateNetworkCmd
public Boolean getEnableIPv6()
getEnableIPv6
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 withIpam(Network.Ipam ipam)
CreateNetworkCmd
withIpam
in interface CreateNetworkCmd
public CreateNetworkCmd withOptions(Map<String,String> options)
CreateNetworkCmd
withOptions
in interface CreateNetworkCmd
public CreateNetworkCmd withCheckDuplicate(boolean checkDuplicate)
withCheckDuplicate
in interface CreateNetworkCmd
public CreateNetworkCmd withInternal(boolean internal)
withInternal
in interface CreateNetworkCmd
public CreateNetworkCmd withEnableIpv6(boolean enableIpv6)
withEnableIpv6
in interface CreateNetworkCmd
Copyright © 2016. All Rights Reserved.