Class DeviceRequest
java.lang.Object
io.github.alersrt.pod4j.openapi.model.DeviceRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class DeviceRequest
extends Object
Used by GPU device drivers.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCapabilitiesItem(List<String> capabilitiesItem) addDeviceIDsItem(String deviceIDsItem) capabilities(List<List<String>> capabilities) booleanstatic DeviceRequestCreate an instance of DeviceRequest given an JSON stringGet capabilitiesgetCount()Get countGet deviceIDsGet driverGet optionsinthashCode()putOptionsItem(String key, String optionsItem) voidsetCapabilities(List<List<String>> capabilities) voidvoidsetDeviceIDs(List<String> deviceIDs) voidvoidsetOptions(Map<String, String> options) toJson()Convert an instance of DeviceRequest 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_CAPABILITIES
- See Also:
-
SERIALIZED_NAME_COUNT
- See Also:
-
SERIALIZED_NAME_DEVICE_I_DS
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
DeviceRequest
public DeviceRequest()
-
-
Method Details
-
capabilities
-
addCapabilitiesItem
-
getCapabilities
Get capabilities- Returns:
- capabilities
-
setCapabilities
-
count
-
getCount
Get count- Returns:
- count
-
setCount
-
deviceIDs
-
addDeviceIDsItem
-
getDeviceIDs
Get deviceIDs- Returns:
- deviceIDs
-
setDeviceIDs
-
driver
-
getDriver
Get driver- Returns:
- driver
-
setDriver
-
options
-
putOptionsItem
-
getOptions
Get options- Returns:
- options
-
setOptions
-
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 DeviceRequest
-
fromJson
Create an instance of DeviceRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DeviceRequest
- Throws:
IOException- if the JSON string is invalid with respect to DeviceRequest
-
toJson
Convert an instance of DeviceRequest to an JSON string- Returns:
- JSON string
-