Class DeviceCreator


  • public class DeviceCreator
    extends Creator<Device>
    PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
    • Constructor Detail

      • DeviceCreator

        public DeviceCreator​(String pathFleetSid)
        Construct a new DeviceCreator.
        Parameters:
        pathFleetSid - The fleet_sid
    • Method Detail

      • setUniqueName

        public DeviceCreator setUniqueName​(String uniqueName)
        Provides a unique and addressable name to be assigned to this Device, to be used in addition to SID, up to 128 characters long..
        Parameters:
        uniqueName - A unique, addressable name of this Device.
        Returns:
        this
      • setFriendlyName

        public DeviceCreator setFriendlyName​(String friendlyName)
        Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long..
        Parameters:
        friendlyName - A human readable description for this Device.
        Returns:
        this
      • setIdentity

        public DeviceCreator setIdentity​(String identity)
        Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long..
        Parameters:
        identity - An identifier of the Device user.
        Returns:
        this
      • setDeploymentSid

        public DeviceCreator setDeploymentSid​(String deploymentSid)
        Specifies the unique string identifier of the Deployment group that this Device is going to be associated with..
        Parameters:
        deploymentSid - The unique SID of the Deployment group.
        Returns:
        this
      • setEnabled

        public DeviceCreator setEnabled​(Boolean enabled)
        The enabled.
        Parameters:
        enabled - The enabled
        Returns:
        this
      • create

        public Device create​(TwilioRestClient client)
        Make the request to the Twilio API to perform the create.
        Specified by:
        create in class Creator<Device>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Created Device