Class V1beta1DeviceAttribute
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1DeviceAttribute
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-06-26T22:35:15.319369Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V1beta1DeviceAttribute
extends Object
DeviceAttribute must have exactly one field set.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBoolsItem(Boolean boolsItem) addIntsItem(Long intsItem) addStringsItem(String stringsItem) addVersionsItem(String versionsItem) booleanstatic V1beta1DeviceAttributeCreate an instance of V1beta1DeviceAttribute given an JSON stringgetBool()BoolValue is a true/false value.getBools()BoolValues is a non-empty list of true/false values.getInt()IntValue is a number.getInts()IntValues is a non-empty list of numbers.StringValue is a string.StringValues is a non-empty list of strings.VersionValue is a semantic version according to semver.org spec 2.0.0.VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.inthashCode()voidvoidvoidvoidvoidvoidsetStrings(List<String> strings) voidsetVersion(String version) voidsetVersions(List<String> versions) toJson()Convert an instance of V1beta1DeviceAttribute 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_BOOL
- See Also:
-
SERIALIZED_NAME_BOOLS
- See Also:
-
SERIALIZED_NAME_INT
- See Also:
-
SERIALIZED_NAME_INTS
- See Also:
-
SERIALIZED_NAME_STRING
- See Also:
-
SERIALIZED_NAME_STRINGS
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
SERIALIZED_NAME_VERSIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta1DeviceAttribute
public V1beta1DeviceAttribute()
-
-
Method Details
-
bool
-
getBool
BoolValue is a true/false value.- Returns:
- bool
-
setBool
-
bools
-
addBoolsItem
-
getBools
BoolValues is a non-empty list of true/false values.- Returns:
- bools
-
setBools
-
_int
-
getInt
IntValue is a number.- Returns:
- _int
-
setInt
-
ints
-
addIntsItem
-
getInts
IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.- Returns:
- ints
-
setInts
-
string
-
getString
StringValue is a string. Must not be longer than 64 characters.- Returns:
- string
-
setString
-
strings
-
addStringsItem
-
getStrings
StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.- Returns:
- strings
-
setStrings
-
version
-
getVersion
VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.- Returns:
- version
-
setVersion
-
versions
-
addVersionsItem
-
getVersions
VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.- Returns:
- versions
-
setVersions
-
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 V1beta1DeviceAttribute
-
fromJson
Create an instance of V1beta1DeviceAttribute given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1beta1DeviceAttribute
- Throws:
IOException- if the JSON string is invalid with respect to V1beta1DeviceAttribute
-
toJson
Convert an instance of V1beta1DeviceAttribute to an JSON string- Returns:
- JSON string
-