Class V1CounterSet
java.lang.Object
io.kubernetes.client.openapi.models.V1CounterSet
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-11T18:00:16.154662Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1CounterSet
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 TypeMethodDescriptionbooleanstatic V1CounterSetCreate an instance of V1CounterSet given an JSON stringCounters 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.getName()Name defines the name of the counter set.inthashCode()putCountersItem(String key, V1Counter countersItem) voidsetCounters(Map<String, V1Counter> counters) voidtoJson()Convert an instance of V1CounterSet to an JSON stringtoString()static voidvalidateJsonElement(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
-
V1CounterSet
public V1CounterSet()
-
-
Method Details
-
counters
-
putCountersItem
-
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 in all sets is 32.- Returns:
- counters
-
setCounters
-
name
-
getName
Name defines the name of the counter set. It must be a DNS label.- 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 V1CounterSet
-
fromJson
Create an instance of V1CounterSet given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1CounterSet
- Throws:
IOException- if the JSON string is invalid with respect to V1CounterSet
-
toJson
Convert an instance of V1CounterSet to an JSON string- Returns:
- JSON string
-