Package model
Class CreateDevice
- java.lang.Object
-
- model.CreateDevice
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateDevice extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateDevice.CustomTypeAdapterFactorystatic classCreateDevice.ModelEnumThe model type of the device.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CONFIGURATIONstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_MODELstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_TAGS
-
Constructor Summary
Constructors Constructor Description CreateDevice()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDevice_configuration(ConfigurationDetails _configuration)CreateDevicedescription(String description)booleanequals(Object o)static CreateDevicefromJson(String jsonString)Create an instance of CreateDevice given an JSON stringConfigurationDetailsgetConfiguration()Get _configurationStringgetDescription()Additional information about device (e.g.CreateDevice.ModelEnumgetModel()The model type of the device.StringgetName()Name of the `Device`.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.inthashCode()CreateDevicemodel(CreateDevice.ModelEnum model)CreateDevicename(String name)CreateDeviceputTagsItem(String key, String tagsItem)voidsetConfiguration(ConfigurationDetails _configuration)voidsetDescription(String description)voidsetModel(CreateDevice.ModelEnum model)voidsetName(String name)voidsetTags(Map<String,String> tags)CreateDevicetags(Map<String,String> tags)StringtoJson()Convert an instance of CreateDevice 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_CONFIGURATION
public static final String SERIALIZED_NAME_CONFIGURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MODEL
public static final String SERIALIZED_NAME_MODEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
_configuration
public CreateDevice _configuration(ConfigurationDetails _configuration)
-
getConfiguration
@Nullable public ConfigurationDetails getConfiguration()
Get _configuration- Returns:
- _configuration
-
setConfiguration
public void setConfiguration(ConfigurationDetails _configuration)
-
description
public CreateDevice description(String description)
-
getDescription
@Nullable public String getDescription()
Additional information about device (e.g. self serving terminal).- Returns:
- description
-
setDescription
public void setDescription(String description)
-
model
public CreateDevice model(CreateDevice.ModelEnum model)
-
getModel
@Nonnull public CreateDevice.ModelEnum getModel()
The model type of the device.- Returns:
- model
-
setModel
public void setModel(CreateDevice.ModelEnum model)
-
name
public CreateDevice name(String name)
-
setName
public void setName(String name)
-
tags
public CreateDevice tags(Map<String,String> tags)
-
putTagsItem
public CreateDevice 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
-
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 CreateDevice
-
fromJson
public static CreateDevice fromJson(String jsonString) throws IOException
Create an instance of CreateDevice given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateDevice
- Throws:
IOException- if the JSON string is invalid with respect to CreateDevice
-
toJson
public String toJson()
Convert an instance of CreateDevice to an JSON string- Returns:
- JSON string
-
-