Class ContainerCgroupConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerCgroupConfig
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ContainerCgroupConfig
extends Object
implements Serializable
ContainerCgroupConfig contains configuration information about a container's cgroups.
- See Also:
-
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 string@Valid NamespaceGet 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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
validateJsonObject
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 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
-