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

org.tiogasolutions.notify.pub.task.TaskQuery Maven / Gradle / Ivy

There is a newer version: 5.1.4
Show newest version
package org.tiogasolutions.notify.pub.task;

/**
 * Created by jacobp on 2/26/2015.
 */
public class TaskQuery {

  // By ID is expected to throw an exception which is counter
  // intuitive to how a Query object would work. Disabled for now.
  // private String taskId;

  private String notificationId;
  private TaskStatus taskStatus;
  private String destinationName;
  private String destinationProvider;
  private int offset = 0;
  private int limit = 100;

  public TaskQuery() {
  }

  public int getLimit() {
    return limit;
  }

  public TaskQuery setLimit(int limit) {
    this.limit = limit;
    return this;
  }

  public int getOffset() {
    return offset;
  }

  public TaskQuery setOffset(int offset) {
    this.offset = offset;
    return this;
  }

  public String getNotificationId() {
    return notificationId;
  }

  public TaskQuery setNotificationId(String notificationId) {
    this.notificationId = notificationId;
    return this;
  }

  public TaskStatus getTaskStatus() {
    return taskStatus;
  }

  public TaskQuery setTaskStatus(TaskStatus taskStatus) {
    this.taskStatus = taskStatus;
    return this;
  }

  public String getDestinationName() {
    return destinationName;
  }

  public TaskQuery setDestinationName(String destinationName) {
    this.destinationName = destinationName;
    return this;
  }

  public String getDestinationProvider() {
    return destinationProvider;
  }

  public TaskQuery setDestinationProvider(String destinationProvider) {
    this.destinationProvider = destinationProvider;
    return this;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy