001package com.box.sdkgen.managers.integrationmappings; 002 003import com.box.sdkgen.serialization.json.EnumWrapper; 004 005public class GetSlackIntegrationMappingQueryParams { 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 /** Mapped item type, for which the mapping should be returned. */ 019 public EnumWrapper<GetSlackIntegrationMappingQueryParamsPartnerItemTypeField> partnerItemType; 020 021 /** ID of the mapped item, for which the mapping should be returned. */ 022 public String partnerItemId; 023 024 /** Box item ID, for which the mappings should be returned. */ 025 public String boxItemId; 026 027 /** Box item type, for which the mappings should be returned. */ 028 public EnumWrapper<GetSlackIntegrationMappingQueryParamsBoxItemTypeField> boxItemType; 029 030 /** Whether the mapping has been manually created. */ 031 public Boolean isManuallyCreated; 032 033 public GetSlackIntegrationMappingQueryParams() {} 034 035 protected GetSlackIntegrationMappingQueryParams(Builder builder) { 036 this.marker = builder.marker; 037 this.limit = builder.limit; 038 this.partnerItemType = builder.partnerItemType; 039 this.partnerItemId = builder.partnerItemId; 040 this.boxItemId = builder.boxItemId; 041 this.boxItemType = builder.boxItemType; 042 this.isManuallyCreated = builder.isManuallyCreated; 043 } 044 045 public String getMarker() { 046 return marker; 047 } 048 049 public Long getLimit() { 050 return limit; 051 } 052 053 public EnumWrapper<GetSlackIntegrationMappingQueryParamsPartnerItemTypeField> 054 getPartnerItemType() { 055 return partnerItemType; 056 } 057 058 public String getPartnerItemId() { 059 return partnerItemId; 060 } 061 062 public String getBoxItemId() { 063 return boxItemId; 064 } 065 066 public EnumWrapper<GetSlackIntegrationMappingQueryParamsBoxItemTypeField> getBoxItemType() { 067 return boxItemType; 068 } 069 070 public Boolean getIsManuallyCreated() { 071 return isManuallyCreated; 072 } 073 074 public static class Builder { 075 076 protected String marker; 077 078 protected Long limit; 079 080 protected EnumWrapper<GetSlackIntegrationMappingQueryParamsPartnerItemTypeField> 081 partnerItemType; 082 083 protected String partnerItemId; 084 085 protected String boxItemId; 086 087 protected EnumWrapper<GetSlackIntegrationMappingQueryParamsBoxItemTypeField> boxItemType; 088 089 protected Boolean isManuallyCreated; 090 091 public Builder marker(String marker) { 092 this.marker = marker; 093 return this; 094 } 095 096 public Builder limit(Long limit) { 097 this.limit = limit; 098 return this; 099 } 100 101 public Builder partnerItemType( 102 GetSlackIntegrationMappingQueryParamsPartnerItemTypeField partnerItemType) { 103 this.partnerItemType = 104 new EnumWrapper<GetSlackIntegrationMappingQueryParamsPartnerItemTypeField>( 105 partnerItemType); 106 return this; 107 } 108 109 public Builder partnerItemType( 110 EnumWrapper<GetSlackIntegrationMappingQueryParamsPartnerItemTypeField> partnerItemType) { 111 this.partnerItemType = partnerItemType; 112 return this; 113 } 114 115 public Builder partnerItemId(String partnerItemId) { 116 this.partnerItemId = partnerItemId; 117 return this; 118 } 119 120 public Builder boxItemId(String boxItemId) { 121 this.boxItemId = boxItemId; 122 return this; 123 } 124 125 public Builder boxItemType(GetSlackIntegrationMappingQueryParamsBoxItemTypeField boxItemType) { 126 this.boxItemType = 127 new EnumWrapper<GetSlackIntegrationMappingQueryParamsBoxItemTypeField>(boxItemType); 128 return this; 129 } 130 131 public Builder boxItemType( 132 EnumWrapper<GetSlackIntegrationMappingQueryParamsBoxItemTypeField> boxItemType) { 133 this.boxItemType = boxItemType; 134 return this; 135 } 136 137 public Builder isManuallyCreated(Boolean isManuallyCreated) { 138 this.isManuallyCreated = isManuallyCreated; 139 return this; 140 } 141 142 public GetSlackIntegrationMappingQueryParams build() { 143 return new GetSlackIntegrationMappingQueryParams(this); 144 } 145 } 146}