Class InspectLogConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectLogConfig
@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 InspectLogConfig
extends Object
InspectLogConfig holds information about a container's configured log driver
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic InspectLogConfigCreate an instance of InspectLogConfig given an JSON stringGet configgetPath()Path specifies a path to the log filegetSize()Size specifies a maximum size of the container loggetTag()Tag specifies a custom log tag for the containergetType()Get typeinthashCode()putConfigItem(String key, String configItem) voidvoidvoidvoidvoidtoJson()Convert an instance of InspectLogConfig 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_CONFIG
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
SERIALIZED_NAME_TAG
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InspectLogConfig
public InspectLogConfig()
-
-
Method Details
-
config
-
putConfigItem
-
getConfig
Get config- Returns:
- config
-
setConfig
-
path
-
getPath
Path specifies a path to the log file- Returns:
- path
-
setPath
-
size
-
getSize
Size specifies a maximum size of the container log- Returns:
- size
-
setSize
-
tag
-
getTag
Tag specifies a custom log tag for the container- Returns:
- tag
-
setTag
-
type
-
getType
Get type- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-
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 InspectLogConfig
-
fromJson
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
Convert an instance of InspectLogConfig to an JSON string- Returns:
- JSON string
-