Class V1alpha3CounterSet

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1alpha3CounterSet extends Object
CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
  • Field Details

  • Constructor Details

    • V1alpha3CounterSet

      public V1alpha3CounterSet()
  • Method Details

    • counters

      public V1alpha3CounterSet counters(Map<String,V1alpha3Counter> counters)
    • putCountersItem

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

      public Map<String,V1alpha3Counter> getCounters()
      Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32.
      Returns:
      counters
    • setCounters

      public void setCounters(Map<String,V1alpha3Counter> counters)
    • name

      public V1alpha3CounterSet name(String name)
    • getName

      public String getName()
      CounterSet is the name of the set from which the counters defined will be consumed.
      Returns:
      name
    • setName

      public void setName(String name)
    • 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