Class InspectNetworkSettings
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectNetworkSettings
@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 InspectNetworkSettings
extends Object
InspectNetworkSettings holds information about the network settings of the container. Many fields
are maintained only for compatibility with `docker inspect` and are unused within
Libpod.
-
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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalMACAddressesItem(String additionalMACAddressesItem) additionalMACAddresses(List<String> additionalMACAddresses) addSecondaryIPAddressesItem(Address secondaryIPAddressesItem) addSecondaryIPv6AddressesItem(Address secondaryIPv6AddressesItem) endpointID(String endpointID) booleanstatic InspectNetworkSettingsCreate an instance of InspectNetworkSettings given an JSON stringAdditionalMacAddresses is a set of additional MAC Addresses beyond the first.Get bridgeEndpointID is unused, maintained exclusively for compatibility.Gateway is the IP address of the gateway this network will use.GlobalIPv6Address is the global-scope IPv6 Address for this network.GlobalIPv6PrefixLen is the length of the subnet mask of this network.Get hairpinModeIPAddress is the IP address for this network.IPPrefixLen is the length of the subnet mask of this network.IPv6Gateway is the IPv6 gateway this network will use.Get linkLocalIPv6AddressGet linkLocalIPv6PrefixLenMacAddress is the MAC address for the interface in this network.Networks contains information on non-default networks this container has joined.getPorts()Get portsGet sandboxIDGet sandboxKeySecondaryIPAddresses is a list of extra IP Addresses that the container has been assigned in this network.SecondaryIPv6Addresses is a list of extra IPv6 Addresses that the container has been assigned in this network.globalIPv6Address(String globalIPv6Address) globalIPv6PrefixLen(Long globalIPv6PrefixLen) hairpinMode(Boolean hairpinMode) inthashCode()ipPrefixLen(Long ipPrefixLen) ipv6Gateway(String ipv6Gateway) linkLocalIPv6Address(String linkLocalIPv6Address) linkLocalIPv6PrefixLen(Long linkLocalIPv6PrefixLen) macAddress(String macAddress) networks(Map<String, InspectAdditionalNetwork> networks) ports(Map<String, List<InspectHostPort>> ports) putNetworksItem(String key, InspectAdditionalNetwork networksItem) putPortsItem(String key, List<InspectHostPort> portsItem) sandboxKey(String sandboxKey) secondaryIPAddresses(List<Address> secondaryIPAddresses) secondaryIPv6Addresses(List<Address> secondaryIPv6Addresses) voidsetAdditionalMACAddresses(List<String> additionalMACAddresses) voidvoidsetEndpointID(String endpointID) voidsetGateway(String gateway) voidsetGlobalIPv6Address(String globalIPv6Address) voidsetGlobalIPv6PrefixLen(Long globalIPv6PrefixLen) voidsetHairpinMode(Boolean hairpinMode) voidsetIpAddress(String ipAddress) voidsetIpPrefixLen(Long ipPrefixLen) voidsetIpv6Gateway(String ipv6Gateway) voidsetLinkLocalIPv6Address(String linkLocalIPv6Address) voidsetLinkLocalIPv6PrefixLen(Long linkLocalIPv6PrefixLen) voidsetMacAddress(String macAddress) voidsetNetworks(Map<String, InspectAdditionalNetwork> networks) voidsetPorts(Map<String, List<InspectHostPort>> ports) voidsetSandboxID(String sandboxID) voidsetSandboxKey(String sandboxKey) voidsetSecondaryIPAddresses(List<Address> secondaryIPAddresses) voidsetSecondaryIPv6Addresses(List<Address> secondaryIPv6Addresses) toJson()Convert an instance of InspectNetworkSettings 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_ADDITIONAL_M_A_C_ADDRESSES
- See Also:
-
SERIALIZED_NAME_BRIDGE
- See Also:
-
SERIALIZED_NAME_ENDPOINT_I_D
- See Also:
-
SERIALIZED_NAME_GATEWAY
- See Also:
-
SERIALIZED_NAME_GLOBAL_I_PV6_ADDRESS
- See Also:
-
SERIALIZED_NAME_GLOBAL_I_PV6_PREFIX_LEN
- See Also:
-
SERIALIZED_NAME_HAIRPIN_MODE
- See Also:
-
SERIALIZED_NAME_IP_ADDRESS
- See Also:
-
SERIALIZED_NAME_IP_PREFIX_LEN
- See Also:
-
SERIALIZED_NAME_IPV6_GATEWAY
- See Also:
-
SERIALIZED_NAME_LINK_LOCAL_I_PV6_ADDRESS
- See Also:
-
SERIALIZED_NAME_LINK_LOCAL_I_PV6_PREFIX_LEN
- See Also:
-
SERIALIZED_NAME_MAC_ADDRESS
- See Also:
-
SERIALIZED_NAME_NETWORKS
- See Also:
-
SERIALIZED_NAME_PORTS
- See Also:
-
SERIALIZED_NAME_SANDBOX_I_D
- See Also:
-
SERIALIZED_NAME_SANDBOX_KEY
- See Also:
-
SERIALIZED_NAME_SECONDARY_I_P_ADDRESSES
- See Also:
-
SERIALIZED_NAME_SECONDARY_I_PV6_ADDRESSES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InspectNetworkSettings
public InspectNetworkSettings()
-
-
Method Details
-
additionalMACAddresses
-
addAdditionalMACAddressesItem
-
getAdditionalMACAddresses
AdditionalMacAddresses is a set of additional MAC Addresses beyond the first. CNI may configure more than one interface for a single network, which can cause this.- Returns:
- additionalMACAddresses
-
setAdditionalMACAddresses
-
bridge
-
getBridge
Get bridge- Returns:
- bridge
-
setBridge
-
endpointID
-
getEndpointID
EndpointID is unused, maintained exclusively for compatibility.- Returns:
- endpointID
-
setEndpointID
-
gateway
-
getGateway
Gateway is the IP address of the gateway this network will use.- Returns:
- gateway
-
setGateway
-
globalIPv6Address
-
getGlobalIPv6Address
GlobalIPv6Address is the global-scope IPv6 Address for this network.- Returns:
- globalIPv6Address
-
setGlobalIPv6Address
-
globalIPv6PrefixLen
-
getGlobalIPv6PrefixLen
GlobalIPv6PrefixLen is the length of the subnet mask of this network.- Returns:
- globalIPv6PrefixLen
-
setGlobalIPv6PrefixLen
-
hairpinMode
-
getHairpinMode
Get hairpinMode- Returns:
- hairpinMode
-
setHairpinMode
-
ipAddress
-
getIpAddress
IPAddress is the IP address for this network.- Returns:
- ipAddress
-
setIpAddress
-
ipPrefixLen
-
getIpPrefixLen
IPPrefixLen is the length of the subnet mask of this network.- Returns:
- ipPrefixLen
-
setIpPrefixLen
-
ipv6Gateway
-
getIpv6Gateway
IPv6Gateway is the IPv6 gateway this network will use.- Returns:
- ipv6Gateway
-
setIpv6Gateway
-
linkLocalIPv6Address
-
getLinkLocalIPv6Address
Get linkLocalIPv6Address- Returns:
- linkLocalIPv6Address
-
setLinkLocalIPv6Address
-
linkLocalIPv6PrefixLen
-
getLinkLocalIPv6PrefixLen
Get linkLocalIPv6PrefixLen- Returns:
- linkLocalIPv6PrefixLen
-
setLinkLocalIPv6PrefixLen
-
macAddress
-
getMacAddress
MacAddress is the MAC address for the interface in this network.- Returns:
- macAddress
-
setMacAddress
-
networks
-
putNetworksItem
-
getNetworks
Networks contains information on non-default networks this container has joined. It is a map of network name to network information.- Returns:
- networks
-
setNetworks
-
ports
-
putPortsItem
-
getPorts
Get ports- Returns:
- ports
-
setPorts
-
sandboxID
-
getSandboxID
Get sandboxID- Returns:
- sandboxID
-
setSandboxID
-
sandboxKey
-
getSandboxKey
Get sandboxKey- Returns:
- sandboxKey
-
setSandboxKey
-
secondaryIPAddresses
-
addSecondaryIPAddressesItem
-
getSecondaryIPAddresses
SecondaryIPAddresses is a list of extra IP Addresses that the container has been assigned in this network.- Returns:
- secondaryIPAddresses
-
setSecondaryIPAddresses
-
secondaryIPv6Addresses
-
addSecondaryIPv6AddressesItem
-
getSecondaryIPv6Addresses
SecondaryIPv6Addresses is a list of extra IPv6 Addresses that the container has been assigned in this network.- Returns:
- secondaryIPv6Addresses
-
setSecondaryIPv6Addresses
-
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 InspectNetworkSettings
-
fromJson
Create an instance of InspectNetworkSettings given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InspectNetworkSettings
- Throws:
IOException- if the JSON string is invalid with respect to InspectNetworkSettings
-
toJson
Convert an instance of InspectNetworkSettings to an JSON string- Returns:
- JSON string
-