Class V1alpha3Device
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3Device
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1alpha3Device
extends Object
Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbasic
(V1alpha3BasicDevice basic) boolean
static V1alpha3Device
Create an instance of V1alpha3Device given an JSON stringgetBasic()
Get basicgetName()
Name is unique identifier among all devices managed by the driver in the pool.int
hashCode()
void
setBasic
(V1alpha3BasicDevice basic) void
toJson()
Convert an instance of V1alpha3Device 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_BASIC
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha3Device
public V1alpha3Device()
-
-
Method Details
-
basic
-
getBasic
Get basic- Returns:
- basic
-
setBasic
-
name
-
getName
Name is unique identifier among all devices managed by the driver in the pool. 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 V1alpha3Device
-
fromJson
Create an instance of V1alpha3Device given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3Device
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3Device
-
toJson
Convert an instance of V1alpha3Device to an JSON string- Returns:
- JSON string
-