Class InspectAdditionalNetwork

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class InspectAdditionalNetwork extends Object implements Serializable
InspectAdditionalNetwork holds information about non-default networks the container has been connected to. As with InspectNetworkSettings, many fields are unused and maintained only for compatibility with Docker.
See Also:
  • Field Details

  • Constructor Details

    • InspectAdditionalNetwork

      public InspectAdditionalNetwork()
  • Method Details

    • additionalMACAddresses

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

      public InspectAdditionalNetwork 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)
    • aliases

      public InspectAdditionalNetwork aliases(List<String> aliases)
    • addAliasesItem

      public InspectAdditionalNetwork addAliasesItem(String aliasesItem)
    • getAliases

      @Nullable public List<String> getAliases()
      Aliases are any network aliases the container has in this network.
      Returns:
      aliases
    • setAliases

      public void setAliases(List<String> aliases)
    • driverOpts

      public InspectAdditionalNetwork driverOpts(Map<String,String> driverOpts)
    • putDriverOptsItem

      public InspectAdditionalNetwork putDriverOptsItem(String key, String driverOptsItem)
    • getDriverOpts

      @Nullable public Map<String,String> getDriverOpts()
      DriverOpts is presently unused and maintained exclusively for compatibility.
      Returns:
      driverOpts
    • setDriverOpts

      public void setDriverOpts(Map<String,String> driverOpts)
    • endpointID

      public InspectAdditionalNetwork 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 InspectAdditionalNetwork 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 InspectAdditionalNetwork 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 InspectAdditionalNetwork 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)
    • ipAMConfig

      public InspectAdditionalNetwork ipAMConfig(Map<String,String> ipAMConfig)
    • putIpAMConfigItem

      public InspectAdditionalNetwork putIpAMConfigItem(String key, String ipAMConfigItem)
    • getIpAMConfig

      @Nullable public Map<String,String> getIpAMConfig()
      IPAMConfig is presently unused and maintained exclusively for compatibility.
      Returns:
      ipAMConfig
    • setIpAMConfig

      public void setIpAMConfig(Map<String,String> ipAMConfig)
    • ipAddress

      public InspectAdditionalNetwork 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 InspectAdditionalNetwork 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 InspectAdditionalNetwork 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)
    • links

      public InspectAdditionalNetwork links(List<String> links)
    • addLinksItem

      public InspectAdditionalNetwork addLinksItem(String linksItem)
    • getLinks

      @Nullable public List<String> getLinks()
      Links is presently unused and maintained exclusively for compatibility.
      Returns:
      links
    • setLinks

      public void setLinks(List<String> links)
    • macAddress

      public InspectAdditionalNetwork 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)
    • networkID

      public InspectAdditionalNetwork networkID(String networkID)
    • getNetworkID

      @Nullable public String getNetworkID()
      Name of the network we're connecting to.
      Returns:
      networkID
    • setNetworkID

      public void setNetworkID(String networkID)
    • secondaryIPAddresses

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

      public InspectAdditionalNetwork 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 InspectAdditionalNetwork secondaryIPv6Addresses(List<Address> secondaryIPv6Addresses)
    • addSecondaryIPv6AddressesItem

      public InspectAdditionalNetwork 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 InspectAdditionalNetwork
    • fromJson

      public static InspectAdditionalNetwork fromJson(String jsonString) throws IOException
      Create an instance of InspectAdditionalNetwork given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of InspectAdditionalNetwork
      Throws:
      IOException - if the JSON string is invalid with respect to InspectAdditionalNetwork
    • toJson

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