Class LogConfigLibpod

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class LogConfigLibpod extends Object
LogConfig describes the logging characteristics for a container
  • Field Details

  • Constructor Details

    • LogConfigLibpod

      public LogConfigLibpod()
  • Method Details

    • driver

      public LogConfigLibpod driver(String driver)
    • getDriver

      @Nullable public String getDriver()
      LogDriver is the container's log driver. Optional.
      Returns:
      driver
    • setDriver

      public void setDriver(String driver)
    • options

      public LogConfigLibpod options(Map<String,String> options)
    • putOptionsItem

      public LogConfigLibpod putOptionsItem(String key, String optionsItem)
    • getOptions

      @Nullable public Map<String,String> getOptions()
      A set of options to accompany the log driver. Optional.
      Returns:
      options
    • setOptions

      public void setOptions(Map<String,String> options)
    • path

      public LogConfigLibpod path(String path)
    • getPath

      @Nullable public String getPath()
      LogPath is the path the container's logs will be stored at. Only available if LogDriver is set to \"json-file\" or \"k8s-file\". Optional.
      Returns:
      path
    • setPath

      public void setPath(String path)
    • size

      public LogConfigLibpod size(Long size)
    • getSize

      @Nullable public Long getSize()
      Size is the maximum size of the log file Optional.
      Returns:
      size
    • setSize

      public void setSize(Long size)
    • 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
    • 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 LogConfigLibpod
    • fromJson

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

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