Class V1beta1BasicDevice
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1BasicDevice
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1beta1BasicDevice
extends Object
BasicDevice defines one device instance.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes
(Map<String, V1beta1DeviceAttribute> attributes) capacity
(Map<String, V1beta1DeviceCapacity> capacity) boolean
static V1beta1BasicDevice
Create an instance of V1beta1BasicDevice given an JSON stringAttributes defines the set of attributes for this device.Capacity defines the set of capacities for this device.int
hashCode()
putAttributesItem
(String key, V1beta1DeviceAttribute attributesItem) putCapacityItem
(String key, V1beta1DeviceCapacity capacityItem) void
setAttributes
(Map<String, V1beta1DeviceAttribute> attributes) void
setCapacity
(Map<String, V1beta1DeviceCapacity> capacity) toJson()
Convert an instance of V1beta1BasicDevice 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_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_CAPACITY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta1BasicDevice
public V1beta1BasicDevice()
-
-
Method Details
-
attributes
-
putAttributesItem
-
getAttributes
Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32.- Returns:
- attributes
-
setAttributes
-
capacity
-
putCapacityItem
-
getCapacity
Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32.- Returns:
- capacity
-
setCapacity
-
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 V1beta1BasicDevice
-
fromJson
Create an instance of V1beta1BasicDevice given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1beta1BasicDevice
- Throws:
IOException
- if the JSON string is invalid with respect to V1beta1BasicDevice
-
toJson
Convert an instance of V1beta1BasicDevice to an JSON string- Returns:
- JSON string
-