Class NetOptions
java.lang.Object
io.github.alersrt.pod4j.openapi.model.NetOptions
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class NetOptions
extends Object
implements Serializable
NetOptions reflect the shared network options between pods and containers
- See Also:
-
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 hostaddGet hostsFile@Valid NamespacegetNetns()Get netnsGet networkAliasNetworkOptions are additional options for each network@Valid Map<String,PerNetworkOptions> Get networksGet noManageHostnameGet noManageHostsGet noManageResolvConf@Valid List<PortMapping>Get portmappingsinthashCode()networkAlias(List<String> networkAlias) networkOptions(Map<String, List<String>> networkOptions) networks(Map<String, PerNetworkOptions> networks) noManageHostname(Boolean noManageHostname) 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) voidsetHostsFile(String hostsFile) voidvoidsetNetworkAlias(List<String> networkAlias) voidsetNetworkOptions(Map<String, List<String>> networkOptions) voidsetNetworks(Map<String, PerNetworkOptions> networks) voidsetNoManageHostname(Boolean noManageHostname) voidsetNoManageHosts(Boolean noManageHosts) voidsetNoManageResolvConf(Boolean noManageResolvConf) voidsetPortmappings(List<PortMapping> portmappings) toJson()Convert an instance of NetOptions 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_DNS_OPTION
- See Also:
-
SERIALIZED_NAME_DNS_SEARCH
- See Also:
-
SERIALIZED_NAME_DNS_SERVER
- See Also:
-
SERIALIZED_NAME_HOSTADD
- See Also:
-
SERIALIZED_NAME_HOSTS_FILE
- 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_HOSTNAME
- 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
-
hostsFile
-
getHostsFile
Get hostsFile- Returns:
- hostsFile
-
setHostsFile
-
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
-
noManageHostname
-
getNoManageHostname
Get noManageHostname- Returns:
- noManageHostname
-
setNoManageHostname
-
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
-
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 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
-