Modifier and Type | Field and Description |
---|---|
protected String |
regex |
protected int |
remaining |
protected long |
resetTime |
protected RateLimitUnit |
unit |
protected String |
uri |
protected int |
value |
protected javax.ws.rs.HttpMethod |
verb |
Constructor and Description |
---|
RateLimit.Builder() |
Modifier and Type | Method and Description |
---|---|
RateLimit |
build() |
T |
fromRateLimit(RateLimit in) |
T |
regex(String regex) |
T |
remaining(int remaining) |
T |
resetTime(long resetTime) |
protected abstract T |
self() |
T |
unit(RateLimitUnit unit) |
T |
uri(String uri) |
T |
value(int value) |
T |
verb(javax.ws.rs.HttpMethod verb) |
protected String uri
protected String regex
protected int remaining
protected long resetTime
protected RateLimitUnit unit
protected int value
protected javax.ws.rs.HttpMethod verb
protected abstract T self()
public T uri(String uri)
RateLimit.getUri()
public T regex(String regex)
RateLimit.getRegex()
public T remaining(int remaining)
RateLimit.getRemaining()
public T resetTime(long resetTime)
RateLimit.getResetTime()
public T unit(RateLimitUnit unit)
RateLimit.getUnit()
public T value(int value)
RateLimit.getValue()
public T verb(javax.ws.rs.HttpMethod verb)
RateLimit.getVerb()
public RateLimit build()
Copyright © 2009-2013 jclouds. All Rights Reserved.