Class ContainerJSON

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ContainerJSON extends Object implements Serializable
ContainerJSON is newly used struct along with MountPoint
See Also:
  • Field Details

  • Constructor Details

    • ContainerJSON

      public ContainerJSON()
  • Method Details

    • appArmorProfile

      public ContainerJSON appArmorProfile(String appArmorProfile)
    • getAppArmorProfile

      @Nullable public String getAppArmorProfile()
      Get appArmorProfile
      Returns:
      appArmorProfile
    • setAppArmorProfile

      public void setAppArmorProfile(String appArmorProfile)
    • args

      public ContainerJSON args(List<String> args)
    • addArgsItem

      public ContainerJSON addArgsItem(String argsItem)
    • getArgs

      @Nullable public List<String> getArgs()
      Get args
      Returns:
      args
    • setArgs

      public void setArgs(List<String> args)
    • config

      public ContainerJSON config(Config config)
    • getConfig

      @Nullable @Valid public @Valid Config getConfig()
      Get config
      Returns:
      config
    • setConfig

      public void setConfig(Config config)
    • created

      public ContainerJSON created(String created)
    • getCreated

      @Nullable public String getCreated()
      Get created
      Returns:
      created
    • setCreated

      public void setCreated(String created)
    • driver

      public ContainerJSON driver(String driver)
    • getDriver

      @Nullable public String getDriver()
      Get driver
      Returns:
      driver
    • setDriver

      public void setDriver(String driver)
    • execIDs

      public ContainerJSON execIDs(List<String> execIDs)
    • addExecIDsItem

      public ContainerJSON addExecIDsItem(String execIDsItem)
    • getExecIDs

      @Nullable public List<String> getExecIDs()
      Get execIDs
      Returns:
      execIDs
    • setExecIDs

      public void setExecIDs(List<String> execIDs)
    • graphDriver

      public ContainerJSON graphDriver(GraphDriverData graphDriver)
    • getGraphDriver

      @Nullable @Valid public @Valid GraphDriverData getGraphDriver()
      Get graphDriver
      Returns:
      graphDriver
    • setGraphDriver

      public void setGraphDriver(GraphDriverData graphDriver)
    • hostConfig

      public ContainerJSON hostConfig(HostConfig hostConfig)
    • getHostConfig

      @Nullable @Valid public @Valid HostConfig getHostConfig()
      Get hostConfig
      Returns:
      hostConfig
    • setHostConfig

      public void setHostConfig(HostConfig hostConfig)
    • hostnamePath

      public ContainerJSON hostnamePath(String hostnamePath)
    • getHostnamePath

      @Nullable public String getHostnamePath()
      Get hostnamePath
      Returns:
      hostnamePath
    • setHostnamePath

      public void setHostnamePath(String hostnamePath)
    • hostsPath

      public ContainerJSON hostsPath(String hostsPath)
    • getHostsPath

      @Nullable public String getHostsPath()
      Get hostsPath
      Returns:
      hostsPath
    • setHostsPath

      public void setHostsPath(String hostsPath)
    • id

      public ContainerJSON id(String id)
    • getId

      @Nullable public String getId()
      Get id
      Returns:
      id
    • setId

      public void setId(String id)
    • image

      public ContainerJSON image(String image)
    • getImage

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

      public void setImage(String image)
    • logPath

      public ContainerJSON logPath(String logPath)
    • getLogPath

      @Nullable public String getLogPath()
      Get logPath
      Returns:
      logPath
    • setLogPath

      public void setLogPath(String logPath)
    • mountLabel

      public ContainerJSON mountLabel(String mountLabel)
    • getMountLabel

      @Nullable public String getMountLabel()
      Get mountLabel
      Returns:
      mountLabel
    • setMountLabel

      public void setMountLabel(String mountLabel)
    • mounts

      public ContainerJSON mounts(List<MountPoint> mounts)
    • addMountsItem

      public ContainerJSON addMountsItem(MountPoint mountsItem)
    • getMounts

      @Nullable @Valid public @Valid List<MountPoint> getMounts()
      Get mounts
      Returns:
      mounts
    • setMounts

      public void setMounts(List<MountPoint> mounts)
    • name

      public ContainerJSON name(String name)
    • getName

      @Nullable public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(String name)
    • networkSettings

      public ContainerJSON networkSettings(NetworkSettings networkSettings)
    • getNetworkSettings

      @Nullable @Valid public @Valid NetworkSettings getNetworkSettings()
      Get networkSettings
      Returns:
      networkSettings
    • setNetworkSettings

      public void setNetworkSettings(NetworkSettings networkSettings)
    • node

      public ContainerJSON node(ContainerNode node)
    • getNode

      @Nullable @Valid public @Valid ContainerNode getNode()
      Get node
      Returns:
      node
    • setNode

      public void setNode(ContainerNode node)
    • path

      public ContainerJSON path(String path)
    • getPath

      @Nullable public String getPath()
      Get path
      Returns:
      path
    • setPath

      public void setPath(String path)
    • platform

      public ContainerJSON platform(String platform)
    • getPlatform

      @Nullable public String getPlatform()
      Get platform
      Returns:
      platform
    • setPlatform

      public void setPlatform(String platform)
    • processLabel

      public ContainerJSON processLabel(String processLabel)
    • getProcessLabel

      @Nullable public String getProcessLabel()
      Get processLabel
      Returns:
      processLabel
    • setProcessLabel

      public void setProcessLabel(String processLabel)
    • resolvConfPath

      public ContainerJSON resolvConfPath(String resolvConfPath)
    • getResolvConfPath

      @Nullable public String getResolvConfPath()
      Get resolvConfPath
      Returns:
      resolvConfPath
    • setResolvConfPath

      public void setResolvConfPath(String resolvConfPath)
    • restartCount

      public ContainerJSON restartCount(Long restartCount)
    • getRestartCount

      @Nullable public Long getRestartCount()
      Get restartCount
      Returns:
      restartCount
    • setRestartCount

      public void setRestartCount(Long restartCount)
    • sizeRootFs

      public ContainerJSON sizeRootFs(Long sizeRootFs)
    • getSizeRootFs

      @Nullable public Long getSizeRootFs()
      Get sizeRootFs
      Returns:
      sizeRootFs
    • setSizeRootFs

      public void setSizeRootFs(Long sizeRootFs)
    • sizeRw

      public ContainerJSON sizeRw(Long sizeRw)
    • getSizeRw

      @Nullable public Long getSizeRw()
      Get sizeRw
      Returns:
      sizeRw
    • setSizeRw

      public void setSizeRw(Long sizeRw)
    • state

      public ContainerJSON state(ContainerState state)
    • getState

      @Nullable @Valid public @Valid ContainerState getState()
      Get state
      Returns:
      state
    • setState

      public void setState(ContainerState state)
    • 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 ContainerJSON
    • fromJson

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

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