Class LogConfigLibpod
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LogConfigLibpod
@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 LogConfigLibpod
extends Object
LogConfig describes the logging characteristics for a container
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LogConfigLibpodCreate an instance of LogConfigLibpod given an JSON stringLogDriver is the container's log driver.A set of options to accompany the log driver.getPath()LogPath is the path the container's logs will be stored at.getSize()Size is the maximum size of the log file Optional.inthashCode()putOptionsItem(String key, String optionsItem) voidvoidsetOptions(Map<String, String> options) voidvoidtoJson()Convert an instance of LogConfigLibpod to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LogConfigLibpod
public LogConfigLibpod()
-
-
Method Details
-
validateJsonElement
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
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
-
driver
-
getDriver
LogDriver is the container's log driver. Optional.- Returns:
- driver
-
setDriver
-
options
-
putOptionsItem
-
getOptions
A set of options to accompany the log driver. Optional.- Returns:
- options
-
setOptions
-
path
-
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
-
size
-
getSize
Size is the maximum size of the log file Optional.- Returns:
- size
-
setSize
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of LogConfigLibpod to an JSON string- Returns:
- JSON string
-