Class PodResourceConfig

java.lang.Object
io.github.alersrt.pod4j.openapi.model.PodResourceConfig

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class PodResourceConfig extends Object
PodResourceConfig
  • Field Details

  • Constructor Details

    • PodResourceConfig

      public PodResourceConfig()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static PodResourceConfig fromJson(String jsonString) throws IOException
      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
    • cpuPeriod

      public PodResourceConfig cpuPeriod(Integer cpuPeriod)
    • getCpuPeriod

      @Nullable public Integer getCpuPeriod()
      CPU period of the cpuset, determined by --cpus
      Returns:
      cpuPeriod
    • setCpuPeriod

      public void setCpuPeriod(Integer cpuPeriod)
    • cpuQuota

      public PodResourceConfig cpuQuota(Long cpuQuota)
    • getCpuQuota

      @Nullable public Long getCpuQuota()
      CPU quota of the cpuset, determined by --cpus
      Returns:
      cpuQuota
    • setCpuQuota

      public void setCpuQuota(Long cpuQuota)
    • resourceLimits

      public PodResourceConfig resourceLimits(LinuxResources resourceLimits)
    • getResourceLimits

      @Nullable @Valid public @Valid LinuxResources getResourceLimits()
      Get resourceLimits
      Returns:
      resourceLimits
    • setResourceLimits

      public void setResourceLimits(LinuxResources resourceLimits)
    • throttleReadBpsDevice

      public PodResourceConfig throttleReadBpsDevice(Map<String,LinuxThrottleDevice> throttleReadBpsDevice)
    • putThrottleReadBpsDeviceItem

      public PodResourceConfig putThrottleReadBpsDeviceItem(String key, LinuxThrottleDevice throttleReadBpsDeviceItem)
    • getThrottleReadBpsDevice

      @Nullable @Valid public @Valid Map<String,LinuxThrottleDevice> getThrottleReadBpsDevice()
      ThrottleReadBpsDevice contains the rate at which the devices in the pod can be read from/accessed
      Returns:
      throttleReadBpsDevice
    • setThrottleReadBpsDevice

      public void setThrottleReadBpsDevice(Map<String,LinuxThrottleDevice> throttleReadBpsDevice)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public String toJson()
      Convert an instance of PodResourceConfig to an JSON string
      Returns:
      JSON string