Class FleetUpdater


  • public class FleetUpdater
    extends Updater<Fleet>
    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

      • FleetUpdater

        public FleetUpdater​(String pathSid)
        Construct a new FleetUpdater.
        Parameters:
        pathSid - A string that uniquely identifies the Fleet.
    • Method Detail

      • setFriendlyName

        public FleetUpdater setFriendlyName​(String friendlyName)
        Provides a human readable descriptive text for this Fleet, up to 256 characters long..
        Parameters:
        friendlyName - A human readable description for this Fleet.
        Returns:
        this
      • setDefaultDeploymentSid

        public FleetUpdater setDefaultDeploymentSid​(String defaultDeploymentSid)
        Provides a string identifier of a Deployment that is going to be used as a default one for this Fleet..
        Parameters:
        defaultDeploymentSid - A default Deployment SID.
        Returns:
        this
      • update

        public Fleet update​(TwilioRestClient client)
        Make the request to the Twilio API to perform the update.
        Specified by:
        update in class Updater<Fleet>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Updated Fleet