Class BucketCreator


  • public class BucketCreator
    extends Creator<Bucket>
    PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
    • Constructor Detail

      • BucketCreator

        public BucketCreator​(String pathServiceSid,
                             String pathRateLimitSid,
                             Integer max,
                             Integer interval)
        Construct a new BucketCreator.
        Parameters:
        pathServiceSid - The SID of the Service that the resource is associated with
        pathRateLimitSid - Rate Limit Sid.
        max - Max number of requests.
        interval - Number of seconds that the rate limit will be enforced over.
    • Method Detail

      • create

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