001package com.box.sdkgen.managers.devicepinners; 002 003import com.box.sdkgen.serialization.json.EnumWrapper; 004 005public class GetEnterpriseDevicePinnersQueryParams { 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 * The direction to sort results in. This can be either in alphabetical ascending (`ASC`) or 020 * descending (`DESC`) order. 021 */ 022 public EnumWrapper<GetEnterpriseDevicePinnersQueryParamsDirectionField> direction; 023 024 public GetEnterpriseDevicePinnersQueryParams() {} 025 026 protected GetEnterpriseDevicePinnersQueryParams(Builder builder) { 027 this.marker = builder.marker; 028 this.limit = builder.limit; 029 this.direction = builder.direction; 030 } 031 032 public String getMarker() { 033 return marker; 034 } 035 036 public Long getLimit() { 037 return limit; 038 } 039 040 public EnumWrapper<GetEnterpriseDevicePinnersQueryParamsDirectionField> getDirection() { 041 return direction; 042 } 043 044 public static class Builder { 045 046 protected String marker; 047 048 protected Long limit; 049 050 protected EnumWrapper<GetEnterpriseDevicePinnersQueryParamsDirectionField> direction; 051 052 public Builder marker(String marker) { 053 this.marker = marker; 054 return this; 055 } 056 057 public Builder limit(Long limit) { 058 this.limit = limit; 059 return this; 060 } 061 062 public Builder direction(GetEnterpriseDevicePinnersQueryParamsDirectionField direction) { 063 this.direction = 064 new EnumWrapper<GetEnterpriseDevicePinnersQueryParamsDirectionField>(direction); 065 return this; 066 } 067 068 public Builder direction( 069 EnumWrapper<GetEnterpriseDevicePinnersQueryParamsDirectionField> direction) { 070 this.direction = direction; 071 return this; 072 } 073 074 public GetEnterpriseDevicePinnersQueryParams build() { 075 return new GetEnterpriseDevicePinnersQueryParams(this); 076 } 077 } 078}