001package com.box.sdkgen.managers.signrequests; 002 003import java.util.List; 004 005public class GetSignRequestsQueryParams { 006 007 /** 008 * Defines the position marker at which to begin returning results. This is used when paginating 009 * using marker-based pagination. 010 * 011 * <p>This requires `usemarker` to be set to `true`. 012 */ 013 public String marker; 014 015 /** The maximum number of items to return per page. */ 016 public Long limit; 017 018 /** 019 * A list of sender emails to filter the signature requests by sender. If provided, 020 * `shared_requests` must be set to `true`. 021 */ 022 public List<String> senders; 023 024 /** 025 * If set to `true`, only includes requests that user is not an owner, but user is a collaborator. 026 * Collaborator access is determined by the user access level of the sign files of the request. 027 * Default is `false`. Must be set to `true` if `senders` are provided. 028 */ 029 public Boolean sharedRequests; 030 031 public GetSignRequestsQueryParams() {} 032 033 protected GetSignRequestsQueryParams(Builder builder) { 034 this.marker = builder.marker; 035 this.limit = builder.limit; 036 this.senders = builder.senders; 037 this.sharedRequests = builder.sharedRequests; 038 } 039 040 public String getMarker() { 041 return marker; 042 } 043 044 public Long getLimit() { 045 return limit; 046 } 047 048 public List<String> getSenders() { 049 return senders; 050 } 051 052 public Boolean getSharedRequests() { 053 return sharedRequests; 054 } 055 056 public static class Builder { 057 058 protected String marker; 059 060 protected Long limit; 061 062 protected List<String> senders; 063 064 protected Boolean sharedRequests; 065 066 public Builder marker(String marker) { 067 this.marker = marker; 068 return this; 069 } 070 071 public Builder limit(Long limit) { 072 this.limit = limit; 073 return this; 074 } 075 076 public Builder senders(List<String> senders) { 077 this.senders = senders; 078 return this; 079 } 080 081 public Builder sharedRequests(Boolean sharedRequests) { 082 this.sharedRequests = sharedRequests; 083 return this; 084 } 085 086 public GetSignRequestsQueryParams build() { 087 return new GetSignRequestsQueryParams(this); 088 } 089 } 090}