Class NetOptions
java.lang.Object
io.github.alersrt.pod4j.openapi.model.NetOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class NetOptions
extends Object
NetOptions reflect the shared network options between pods and containers
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDnsOptionItem(String dnsOptionItem) addDnsSearchItem(String dnsSearchItem) addDnsServerItem(String dnsServerItem) addHostaddItem(String hostaddItem) addNetworkAliasItem(String networkAliasItem) addPortmappingsItem(PortMapping portmappingsItem) booleanstatic NetOptionsCreate an instance of NetOptions given an JSON stringGet dnsOptionGet dnsSearchGet dnsServerGet hostaddgetNetns()Get netnsGet networkAliasNetworkOptions are additional options for each networkGet networksGet noManageHostsGet noManageResolvConfGet portmappingsinthashCode()networkAlias(List<String> networkAlias) networkOptions(Map<String, List<String>> networkOptions) networks(Map<String, PerNetworkOptions> networks) noManageHosts(Boolean noManageHosts) noManageResolvConf(Boolean noManageResolvConf) portmappings(List<PortMapping> portmappings) putNetworkOptionsItem(String key, List<String> networkOptionsItem) putNetworksItem(String key, PerNetworkOptions networksItem) voidsetDnsOption(List<String> dnsOption) voidsetDnsSearch(List<String> dnsSearch) voidsetDnsServer(List<String> dnsServer) voidsetHostadd(List<String> hostadd) voidvoidsetNetworkAlias(List<String> networkAlias) voidsetNetworkOptions(Map<String, List<String>> networkOptions) voidsetNetworks(Map<String, PerNetworkOptions> networks) voidsetNoManageHosts(Boolean noManageHosts) voidsetNoManageResolvConf(Boolean noManageResolvConf) voidsetPortmappings(List<PortMapping> portmappings) toJson()Convert an instance of NetOptions to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DNS_OPTION
- See Also:
-
SERIALIZED_NAME_DNS_SEARCH
- See Also:
-
SERIALIZED_NAME_DNS_SERVER
- See Also:
-
SERIALIZED_NAME_HOSTADD
- See Also:
-
SERIALIZED_NAME_NETNS
- See Also:
-
SERIALIZED_NAME_NETWORK_ALIAS
- See Also:
-
SERIALIZED_NAME_NETWORK_OPTIONS
- See Also:
-
SERIALIZED_NAME_NETWORKS
- See Also:
-
SERIALIZED_NAME_NO_MANAGE_HOSTS
- See Also:
-
SERIALIZED_NAME_NO_MANAGE_RESOLV_CONF
- See Also:
-
SERIALIZED_NAME_PORTMAPPINGS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NetOptions
public NetOptions()
-
-
Method Details
-
dnsOption
-
addDnsOptionItem
-
getDnsOption
Get dnsOption- Returns:
- dnsOption
-
setDnsOption
-
dnsSearch
-
addDnsSearchItem
-
getDnsSearch
Get dnsSearch- Returns:
- dnsSearch
-
setDnsSearch
-
dnsServer
-
addDnsServerItem
-
getDnsServer
Get dnsServer- Returns:
- dnsServer
-
setDnsServer
-
hostadd
-
addHostaddItem
-
getHostadd
Get hostadd- Returns:
- hostadd
-
setHostadd
-
netns
-
getNetns
Get netns- Returns:
- netns
-
setNetns
-
networkAlias
-
addNetworkAliasItem
-
getNetworkAlias
Get networkAlias- Returns:
- networkAlias
-
setNetworkAlias
-
networkOptions
-
putNetworkOptionsItem
-
getNetworkOptions
NetworkOptions are additional options for each network- Returns:
- networkOptions
-
setNetworkOptions
-
networks
-
putNetworksItem
-
getNetworks
Get networks- Returns:
- networks
-
setNetworks
-
noManageHosts
-
getNoManageHosts
Get noManageHosts- Returns:
- noManageHosts
-
setNoManageHosts
-
noManageResolvConf
-
getNoManageResolvConf
Get noManageResolvConf- Returns:
- noManageResolvConf
-
setNoManageResolvConf
-
portmappings
-
addPortmappingsItem
-
getPortmappings
Get portmappings- Returns:
- portmappings
-
setPortmappings
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to NetOptions
-
fromJson
Create an instance of NetOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NetOptions
- Throws:
IOException- if the JSON string is invalid with respect to NetOptions
-
toJson
Convert an instance of NetOptions to an JSON string- Returns:
- JSON string
-