001package com.box.sdkgen.managers.metadatacascadepolicies;
002
003public class GetMetadataCascadePoliciesQueryParams {
004
005  /**
006   * Specifies which folder to return policies for. This can not be used on the root folder with ID
007   * `0`.
008   */
009  public final String folderId;
010
011  /**
012   * The ID of the enterprise ID for which to find metadata cascade policies. If not specified, it
013   * defaults to the current enterprise.
014   */
015  public String ownerEnterpriseId;
016
017  /**
018   * Defines the position marker at which to begin returning results. This is used when paginating
019   * using marker-based pagination.
020   *
021   * <p>This requires `usemarker` to be set to `true`.
022   */
023  public String marker;
024
025  /**
026   * The offset of the item at which to begin the response.
027   *
028   * <p>Queries with offset parameter value exceeding 10000 will be rejected with a 400 response.
029   */
030  public Long offset;
031
032  public GetMetadataCascadePoliciesQueryParams(String folderId) {
033    this.folderId = folderId;
034  }
035
036  protected GetMetadataCascadePoliciesQueryParams(Builder builder) {
037    this.folderId = builder.folderId;
038    this.ownerEnterpriseId = builder.ownerEnterpriseId;
039    this.marker = builder.marker;
040    this.offset = builder.offset;
041  }
042
043  public String getFolderId() {
044    return folderId;
045  }
046
047  public String getOwnerEnterpriseId() {
048    return ownerEnterpriseId;
049  }
050
051  public String getMarker() {
052    return marker;
053  }
054
055  public Long getOffset() {
056    return offset;
057  }
058
059  public static class Builder {
060
061    protected final String folderId;
062
063    protected String ownerEnterpriseId;
064
065    protected String marker;
066
067    protected Long offset;
068
069    public Builder(String folderId) {
070      this.folderId = folderId;
071    }
072
073    public Builder ownerEnterpriseId(String ownerEnterpriseId) {
074      this.ownerEnterpriseId = ownerEnterpriseId;
075      return this;
076    }
077
078    public Builder marker(String marker) {
079      this.marker = marker;
080      return this;
081    }
082
083    public Builder offset(Long offset) {
084      this.offset = offset;
085      return this;
086    }
087
088    public GetMetadataCascadePoliciesQueryParams build() {
089      return new GetMetadataCascadePoliciesQueryParams(this);
090    }
091  }
092}