Class V1beta1CounterSet

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1beta1CounterSet

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1beta1CounterSet 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

  • Method Details

    • getCounters

      public Map<String,@Valid V1beta1Counter> getCounters()
      Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters is 32.
      Returns:
      the counters property value
    • setCounters

      public void setCounters(Map<String,@Valid V1beta1Counter> counters)
      Set the counters property value
      Parameters:
      counters - property value to set
    • counters

      public V1beta1CounterSet counters(Map<String,@Valid V1beta1Counter> counters)
      Set counters in a chainable fashion.
      Returns:
      The same instance of V1beta1CounterSet for chaining.
    • putCountersItem

      public V1beta1CounterSet putCountersItem(String key, V1beta1Counter countersItem)
      Set the value for the key for the counters map property in a chainable fashion.
      Returns:
      The same instance of V1beta1CounterSet for chaining.
    • getName

      public String getName()
      Name defines the name of the counter set. It must be a DNS label.
      Returns:
      the name property value
    • setName

      public void setName(String name)
      Set the name property value
      Parameters:
      name - property value to set
    • name

      public V1beta1CounterSet name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1beta1CounterSet for chaining.
    • 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