Package model
Class UpdateDeviceRequest
- java.lang.Object
-
- model.UpdateDeviceRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UpdateDeviceRequest extends Object
UpdateDeviceRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateDeviceRequest.ActionEnumThe action you want to perform on the device.static classUpdateDeviceRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACTIONstatic StringSERIALIZED_NAME_ACTIVATION_CODEstatic StringSERIALIZED_NAME_IDLE_MESSAGEstatic StringSERIALIZED_NAME_TAGS
-
Constructor Summary
Constructors Constructor Description UpdateDeviceRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateDeviceRequestaction(UpdateDeviceRequest.ActionEnum action)UpdateDeviceRequestactivationCode(String activationCode)booleanequals(Object o)static UpdateDeviceRequestfromJson(String jsonString)Create an instance of UpdateDeviceRequest given an JSON stringUpdateDeviceRequest.ActionEnumgetAction()The action you want to perform on the device.StringgetActivationCode()Used when `action` is **ACTIVATE**.StringgetIdleMessage()Message to display on the idle screen.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.inthashCode()UpdateDeviceRequestidleMessage(String idleMessage)UpdateDeviceRequestputTagsItem(String key, String tagsItem)voidsetAction(UpdateDeviceRequest.ActionEnum action)voidsetActivationCode(String activationCode)voidsetIdleMessage(String idleMessage)voidsetTags(Map<String,String> tags)UpdateDeviceRequesttags(Map<String,String> tags)StringtoJson()Convert an instance of UpdateDeviceRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ACTION
public static final String SERIALIZED_NAME_ACTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTIVATION_CODE
public static final String SERIALIZED_NAME_ACTIVATION_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IDLE_MESSAGE
public static final String SERIALIZED_NAME_IDLE_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
action
public UpdateDeviceRequest action(UpdateDeviceRequest.ActionEnum action)
-
getAction
@Nullable public UpdateDeviceRequest.ActionEnum getAction()
The action you want to perform on the device. Use **DEACTIVATE** to deactivate the device.- Returns:
- action
-
setAction
public void setAction(UpdateDeviceRequest.ActionEnum action)
-
activationCode
public UpdateDeviceRequest activationCode(String activationCode)
-
getActivationCode
@Nullable public String getActivationCode()
Used when `action` is **ACTIVATE**. Provide the input code that shows up on the device screen.- Returns:
- activationCode
-
setActivationCode
public void setActivationCode(String activationCode)
-
tags
public UpdateDeviceRequest tags(Map<String,String> tags)
-
putTagsItem
public UpdateDeviceRequest putTagsItem(String key, String tagsItem)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
idleMessage
public UpdateDeviceRequest idleMessage(String idleMessage)
-
getIdleMessage
@Nullable public String getIdleMessage()
Message to display on the idle screen.- Returns:
- idleMessage
-
setIdleMessage
public void setIdleMessage(String idleMessage)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to UpdateDeviceRequest
-
fromJson
public static UpdateDeviceRequest fromJson(String jsonString) throws IOException
Create an instance of UpdateDeviceRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateDeviceRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateDeviceRequest
-
toJson
public String toJson()
Convert an instance of UpdateDeviceRequest to an JSON string- Returns:
- JSON string
-
-