Class PodResourceConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.PodResourceConfig
@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 PodResourceConfig
extends Object
PodResourceConfig
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PodResourceConfigCreate an instance of PodResourceConfig given an JSON stringCPU period of the cpuset, determined by --cpusCPU quota of the cpuset, determined by --cpusGet resourceLimitsThrottleReadBpsDevice contains the rate at which the devices in the pod can be read from/accessedinthashCode()putThrottleReadBpsDeviceItem(String key, LinuxThrottleDevice throttleReadBpsDeviceItem) resourceLimits(LinuxResources resourceLimits) voidsetCpuPeriod(Integer cpuPeriod) voidsetCpuQuota(Long cpuQuota) voidsetResourceLimits(LinuxResources resourceLimits) voidsetThrottleReadBpsDevice(Map<String, LinuxThrottleDevice> throttleReadBpsDevice) throttleReadBpsDevice(Map<String, LinuxThrottleDevice> throttleReadBpsDevice) toJson()Convert an instance of PodResourceConfig 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_CPU_PERIOD
- See Also:
-
SERIALIZED_NAME_CPU_QUOTA
- See Also:
-
SERIALIZED_NAME_RESOURCE_LIMITS
- See Also:
-
SERIALIZED_NAME_THROTTLE_READ_BPS_DEVICE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PodResourceConfig
public PodResourceConfig()
-
-
Method Details
-
cpuPeriod
-
getCpuPeriod
CPU period of the cpuset, determined by --cpus- Returns:
- cpuPeriod
-
setCpuPeriod
-
cpuQuota
-
getCpuQuota
CPU quota of the cpuset, determined by --cpus- Returns:
- cpuQuota
-
setCpuQuota
-
resourceLimits
-
getResourceLimits
Get resourceLimits- Returns:
- resourceLimits
-
setResourceLimits
-
throttleReadBpsDevice
public PodResourceConfig throttleReadBpsDevice(Map<String, LinuxThrottleDevice> throttleReadBpsDevice) -
putThrottleReadBpsDeviceItem
public PodResourceConfig putThrottleReadBpsDeviceItem(String key, LinuxThrottleDevice throttleReadBpsDeviceItem) -
getThrottleReadBpsDevice
ThrottleReadBpsDevice contains the rate at which the devices in the pod can be read from/accessed- Returns:
- throttleReadBpsDevice
-
setThrottleReadBpsDevice
-
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 PodResourceConfig
-
fromJson
Create an instance of PodResourceConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PodResourceConfig
- Throws:
IOException- if the JSON string is invalid with respect to PodResourceConfig
-
toJson
Convert an instance of PodResourceConfig to an JSON string- Returns:
- JSON string
-