Class InspectNetworkSettings

java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectNetworkSettings
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class InspectNetworkSettings extends Object implements Serializable
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.
See Also:
  • Field Details

  • Constructor Details

    • InspectNetworkSettings

      public InspectNetworkSettings()
  • Method Details

    • additionalMACAddresses

      public InspectNetworkSettings additionalMACAddresses(List<String> additionalMACAddresses)
    • addAdditionalMACAddressesItem

      public InspectNetworkSettings addAdditionalMACAddressesItem(String additionalMACAddressesItem)
    • getAdditionalMACAddresses

      @Nullable public List<String> 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

      public void setAdditionalMACAddresses(List<String> additionalMACAddresses)
    • bridge

      public InspectNetworkSettings bridge(String bridge)
    • getBridge

      @Nullable public String getBridge()
      Get bridge
      Returns:
      bridge
    • setBridge

      public void setBridge(String bridge)
    • endpointID

      public InspectNetworkSettings endpointID(String endpointID)
    • getEndpointID

      @Nullable public String getEndpointID()
      EndpointID is unused, maintained exclusively for compatibility.
      Returns:
      endpointID
    • setEndpointID

      public void setEndpointID(String endpointID)
    • gateway

      public InspectNetworkSettings gateway(String gateway)
    • getGateway

      @Nullable public String getGateway()
      Gateway is the IP address of the gateway this network will use.
      Returns:
      gateway
    • setGateway

      public void setGateway(String gateway)
    • globalIPv6Address

      public InspectNetworkSettings globalIPv6Address(String globalIPv6Address)
    • getGlobalIPv6Address

      @Nullable public String getGlobalIPv6Address()
      GlobalIPv6Address is the global-scope IPv6 Address for this network.
      Returns:
      globalIPv6Address
    • setGlobalIPv6Address

      public void setGlobalIPv6Address(String globalIPv6Address)
    • globalIPv6PrefixLen

      public InspectNetworkSettings globalIPv6PrefixLen(Long globalIPv6PrefixLen)
    • getGlobalIPv6PrefixLen

      @Nullable public Long getGlobalIPv6PrefixLen()
      GlobalIPv6PrefixLen is the length of the subnet mask of this network.
      Returns:
      globalIPv6PrefixLen
    • setGlobalIPv6PrefixLen

      public void setGlobalIPv6PrefixLen(Long globalIPv6PrefixLen)
    • hairpinMode

      public InspectNetworkSettings hairpinMode(Boolean hairpinMode)
    • getHairpinMode

      @Nullable public Boolean getHairpinMode()
      Get hairpinMode
      Returns:
      hairpinMode
    • setHairpinMode

      public void setHairpinMode(Boolean hairpinMode)
    • ipAddress

      public InspectNetworkSettings ipAddress(String ipAddress)
    • getIpAddress

      @Nullable public String getIpAddress()
      IPAddress is the IP address for this network.
      Returns:
      ipAddress
    • setIpAddress

      public void setIpAddress(String ipAddress)
    • ipPrefixLen

      public InspectNetworkSettings ipPrefixLen(Long ipPrefixLen)
    • getIpPrefixLen

      @Nullable public Long getIpPrefixLen()
      IPPrefixLen is the length of the subnet mask of this network.
      Returns:
      ipPrefixLen
    • setIpPrefixLen

      public void setIpPrefixLen(Long ipPrefixLen)
    • ipv6Gateway

      public InspectNetworkSettings ipv6Gateway(String ipv6Gateway)
    • getIpv6Gateway

      @Nullable public String getIpv6Gateway()
      IPv6Gateway is the IPv6 gateway this network will use.
      Returns:
      ipv6Gateway
    • setIpv6Gateway

      public void setIpv6Gateway(String ipv6Gateway)
    • linkLocalIPv6Address

      public InspectNetworkSettings linkLocalIPv6Address(String linkLocalIPv6Address)
    • getLinkLocalIPv6Address

      @Nullable public String getLinkLocalIPv6Address()
      Get linkLocalIPv6Address
      Returns:
      linkLocalIPv6Address
    • setLinkLocalIPv6Address

      public void setLinkLocalIPv6Address(String linkLocalIPv6Address)
    • linkLocalIPv6PrefixLen

      public InspectNetworkSettings linkLocalIPv6PrefixLen(Long linkLocalIPv6PrefixLen)
    • getLinkLocalIPv6PrefixLen

      @Nullable public Long getLinkLocalIPv6PrefixLen()
      Get linkLocalIPv6PrefixLen
      Returns:
      linkLocalIPv6PrefixLen
    • setLinkLocalIPv6PrefixLen

      public void setLinkLocalIPv6PrefixLen(Long linkLocalIPv6PrefixLen)
    • macAddress

      public InspectNetworkSettings macAddress(String macAddress)
    • getMacAddress

      @Nullable public String getMacAddress()
      MacAddress is the MAC address for the interface in this network.
      Returns:
      macAddress
    • setMacAddress

      public void setMacAddress(String macAddress)
    • networks

    • putNetworksItem

      public InspectNetworkSettings putNetworksItem(String key, InspectAdditionalNetwork networksItem)
    • getNetworks

      @Nullable @Valid public @Valid Map<String,InspectAdditionalNetwork> 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

      public void setNetworks(Map<String,InspectAdditionalNetwork> networks)
    • ports

    • putPortsItem

      public InspectNetworkSettings putPortsItem(String key, List<InspectHostPort> portsItem)
    • getPorts

      @Nullable @Valid public @Valid Map<String,List<InspectHostPort>> getPorts()
      Get ports
      Returns:
      ports
    • setPorts

      public void setPorts(Map<String,List<InspectHostPort>> ports)
    • sandboxID

      public InspectNetworkSettings sandboxID(String sandboxID)
    • getSandboxID

      @Nullable public String getSandboxID()
      Get sandboxID
      Returns:
      sandboxID
    • setSandboxID

      public void setSandboxID(String sandboxID)
    • sandboxKey

      public InspectNetworkSettings sandboxKey(String sandboxKey)
    • getSandboxKey

      @Nullable public String getSandboxKey()
      Get sandboxKey
      Returns:
      sandboxKey
    • setSandboxKey

      public void setSandboxKey(String sandboxKey)
    • secondaryIPAddresses

      public InspectNetworkSettings secondaryIPAddresses(List<Address> secondaryIPAddresses)
    • addSecondaryIPAddressesItem

      public InspectNetworkSettings addSecondaryIPAddressesItem(Address secondaryIPAddressesItem)
    • getSecondaryIPAddresses

      @Nullable @Valid public @Valid List<Address> getSecondaryIPAddresses()
      SecondaryIPAddresses is a list of extra IP Addresses that the container has been assigned in this network.
      Returns:
      secondaryIPAddresses
    • setSecondaryIPAddresses

      public void setSecondaryIPAddresses(List<Address> secondaryIPAddresses)
    • secondaryIPv6Addresses

      public InspectNetworkSettings secondaryIPv6Addresses(List<Address> secondaryIPv6Addresses)
    • addSecondaryIPv6AddressesItem

      public InspectNetworkSettings addSecondaryIPv6AddressesItem(Address secondaryIPv6AddressesItem)
    • getSecondaryIPv6Addresses

      @Nullable @Valid public @Valid List<Address> getSecondaryIPv6Addresses()
      SecondaryIPv6Addresses is a list of extra IPv6 Addresses that the container has been assigned in this network.
      Returns:
      secondaryIPv6Addresses
    • setSecondaryIPv6Addresses

      public void setSecondaryIPv6Addresses(List<Address> secondaryIPv6Addresses)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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 InspectNetworkSettings
    • fromJson

      public static InspectNetworkSettings fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of InspectNetworkSettings to an JSON string
      Returns:
      JSON string