Class InspectPodInfraConfig

java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectPodInfraConfig

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class InspectPodInfraConfig extends Object
InspectPodInfraConfig contains the configuration of the pod's infra container.
  • Field Details

  • Constructor Details

    • InspectPodInfraConfig

      public InspectPodInfraConfig()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 InspectPodInfraConfig
    • fromJson

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

      public InspectPodInfraConfig dnSOption(List<String> dnSOption)
    • addDnSOptionItem

      public InspectPodInfraConfig addDnSOptionItem(String dnSOptionItem)
    • getDnSOption

      @Nullable public List<String> getDnSOption()
      DNSOption is a set of DNS options that will be used by the infra container's resolv.conf and shared with the remainder of the pod.
      Returns:
      dnSOption
    • setDnSOption

      public void setDnSOption(List<String> dnSOption)
    • dnSSearch

      public InspectPodInfraConfig dnSSearch(List<String> dnSSearch)
    • addDnSSearchItem

      public InspectPodInfraConfig addDnSSearchItem(String dnSSearchItem)
    • getDnSSearch

      @Nullable public List<String> getDnSSearch()
      DNSSearch is a set of DNS search domains that will be used by the infra container's resolv.conf and shared with the remainder of the pod.
      Returns:
      dnSSearch
    • setDnSSearch

      public void setDnSSearch(List<String> dnSSearch)
    • dnSServer

      public InspectPodInfraConfig dnSServer(List<String> dnSServer)
    • addDnSServerItem

      public InspectPodInfraConfig addDnSServerItem(String dnSServerItem)
    • getDnSServer

      @Nullable public List<String> getDnSServer()
      DNSServer is a set of DNS Servers that will be used by the infra container's resolv.conf and shared with the remainder of the pod.
      Returns:
      dnSServer
    • setDnSServer

      public void setDnSServer(List<String> dnSServer)
    • hostAdd

      public InspectPodInfraConfig hostAdd(List<String> hostAdd)
    • addHostAddItem

      public InspectPodInfraConfig addHostAddItem(String hostAddItem)
    • getHostAdd

      @Nullable public List<String> getHostAdd()
      HostAdd adds a number of hosts to the infra container's resolv.conf which will be shared with the rest of the pod.
      Returns:
      hostAdd
    • setHostAdd

      public void setHostAdd(List<String> hostAdd)
    • hostNetwork

      public InspectPodInfraConfig hostNetwork(Boolean hostNetwork)
    • getHostNetwork

      @Nullable public Boolean getHostNetwork()
      HostNetwork is whether the infra container (and thus the whole pod) will use the host's network and not create a network namespace.
      Returns:
      hostNetwork
    • setHostNetwork

      public void setHostNetwork(Boolean hostNetwork)
    • networkOptions

      public InspectPodInfraConfig networkOptions(Map<String,List<String>> networkOptions)
    • putNetworkOptionsItem

      public InspectPodInfraConfig putNetworkOptionsItem(String key, List<String> networkOptionsItem)
    • getNetworkOptions

      @Nullable @Valid public @Valid Map<String,List<String>> getNetworkOptions()
      NetworkOptions are additional options for each network
      Returns:
      networkOptions
    • setNetworkOptions

      public void setNetworkOptions(Map<String,List<String>> networkOptions)
    • networks

      public InspectPodInfraConfig networks(List<String> networks)
    • addNetworksItem

      public InspectPodInfraConfig addNetworksItem(String networksItem)
    • getNetworks

      @Nullable public List<String> getNetworks()
      Networks is a list of networks the pod will join.
      Returns:
      networks
    • setNetworks

      public void setNetworks(List<String> networks)
    • noManageHosts

      public InspectPodInfraConfig noManageHosts(Boolean noManageHosts)
    • getNoManageHosts

      @Nullable public Boolean getNoManageHosts()
      NoManageHosts indicates that the pod will not manage /etc/hosts and instead each container will handle their own.
      Returns:
      noManageHosts
    • setNoManageHosts

      public void setNoManageHosts(Boolean noManageHosts)
    • noManageResolvConf

      public InspectPodInfraConfig noManageResolvConf(Boolean noManageResolvConf)
    • getNoManageResolvConf

      @Nullable public Boolean getNoManageResolvConf()
      NoManageResolvConf indicates that the pod will not manage resolv.conf and instead each container will handle their own.
      Returns:
      noManageResolvConf
    • setNoManageResolvConf

      public void setNoManageResolvConf(Boolean noManageResolvConf)
    • portBindings

      public InspectPodInfraConfig portBindings(Map<String,List<@Valid InspectHostPort>> portBindings)
    • putPortBindingsItem

      public InspectPodInfraConfig putPortBindingsItem(String key, List<@Valid InspectHostPort> portBindingsItem)
    • getPortBindings

      @Nullable @Valid public @Valid Map<String,List<@Valid InspectHostPort>> getPortBindings()
      PortBindings are ports that will be forwarded to the infra container and then shared with the pod.
      Returns:
      portBindings
    • setPortBindings

      public void setPortBindings(Map<String,List<@Valid InspectHostPort>> portBindings)
    • staticIP

      public InspectPodInfraConfig staticIP(String staticIP)
    • getStaticIP

      @Nullable public String getStaticIP()
      StaticIP is a static IPv4 that will be assigned to the infra container and then used by the pod.
      Returns:
      staticIP
    • setStaticIP

      public void setStaticIP(String staticIP)
    • staticMAC

      public InspectPodInfraConfig staticMAC(String staticMAC)
    • getStaticMAC

      @Nullable public String getStaticMAC()
      StaticMAC is a static MAC address that will be assigned to the infra container and then used by the pod.
      Returns:
      staticMAC
    • setStaticMAC

      public void setStaticMAC(String staticMAC)
    • cpuPeriod

      public InspectPodInfraConfig cpuPeriod(Integer cpuPeriod)
    • getCpuPeriod

      @Nullable public Integer getCpuPeriod()
      CPUPeriod contains the CPU period of the pod
      Returns:
      cpuPeriod
    • setCpuPeriod

      public void setCpuPeriod(Integer cpuPeriod)
    • cpuQuota

      public InspectPodInfraConfig cpuQuota(Long cpuQuota)
    • getCpuQuota

      @Nullable public Long getCpuQuota()
      CPUQuota contains the CPU quota of the pod
      Returns:
      cpuQuota
    • setCpuQuota

      public void setCpuQuota(Long cpuQuota)
    • cpusetCpus

      public InspectPodInfraConfig cpusetCpus(String cpusetCpus)
    • getCpusetCpus

      @Nullable public String getCpusetCpus()
      CPUSetCPUs contains linux specific CPU data for the container
      Returns:
      cpusetCpus
    • setCpusetCpus

      public void setCpusetCpus(String cpusetCpus)
    • pidNs

      public InspectPodInfraConfig pidNs(String pidNs)
    • getPidNs

      @Nullable public String getPidNs()
      Pid is the PID namespace mode of the pod's infra container
      Returns:
      pidNs
    • setPidNs

      public void setPidNs(String pidNs)
    • userns

      public InspectPodInfraConfig userns(String userns)
    • getUserns

      @Nullable public String getUserns()
      UserNS is the usernamespace that all the containers in the pod will join.
      Returns:
      userns
    • setUserns

      public void setUserns(String userns)
    • utsNs

      public InspectPodInfraConfig utsNs(String utsNs)
    • getUtsNs

      @Nullable public String getUtsNs()
      UtsNS is the uts namespace that all containers in the pod will join
      Returns:
      utsNs
    • setUtsNs

      public void setUtsNs(String utsNs)
    • 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
    • toJson

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