Class Network
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Network
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Network
extends Object
implements Serializable
Network
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNetworkDnsServersItem(String networkDnsServersItem) addRoutesItem(Route routesItem) addSubnetsItem(Subnet subnetsItem) created(OffsetDateTime created) dnsEnabled(Boolean dnsEnabled) booleanstatic NetworkCreate an instance of Network given an JSON string@Valid OffsetDateTimeCreated contains the timestamp when this network was created.DNSEnabled is whether name resolution is active for container on this Network.Driver for this Network, e.g.getId()ID of the Network.Internal is whether the Network should not have external routes to public or other Networks.IPAMOptions contains options used for the ip assignment.IPv6Enabled if set to true an ipv6 subnet should be created for this net.Labels is a set of key-value labels that have been applied to the Network.getName()Name of the Network.List of custom DNS server for podman's DNS resolver at network level, all the containers attached to this network will consider resolvers configured at network level.NetworkInterface is the network interface name on the host.Options is a set of key-value options that have been applied to the Network.Routes to use for this network.Subnets to use for this network.inthashCode()ipamOptions(Map<String, String> ipamOptions) ipv6Enabled(Boolean ipv6Enabled) networkDnsServers(List<String> networkDnsServers) networkInterface(String networkInterface) putIpamOptionsItem(String key, String ipamOptionsItem) putLabelsItem(String key, String labelsItem) putOptionsItem(String key, String optionsItem) voidsetCreated(OffsetDateTime created) voidsetDnsEnabled(Boolean dnsEnabled) voidvoidvoidsetInternal(Boolean internal) voidsetIpamOptions(Map<String, String> ipamOptions) voidsetIpv6Enabled(Boolean ipv6Enabled) voidvoidvoidsetNetworkDnsServers(List<String> networkDnsServers) voidsetNetworkInterface(String networkInterface) voidsetOptions(Map<String, String> options) voidvoidsetSubnets(List<Subnet> subnets) toJson()Convert an instance of Network to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_DNS_ENABLED
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_INTERNAL
- See Also:
-
SERIALIZED_NAME_IPAM_OPTIONS
- See Also:
-
SERIALIZED_NAME_IPV6_ENABLED
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NETWORK_DNS_SERVERS
- See Also:
-
SERIALIZED_NAME_NETWORK_INTERFACE
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_ROUTES
- See Also:
-
SERIALIZED_NAME_SUBNETS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Network
public Network()
-
-
Method Details
-
created
-
getCreated
Created contains the timestamp when this network was created.- Returns:
- created
-
setCreated
-
dnsEnabled
-
getDnsEnabled
DNSEnabled is whether name resolution is active for container on this Network. Only supported with the bridge driver.- Returns:
- dnsEnabled
-
setDnsEnabled
-
driver
-
getDriver
Driver for this Network, e.g. bridge, macvlan...- Returns:
- driver
-
setDriver
-
id
-
getId
ID of the Network.- Returns:
- id
-
setId
-
internal
-
getInternal
Internal is whether the Network should not have external routes to public or other Networks.- Returns:
- internal
-
setInternal
-
ipamOptions
-
putIpamOptionsItem
-
getIpamOptions
IPAMOptions contains options used for the ip assignment.- Returns:
- ipamOptions
-
setIpamOptions
-
ipv6Enabled
-
getIpv6Enabled
IPv6Enabled if set to true an ipv6 subnet should be created for this net.- Returns:
- ipv6Enabled
-
setIpv6Enabled
-
labels
-
putLabelsItem
-
getLabels
Labels is a set of key-value labels that have been applied to the Network.- Returns:
- labels
-
setLabels
-
name
-
getName
Name of the Network.- Returns:
- name
-
setName
-
networkDnsServers
-
addNetworkDnsServersItem
-
getNetworkDnsServers
List of custom DNS server for podman's DNS resolver at network level, all the containers attached to this network will consider resolvers configured at network level.- Returns:
- networkDnsServers
-
setNetworkDnsServers
-
networkInterface
-
getNetworkInterface
NetworkInterface is the network interface name on the host.- Returns:
- networkInterface
-
setNetworkInterface
-
options
-
putOptionsItem
-
getOptions
Options is a set of key-value options that have been applied to the Network.- Returns:
- options
-
setOptions
-
routes
-
addRoutesItem
-
getRoutes
Routes to use for this network.- Returns:
- routes
-
setRoutes
-
subnets
-
addSubnetsItem
-
getSubnets
Subnets to use for this network.- Returns:
- subnets
-
setSubnets
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Network
-
fromJson
Create an instance of Network given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Network
- Throws:
IOException- if the JSON string is invalid with respect to Network
-
toJson
Convert an instance of Network to an JSON string- Returns:
- JSON string
-