Package com.twilio.rest.api.v2010
Class AccountUpdater
- java.lang.Object
-
- com.twilio.base.Updater<Account>
-
- com.twilio.rest.api.v2010.AccountUpdater
-
-
Constructor Summary
Constructors Constructor Description AccountUpdater()
Construct a new AccountUpdater.AccountUpdater(String pathSid)
Construct a new AccountUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountUpdater
setFriendlyName(String friendlyName)
Update the human-readable description of this Account.AccountUpdater
setStatus(Account.Status status)
Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it..Account
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
-
-
-
-
Constructor Detail
-
AccountUpdater
public AccountUpdater()
Construct a new AccountUpdater.
-
AccountUpdater
public AccountUpdater(String pathSid)
Construct a new AccountUpdater.- Parameters:
pathSid
- Update by unique Account Sid
-
-
Method Detail
-
setFriendlyName
public AccountUpdater setFriendlyName(String friendlyName)
Update the human-readable description of this Account.- Parameters:
friendlyName
- FriendlyName to update- Returns:
- this
-
setStatus
public AccountUpdater setStatus(Account.Status status)
Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it..- Parameters:
status
- Status to update the Account with- Returns:
- this
-
update
public Account update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
-
-