Class PodResourceConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.PodResourceConfig
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PodResourceConfig
extends Object
implements Serializable
PodResourceConfig
- See Also:
-
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 --cpus@Valid LinuxResourcesGet resourceLimits@Valid Map<String,LinuxThrottleDevice> ThrottleReadBpsDevice 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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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 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
-