Class CertificateUpdater
- java.lang.Object
-
- com.twilio.base.Updater<Certificate>
-
- com.twilio.rest.preview.deployedDevices.fleet.CertificateUpdater
-
public class CertificateUpdater extends Updater<Certificate>
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 CertificateUpdater(String pathFleetSid, String pathSid)
Construct a new CertificateUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificateUpdater
setDeviceSid(String deviceSid)
Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential..CertificateUpdater
setFriendlyName(String friendlyName)
Provides a human readable descriptive text for this Certificate credential, up to 256 characters long..Certificate
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.-
Methods inherited from class com.twilio.base.Updater
update, updateAsync, updateAsync
-
-
-
-
Method Detail
-
setFriendlyName
public CertificateUpdater setFriendlyName(String friendlyName)
Provides a human readable descriptive text for this Certificate credential, up to 256 characters long..- Parameters:
friendlyName
- The human readable description for this Certificate.- Returns:
- this
-
setDeviceSid
public CertificateUpdater setDeviceSid(String deviceSid)
Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential..- Parameters:
deviceSid
- The unique identifier of a Device to be authenticated.- Returns:
- this
-
update
public Certificate update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.- Specified by:
update
in classUpdater<Certificate>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- Updated Certificate
-
-