public class Bucket extends Resource
Modifier and Type | Method and Description |
---|---|
static BucketCreator |
creator(String pathServiceSid,
String pathRateLimitSid,
Integer max,
Integer interval)
Create a BucketCreator to execute create.
|
static BucketDeleter |
deleter(String pathServiceSid,
String pathRateLimitSid,
String pathSid)
Create a BucketDeleter to execute delete.
|
boolean |
equals(Object o) |
static BucketFetcher |
fetcher(String pathServiceSid,
String pathRateLimitSid,
String pathSid)
Create a BucketFetcher to execute fetch.
|
static Bucket |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Bucket object using the provided
ObjectMapper.
|
static Bucket |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Bucket object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
org.joda.time.DateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
Integer |
getInterval()
Returns Number of seconds that the rate limit will be enforced over..
|
Integer |
getMax()
Returns Max number of requests..
|
String |
getRateLimitSid()
Returns Rate Limit Sid..
|
String |
getServiceSid()
Returns The SID of the Service that the resource is associated with.
|
String |
getSid()
Returns A string that uniquely identifies this Bucket..
|
URI |
getUrl()
Returns The URL of this resource..
|
int |
hashCode() |
static BucketReader |
reader(String pathServiceSid,
String pathRateLimitSid)
Create a BucketReader to execute read.
|
String |
toString() |
static BucketUpdater |
updater(String pathServiceSid,
String pathRateLimitSid,
String pathSid)
Create a BucketUpdater to execute update.
|
public static BucketCreator creator(String pathServiceSid, String pathRateLimitSid, Integer max, Integer interval)
pathServiceSid
- The SID of the Service that the resource is associated
withpathRateLimitSid
- Rate Limit Sid.max
- Max number of requests.interval
- Number of seconds that the rate limit will be enforced over.public static BucketUpdater updater(String pathServiceSid, String pathRateLimitSid, String pathSid)
pathServiceSid
- The SID of the Service that the resource is associated
withpathRateLimitSid
- Rate Limit Sid.pathSid
- A string that uniquely identifies this Bucket.public static BucketFetcher fetcher(String pathServiceSid, String pathRateLimitSid, String pathSid)
pathServiceSid
- The SID of the Service that the resource is associated
withpathRateLimitSid
- Rate Limit Sid.pathSid
- A string that uniquely identifies this Bucket.public static BucketReader reader(String pathServiceSid, String pathRateLimitSid)
pathServiceSid
- The SID of the Service that the resource is associated
withpathRateLimitSid
- Rate Limit Sid.public static BucketDeleter deleter(String pathServiceSid, String pathRateLimitSid, String pathSid)
pathServiceSid
- The SID of the Service that the resource is associated
withpathRateLimitSid
- Rate Limit Sid.pathSid
- A string that uniquely identifies this Bucket.public static Bucket fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Bucket fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getRateLimitSid()
public final String getServiceSid()
public final String getAccountSid()
public final Integer getMax()
public final Integer getInterval()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.