Class PaginationMetaPage

java.lang.Object
com.datadog.api.client.v2.model.PaginationMetaPage

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class PaginationMetaPage extends Object
Offset-based pagination schema.
  • Field Details

  • Constructor Details

    • PaginationMetaPage

      public PaginationMetaPage()
  • Method Details

    • firstOffset

      public PaginationMetaPage firstOffset(Long firstOffset)
    • getFirstOffset

      @Nullable public Long getFirstOffset()
      Integer representing the offset to fetch the first page of results.
      Returns:
      firstOffset
    • setFirstOffset

      public void setFirstOffset(Long firstOffset)
    • lastOffset

      public PaginationMetaPage lastOffset(Long lastOffset)
    • getLastOffset

      @Nullable public Long getLastOffset()
      Integer representing the offset to fetch the last page of results.
      Returns:
      lastOffset
    • getLastOffset_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Long> getLastOffset_JsonNullable()
    • setLastOffset_JsonNullable

      public void setLastOffset_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> lastOffset)
    • setLastOffset

      public void setLastOffset(Long lastOffset)
    • limit

      public PaginationMetaPage limit(Long limit)
    • getLimit

      @Nullable public Long getLimit()
      Integer representing the number of elements to be returned in the results.
      Returns:
      limit
    • setLimit

      public void setLimit(Long limit)
    • nextOffset

      public PaginationMetaPage nextOffset(Long nextOffset)
    • getNextOffset

      @Nullable public Long getNextOffset()
      Integer representing the index of the first element in the next page of results. Equal to page size added to the current offset.
      Returns:
      nextOffset
    • getNextOffset_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Long> getNextOffset_JsonNullable()
    • setNextOffset_JsonNullable

      public void setNextOffset_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> nextOffset)
    • setNextOffset

      public void setNextOffset(Long nextOffset)
    • offset

      public PaginationMetaPage offset(Long offset)
    • getOffset

      @Nullable public Long getOffset()
      Integer representing the index of the first element in the results.
      Returns:
      offset
    • setOffset

      public void setOffset(Long offset)
    • prevOffset

      public PaginationMetaPage prevOffset(Long prevOffset)
    • getPrevOffset

      @Nullable public Long getPrevOffset()
      Integer representing the index of the first element in the previous page of results.
      Returns:
      prevOffset
    • getPrevOffset_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Long> getPrevOffset_JsonNullable()
    • setPrevOffset_JsonNullable

      public void setPrevOffset_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> prevOffset)
    • setPrevOffset

      public void setPrevOffset(Long prevOffset)
    • total

      public PaginationMetaPage total(Long total)
    • getTotal

      @Nullable public Long getTotal()
      Integer representing the total number of elements available.
      Returns:
      total
    • getTotal_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Long> getTotal_JsonNullable()
    • setTotal_JsonNullable

      public void setTotal_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> total)
    • setTotal

      public void setTotal(Long total)
    • type

    • getType

      @Nullable public PaginationMetaPageType getType()
      The pagination type used for offset-based pagination.
      Returns:
      type
    • setType

      public void setType(PaginationMetaPageType type)
    • putAdditionalProperty

      public PaginationMetaPage putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      PaginationMetaPage
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this PaginationMetaPage object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object