Class DeviceCreator
- java.lang.Object
-
- com.twilio.base.Creator<Device>
-
- com.twilio.rest.preview.deployedDevices.fleet.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 Summary
Constructors Constructor Description DeviceCreator(String pathFleetSid)
Construct a new DeviceCreator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Device
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.DeviceCreator
setDeploymentSid(String deploymentSid)
Specifies the unique string identifier of the Deployment group that this Device is going to be associated with..DeviceCreator
setEnabled(Boolean enabled)
The enabled.DeviceCreator
setFriendlyName(String friendlyName)
Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long..DeviceCreator
setIdentity(String identity)
Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long..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..-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
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.
-
-