Class V1alpha3BasicDevice
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3BasicDevice
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1alpha3BasicDevice
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, V1alpha3DeviceAttribute> attributes) boolean
static V1alpha3BasicDevice
Create an instance of V1alpha3BasicDevice 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, V1alpha3DeviceAttribute attributesItem) putCapacityItem
(String key, Quantity capacityItem) void
setAttributes
(Map<String, V1alpha3DeviceAttribute> attributes) void
setCapacity
(Map<String, Quantity> capacity) toJson()
Convert an instance of V1alpha3BasicDevice 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
-
V1alpha3BasicDevice
public V1alpha3BasicDevice()
-
-
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 V1alpha3BasicDevice
-
fromJson
Create an instance of V1alpha3BasicDevice given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3BasicDevice
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3BasicDevice
-
toJson
Convert an instance of V1alpha3BasicDevice to an JSON string- Returns:
- JSON string
-