001package com.box.sdkgen.managers.downloads; 002 003public class GetDownloadFileUrlQueryParams { 004 005 /** The file version to download. */ 006 public String version; 007 008 /** 009 * An optional access token that can be used to pre-authenticate this request, which means that a 010 * download link can be shared with a browser or a third party service without them needing to 011 * know how to handle the authentication. When using this parameter, please make sure that the 012 * access token is sufficiently scoped down to only allow read access to that file and no other 013 * files or folders. 014 */ 015 public String accessToken; 016 017 public GetDownloadFileUrlQueryParams() {} 018 019 protected GetDownloadFileUrlQueryParams(Builder builder) { 020 this.version = builder.version; 021 this.accessToken = builder.accessToken; 022 } 023 024 public String getVersion() { 025 return version; 026 } 027 028 public String getAccessToken() { 029 return accessToken; 030 } 031 032 public static class Builder { 033 034 protected String version; 035 036 protected String accessToken; 037 038 public Builder version(String version) { 039 this.version = version; 040 return this; 041 } 042 043 public Builder accessToken(String accessToken) { 044 this.accessToken = accessToken; 045 return this; 046 } 047 048 public GetDownloadFileUrlQueryParams build() { 049 return new GetDownloadFileUrlQueryParams(this); 050 } 051 } 052}