Class Device
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.Device
-
public class Device extends Object
Device
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DEVICE_IDstatic StringJSON_PROPERTY_FORM_FACTORstatic StringJSON_PROPERTY_OS_NAME
-
Constructor Summary
Constructors Constructor Description Device()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DevicedeviceId(String deviceId)The unique identifier of the device used for provisioning the network token.booleanequals(Object o)Return true if this Device object is equal to o.DeviceformFactor(String formFactor)The type of the device used for provisioning the network token.static DevicefromJson(String jsonString)Create an instance of Device given an JSON stringStringgetDeviceId()The unique identifier of the device used for provisioning the network token.StringgetFormFactor()The type of the device used for provisioning the network token.StringgetOsName()The operating system of the device used for provisioning the network token.inthashCode()DeviceosName(String osName)The operating system of the device used for provisioning the network token.voidsetDeviceId(String deviceId)The unique identifier of the device used for provisioning the network token.voidsetFormFactor(String formFactor)The type of the device used for provisioning the network token.voidsetOsName(String osName)The operating system of the device used for provisioning the network token.StringtoJson()Convert an instance of Device to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DEVICE_ID
public static final String JSON_PROPERTY_DEVICE_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FORM_FACTOR
public static final String JSON_PROPERTY_FORM_FACTOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OS_NAME
public static final String JSON_PROPERTY_OS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
deviceId
public Device deviceId(String deviceId)
The unique identifier of the device used for provisioning the network token.- Parameters:
deviceId- The unique identifier of the device used for provisioning the network token.- Returns:
- the current
Deviceinstance, allowing for method chaining
-
getDeviceId
public String getDeviceId()
The unique identifier of the device used for provisioning the network token.- Returns:
- deviceId The unique identifier of the device used for provisioning the network token.
-
setDeviceId
public void setDeviceId(String deviceId)
The unique identifier of the device used for provisioning the network token.- Parameters:
deviceId- The unique identifier of the device used for provisioning the network token.
-
formFactor
public Device formFactor(String formFactor)
The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc- Parameters:
formFactor- The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc- Returns:
- the current
Deviceinstance, allowing for method chaining
-
getFormFactor
public String getFormFactor()
The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc- Returns:
- formFactor The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc
-
setFormFactor
public void setFormFactor(String formFactor)
The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc- Parameters:
formFactor- The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc
-
osName
public Device osName(String osName)
The operating system of the device used for provisioning the network token.- Parameters:
osName- The operating system of the device used for provisioning the network token.- Returns:
- the current
Deviceinstance, allowing for method chaining
-
getOsName
public String getOsName()
The operating system of the device used for provisioning the network token.- Returns:
- osName The operating system of the device used for provisioning the network token.
-
setOsName
public void setOsName(String osName)
The operating system of the device used for provisioning the network token.- Parameters:
osName- The operating system of the device used for provisioning the network token.
-
equals
public boolean equals(Object o)
Return true if this Device object is equal to o.
-
fromJson
public static Device fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Device given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Device
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Device
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Device to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-