All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.securecodebox.persistence.defectdojo.model.PaginatedResult Maven / Gradle / Ivy

The newest version!
// SPDX-FileCopyrightText: the secureCodeBox authors
//
// SPDX-License-Identifier: Apache-2.0

package io.securecodebox.persistence.defectdojo.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * This class wraps the paginated results from DefectDojo
 *
 * @param  type of results
 */
@Data
public final class PaginatedResult {
  /**
   * Total number of results
   */
  @JsonProperty
  private int count;

  /**
   * URL to the result's next page
   * 

* This is {@code null} if there is no next page. *

*/ @JsonProperty private String next; /** * URL to the result's previous page *

* This is {@code null} if there is no previous page. *

*/ @JsonProperty private String previous; /** * Result for current page *

* Never {@code null}. *

*/ @JsonProperty private List results = new ArrayList<>(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy