Class V1alpha3CounterSet
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3CounterSet
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncounters
(Map<String, V1alpha3Counter> counters) boolean
static V1alpha3CounterSet
Create an instance of V1alpha3CounterSet given an JSON stringCounters 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()
putCountersItem
(String key, V1alpha3Counter countersItem) void
setCounters
(Map<String, V1alpha3Counter> counters) void
toJson()
Convert an instance of V1alpha3CounterSet to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_COUNTERS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha3CounterSet
public V1alpha3CounterSet()
-
-
Method Details
-
counters
-
putCountersItem
-
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
-
name
-
getName
CounterSet is the name of the set from which the counters defined will be consumed.- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 V1alpha3CounterSet
-
fromJson
Create an instance of V1alpha3CounterSet given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3CounterSet
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3CounterSet
-
toJson
Convert an instance of V1alpha3CounterSet to an JSON string- Returns:
- JSON string
-