001package com.box.sdkgen.managers.workflows;
002
003public class GetWorkflowsQueryParams {
004
005  /**
006   * The unique identifier that represent a folder.
007   *
008   * <p>The ID for any folder can be determined by visiting this folder in the web application and
009   * copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the
010   * `folder_id` is `123`.
011   *
012   * <p>The root folder of a Box account is always represented by the ID `0`.
013   */
014  public final String folderId;
015
016  /** Type of trigger to search for. */
017  public String triggerType;
018
019  /** The maximum number of items to return per page. */
020  public Long limit;
021
022  /**
023   * Defines the position marker at which to begin returning results. This is used when paginating
024   * using marker-based pagination.
025   *
026   * <p>This requires `usemarker` to be set to `true`.
027   */
028  public String marker;
029
030  public GetWorkflowsQueryParams(String folderId) {
031    this.folderId = folderId;
032  }
033
034  protected GetWorkflowsQueryParams(Builder builder) {
035    this.folderId = builder.folderId;
036    this.triggerType = builder.triggerType;
037    this.limit = builder.limit;
038    this.marker = builder.marker;
039  }
040
041  public String getFolderId() {
042    return folderId;
043  }
044
045  public String getTriggerType() {
046    return triggerType;
047  }
048
049  public Long getLimit() {
050    return limit;
051  }
052
053  public String getMarker() {
054    return marker;
055  }
056
057  public static class Builder {
058
059    protected final String folderId;
060
061    protected String triggerType;
062
063    protected Long limit;
064
065    protected String marker;
066
067    public Builder(String folderId) {
068      this.folderId = folderId;
069    }
070
071    public Builder triggerType(String triggerType) {
072      this.triggerType = triggerType;
073      return this;
074    }
075
076    public Builder limit(Long limit) {
077      this.limit = limit;
078      return this;
079    }
080
081    public Builder marker(String marker) {
082      this.marker = marker;
083      return this;
084    }
085
086    public GetWorkflowsQueryParams build() {
087      return new GetWorkflowsQueryParams(this);
088    }
089  }
090}