Class InspectLogConfig

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class InspectLogConfig extends Object implements Serializable
InspectLogConfig holds information about a container's configured log driver
See Also:
  • Field Details

  • Constructor Details

    • InspectLogConfig

      public InspectLogConfig()
  • Method Details

    • config

      public InspectLogConfig config(Map<String,String> config)
    • putConfigItem

      public InspectLogConfig putConfigItem(String key, String configItem)
    • getConfig

      @Nullable public Map<String,String> getConfig()
      Get config
      Returns:
      config
    • setConfig

      public void setConfig(Map<String,String> config)
    • path

      public InspectLogConfig path(String path)
    • getPath

      @Nullable public String getPath()
      Path specifies a path to the log file
      Returns:
      path
    • setPath

      public void setPath(String path)
    • size

      public InspectLogConfig size(String size)
    • getSize

      @Nullable public String getSize()
      Size specifies a maximum size of the container log
      Returns:
      size
    • setSize

      public void setSize(String size)
    • tag

      public InspectLogConfig tag(String tag)
    • getTag

      @Nullable public String getTag()
      Tag specifies a custom log tag for the container
      Returns:
      tag
    • setTag

      public void setTag(String tag)
    • type

      public InspectLogConfig type(String type)
    • getType

      @Nullable public String getType()
      Get type
      Returns:
      type
    • setType

      public void setType(String type)
    • 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 InspectLogConfig
    • fromJson

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

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