Class Device


  • public class Device
    extends Object
    Device
    • Constructor Detail

      • Device

        public Device()
    • 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 Device instance, 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 Device instance, 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 Device instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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