Class V1beta1DeviceCounterConsumption
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1beta1DeviceCounterConsumption
extends Object
DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncounters
(Map<String, V1beta1Counter> counters) counterSet
(String counterSet) boolean
Create an instance of V1beta1DeviceCounterConsumption given an JSON stringCounters defines the counters that will be consumed by the device.CounterSet is the name of the set from which the counters defined will be consumed.int
hashCode()
putCountersItem
(String key, V1beta1Counter countersItem) void
setCounters
(Map<String, V1beta1Counter> counters) void
setCounterSet
(String counterSet) toJson()
Convert an instance of V1beta1DeviceCounterConsumption 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_COUNTER_SET
- See Also:
-
SERIALIZED_NAME_COUNTERS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta1DeviceCounterConsumption
public V1beta1DeviceCounterConsumption()
-
-
Method Details
-
counterSet
-
getCounterSet
CounterSet is the name of the set from which the counters defined will be consumed.- Returns:
- counterSet
-
setCounterSet
-
counters
-
putCountersItem
-
getCounters
Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).- Returns:
- counters
-
setCounters
-
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 V1beta1DeviceCounterConsumption
-
fromJson
Create an instance of V1beta1DeviceCounterConsumption given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1beta1DeviceCounterConsumption
- Throws:
IOException
- if the JSON string is invalid with respect to V1beta1DeviceCounterConsumption
-
toJson
Convert an instance of V1beta1DeviceCounterConsumption to an JSON string- Returns:
- JSON string
-