Class V1alpha3CounterSet
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha3CounterSet
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionV1alpha3CounterSet
(Map<String, @Valid V1alpha3Counter> counters, String name) -
Method Summary
Modifier and TypeMethodDescriptioncounters
(Map<String, @Valid V1alpha3Counter> counters) Set counters in a chainable fashion.boolean
Map<String,
@Valid V1alpha3Counter> Counters defines the counters that will be consumed by the device.getName()
CounterSet is the name of the set from which the counters defined will be consumed.int
hashCode()
Set name in a chainable fashion.putCountersItem
(String key, V1alpha3Counter countersItem) Set the value for the key for the counters map property in a chainable fashion.void
setCounters
(Map<String, @Valid V1alpha3Counter> counters) Set the counters property valuevoid
Set the name property valuetoString()
-
Field Details
-
JSON_PROPERTY_COUNTERS
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
V1alpha3CounterSet
-
-
Method Details
-
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:
- the counters property value
-
setCounters
Set the counters property value- Parameters:
counters
- property value to set
-
counters
Set counters in a chainable fashion.- Returns:
- The same instance of V1alpha3CounterSet for chaining.
-
putCountersItem
Set the value for the key for the counters map property in a chainable fashion.- Returns:
- The same instance of V1alpha3CounterSet for chaining.
-
getName
CounterSet is the name of the set from which the counters defined will be consumed.- Returns:
- the name property value
-
setName
Set the name property value- Parameters:
name
- property value to set
-
name
Set name in a chainable fashion.- Returns:
- The same instance of V1alpha3CounterSet for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-