Class V1alpha3DeviceCounterConsumption

java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1alpha3DeviceCounterConsumption extends Object
DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
  • Field Details

  • Constructor Details

    • V1alpha3DeviceCounterConsumption

      public V1alpha3DeviceCounterConsumption()
  • Method Details

    • counterSet

      public V1alpha3DeviceCounterConsumption counterSet(@Nonnull String counterSet)
    • getCounterSet

      @Nonnull public String getCounterSet()
      CounterSet defines the set from which the counters defined will be consumed.
      Returns:
      counterSet
    • setCounterSet

      public void setCounterSet(@Nonnull String counterSet)
    • counters

      public V1alpha3DeviceCounterConsumption counters(@Nonnull Map<String,V1alpha3Counter> counters)
    • putCountersItem

      public V1alpha3DeviceCounterConsumption putCountersItem(String key, V1alpha3Counter countersItem)
    • getCounters

      @Nonnull public Map<String,V1alpha3Counter> getCounters()
      Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
      Returns:
      counters
    • setCounters

      public void setCounters(@Nonnull Map<String,V1alpha3Counter> counters)
    • 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
    • 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 V1alpha3DeviceCounterConsumption
    • fromJson

      public static V1alpha3DeviceCounterConsumption fromJson(String jsonString) throws IOException
      Create an instance of V1alpha3DeviceCounterConsumption given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1alpha3DeviceCounterConsumption
      Throws:
      IOException - if the JSON string is invalid with respect to V1alpha3DeviceCounterConsumption
    • toJson

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