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:
  • Field Details

  • Constructor Details

    • PodResourceConfig

      public PodResourceConfig()
  • Method Details

    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      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
    • toJson

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