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

@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 Config extends Object
It should hold only portable information about the container. Here, \"portable\" means \"independent from the host we are running on\". Non-portable information *should* appear in HostConfig. All fields added to this struct must be marked `omitempty` to keep getting predictable hashes from the old `v1Compatibility` configuration.
  • Field Details

  • Constructor Details

    • Config

      public Config()
  • 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 Config
    • fromJson

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

      public Config argsEscaped(Boolean argsEscaped)
    • getArgsEscaped

      @Nullable public Boolean getArgsEscaped()
      Get argsEscaped
      Returns:
      argsEscaped
    • setArgsEscaped

      public void setArgsEscaped(Boolean argsEscaped)
    • attachStderr

      public Config attachStderr(Boolean attachStderr)
    • getAttachStderr

      @Nullable public Boolean getAttachStderr()
      Get attachStderr
      Returns:
      attachStderr
    • setAttachStderr

      public void setAttachStderr(Boolean attachStderr)
    • attachStdin

      public Config attachStdin(Boolean attachStdin)
    • getAttachStdin

      @Nullable public Boolean getAttachStdin()
      Get attachStdin
      Returns:
      attachStdin
    • setAttachStdin

      public void setAttachStdin(Boolean attachStdin)
    • attachStdout

      public Config attachStdout(Boolean attachStdout)
    • getAttachStdout

      @Nullable public Boolean getAttachStdout()
      Get attachStdout
      Returns:
      attachStdout
    • setAttachStdout

      public void setAttachStdout(Boolean attachStdout)
    • cmd

      public Config cmd(List<String> cmd)
    • addCmdItem

      public Config addCmdItem(String cmdItem)
    • getCmd

      @Nullable public List<String> getCmd()
      We need to override the json decoder to accept both options.
      Returns:
      cmd
    • setCmd

      public void setCmd(List<String> cmd)
    • domainname

      public Config domainname(String domainname)
    • getDomainname

      @Nullable public String getDomainname()
      Get domainname
      Returns:
      domainname
    • setDomainname

      public void setDomainname(String domainname)
    • entrypoint

      public Config entrypoint(List<String> entrypoint)
    • addEntrypointItem

      public Config addEntrypointItem(String entrypointItem)
    • getEntrypoint

      @Nullable public List<String> getEntrypoint()
      We need to override the json decoder to accept both options.
      Returns:
      entrypoint
    • setEntrypoint

      public void setEntrypoint(List<String> entrypoint)
    • env

      public Config env(List<String> env)
    • addEnvItem

      public Config addEnvItem(String envItem)
    • getEnv

      @Nullable public List<String> getEnv()
      Get env
      Returns:
      env
    • setEnv

      public void setEnv(List<String> env)
    • exposedPorts

      public Config exposedPorts(Map<String,Object> exposedPorts)
    • putExposedPortsItem

      public Config putExposedPortsItem(String key, Object exposedPortsItem)
    • getExposedPorts

      @Nullable public Map<String,Object> getExposedPorts()
      PortSet is a collection of structs indexed by Port
      Returns:
      exposedPorts
    • setExposedPorts

      public void setExposedPorts(Map<String,Object> exposedPorts)
    • healthcheck

      public Config healthcheck(HealthcheckConfig healthcheck)
    • getHealthcheck

      @Nullable @Valid public @Valid HealthcheckConfig getHealthcheck()
      Get healthcheck
      Returns:
      healthcheck
    • setHealthcheck

      public void setHealthcheck(HealthcheckConfig healthcheck)
    • hostname

      public Config hostname(String hostname)
    • getHostname

      @Nullable public String getHostname()
      Get hostname
      Returns:
      hostname
    • setHostname

      public void setHostname(String hostname)
    • image

      public Config image(String image)
    • getImage

      @Nullable public String getImage()
      Get image
      Returns:
      image
    • setImage

      public void setImage(String image)
    • labels

      public Config labels(Map<String,String> labels)
    • putLabelsItem

      public Config putLabelsItem(String key, String labelsItem)
    • getLabels

      @Nullable public Map<String,String> getLabels()
      Get labels
      Returns:
      labels
    • setLabels

      public void setLabels(Map<String,String> labels)
    • macAddress

      public Config macAddress(String macAddress)
    • getMacAddress

      @Nullable public String getMacAddress()
      Mac Address of the container. Deprecated: this field is deprecated since API v1.44. Use EndpointSettings.MacAddress instead.
      Returns:
      macAddress
    • setMacAddress

      public void setMacAddress(String macAddress)
    • networkDisabled

      public Config networkDisabled(Boolean networkDisabled)
    • getNetworkDisabled

      @Nullable public Boolean getNetworkDisabled()
      Get networkDisabled
      Returns:
      networkDisabled
    • setNetworkDisabled

      public void setNetworkDisabled(Boolean networkDisabled)
    • onBuild

      public Config onBuild(List<String> onBuild)
    • addOnBuildItem

      public Config addOnBuildItem(String onBuildItem)
    • getOnBuild

      @Nullable public List<String> getOnBuild()
      Get onBuild
      Returns:
      onBuild
    • setOnBuild

      public void setOnBuild(List<String> onBuild)
    • openStdin

      public Config openStdin(Boolean openStdin)
    • getOpenStdin

      @Nullable public Boolean getOpenStdin()
      Get openStdin
      Returns:
      openStdin
    • setOpenStdin

      public void setOpenStdin(Boolean openStdin)
    • shell

      public Config shell(List<String> shell)
    • addShellItem

      public Config addShellItem(String shellItem)
    • getShell

      @Nullable public List<String> getShell()
      We need to override the json decoder to accept both options.
      Returns:
      shell
    • setShell

      public void setShell(List<String> shell)
    • stdinOnce

      public Config stdinOnce(Boolean stdinOnce)
    • getStdinOnce

      @Nullable public Boolean getStdinOnce()
      Get stdinOnce
      Returns:
      stdinOnce
    • setStdinOnce

      public void setStdinOnce(Boolean stdinOnce)
    • stopSignal

      public Config stopSignal(String stopSignal)
    • getStopSignal

      @Nullable public String getStopSignal()
      Get stopSignal
      Returns:
      stopSignal
    • setStopSignal

      public void setStopSignal(String stopSignal)
    • stopTimeout

      public Config stopTimeout(Long stopTimeout)
    • getStopTimeout

      @Nullable public Long getStopTimeout()
      Get stopTimeout
      Returns:
      stopTimeout
    • setStopTimeout

      public void setStopTimeout(Long stopTimeout)
    • tty

      public Config tty(Boolean tty)
    • getTty

      @Nullable public Boolean getTty()
      Get tty
      Returns:
      tty
    • setTty

      public void setTty(Boolean tty)
    • user

      public Config user(String user)
    • getUser

      @Nullable public String getUser()
      Get user
      Returns:
      user
    • setUser

      public void setUser(String user)
    • volumes

      public Config volumes(Map<String,Object> volumes)
    • putVolumesItem

      public Config putVolumesItem(String key, Object volumesItem)
    • getVolumes

      @Nullable public Map<String,Object> getVolumes()
      Get volumes
      Returns:
      volumes
    • setVolumes

      public void setVolumes(Map<String,Object> volumes)
    • workingDir

      public Config workingDir(String workingDir)
    • getWorkingDir

      @Nullable public String getWorkingDir()
      Get workingDir
      Returns:
      workingDir
    • setWorkingDir

      public void setWorkingDir(String workingDir)
    • 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 Config to an JSON string
      Returns:
      JSON string