Class ScheduleExecutionPageResponse

java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ScheduleExecutionPageResponse

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ScheduleExecutionPageResponse extends Object
One page of a schedule's executions, latest due first.
  • Field Details

  • Constructor Details

    • ScheduleExecutionPageResponse

      public ScheduleExecutionPageResponse()
  • Method Details

    • content

      public ScheduleExecutionPageResponse content(@Nonnull List<ScheduleExecutionResponse> content)
    • addContentItem

      public ScheduleExecutionPageResponse addContentItem(ScheduleExecutionResponse contentItem)
    • getContent

      @Nonnull public List<ScheduleExecutionResponse> getContent()
      The page's executions, latest due first.
      Returns:
      content
    • setContent

      public void setContent(@Nonnull List<ScheduleExecutionResponse> content)
    • page

      public ScheduleExecutionPageResponse page(@Nonnull Integer page)
    • getPage

      @Nonnull public Integer getPage()
      Zero-based page index.
      Returns:
      page
    • setPage

      public void setPage(@Nonnull Integer page)
    • size

      public ScheduleExecutionPageResponse size(@Nonnull Integer size)
    • getSize

      @Nonnull public Integer getSize()
      Page size requested.
      Returns:
      size
    • setSize

      public void setSize(@Nonnull Integer size)
    • totalElements

      public ScheduleExecutionPageResponse totalElements(@Nonnull Long totalElements)
    • getTotalElements

      @Nonnull public Long getTotalElements()
      Every execution of the schedule.
      Returns:
      totalElements
    • setTotalElements

      public void setTotalElements(@Nonnull Long totalElements)
    • totalPages

      public ScheduleExecutionPageResponse totalPages(@Nonnull Integer totalPages)
    • getTotalPages

      @Nonnull public Integer getTotalPages()
      Number of pages.
      Returns:
      totalPages
    • setTotalPages

      public void setTotalPages(@Nonnull Integer totalPages)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

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

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to ScheduleExecutionPageResponse
    • validateJsonElementAsCandidate

      public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element as a candidate of a oneOf schema: the checks of validateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is not a ScheduleExecutionPageResponse
    • fromJson

      public static ScheduleExecutionPageResponse fromJson(String jsonString) throws IOException
      Create an instance of ScheduleExecutionPageResponse given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ScheduleExecutionPageResponse
      Throws:
      IOException - if the JSON string is invalid with respect to ScheduleExecutionPageResponse
    • toJson

      public String toJson()
      Convert an instance of ScheduleExecutionPageResponse to an JSON string
      Returns:
      JSON string