Class ContainerCgroupConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerCgroupConfig
@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 ContainerCgroupConfig
extends Object
ContainerCgroupConfig contains configuration information about a container's cgroups.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncgroupParent(String cgroupParent) cgroupsMode(String cgroupsMode) booleanstatic ContainerCgroupConfigCreate an instance of ContainerCgroupConfig given an JSON stringGet cgroupnsCgroupParent is the container's Cgroup parent.CgroupsMode sets a policy for how cgroups will be created for the container, including the ability to disable creation entirely.inthashCode()voidsetCgroupns(Namespace cgroupns) voidsetCgroupParent(String cgroupParent) voidsetCgroupsMode(String cgroupsMode) toJson()Convert an instance of ContainerCgroupConfig 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_CGROUP_PARENT
- See Also:
-
SERIALIZED_NAME_CGROUPNS
- See Also:
-
SERIALIZED_NAME_CGROUPS_MODE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ContainerCgroupConfig
public ContainerCgroupConfig()
-
-
Method Details
-
cgroupParent
-
getCgroupParent
CgroupParent is the container's Cgroup parent. If not set, the default for the current cgroup driver will be used. Optional.- Returns:
- cgroupParent
-
setCgroupParent
-
cgroupns
-
getCgroupns
Get cgroupns- Returns:
- cgroupns
-
setCgroupns
-
cgroupsMode
-
getCgroupsMode
CgroupsMode sets a policy for how cgroups will be created for the container, including the ability to disable creation entirely. Optional.- Returns:
- cgroupsMode
-
setCgroupsMode
-
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 ContainerCgroupConfig
-
fromJson
Create an instance of ContainerCgroupConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ContainerCgroupConfig
- Throws:
IOException- if the JSON string is invalid with respect to ContainerCgroupConfig
-
toJson
Convert an instance of ContainerCgroupConfig to an JSON string- Returns:
- JSON string
-