Class RateLimit

java.lang.Object
com.myjeeva.digitalocean.pojo.RateLimit
All Implemented Interfaces:
Serializable

public class RateLimit extends Object implements Serializable
Represents Rate Limit header values
Since:
v2.0
Author:
Jeevanandam M. (jeeva@myjeeva.com)
See Also:
  • Constructor Details

    • RateLimit

      public RateLimit()
      Default Constructor
    • RateLimit

      public RateLimit(Integer limit, Integer remaining, Date reset)
      Parameterized Constructor
      Parameters:
      limit - the number of requests that can be made per hour
      remaining - the number of requests that remain before you hit your request limit
      reset - this represents the time when the oldest request will expire
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLimit

      public Integer getLimit()
      Returns:
      the limit
    • getRemaining

      public Integer getRemaining()
      Returns:
      the remaining
    • getReset

      public Date getReset()
      Returns:
      the reset