• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

22.58
/src/main/java/com/box/sdkgen/managers/retentionpolicies/GetRetentionPoliciesQueryParams.java
1
package com.box.sdkgen.managers.retentionpolicies;
2

3
import com.box.sdkgen.serialization.json.EnumWrapper;
4
import java.util.List;
5

6
public class GetRetentionPoliciesQueryParams {
7

8
  /** Filters results by a case sensitive prefix of the name of retention policies. */
9
  public String policyName;
10

11
  /** Filters results by the type of retention policy. */
12
  public EnumWrapper<GetRetentionPoliciesQueryParamsPolicyTypeField> policyType;
13

14
  /** Filters results by the ID of the user who created policy. */
15
  public String createdByUserId;
16

17
  /**
18
   * A comma-separated list of attributes to include in the response. This can be used to request
19
   * fields that are not normally returned in a standard response.
20
   *
21
   * <p>Be aware that specifying this parameter will have the effect that none of the standard
22
   * fields are returned in the response unless explicitly specified, instead only fields for the
23
   * mini representation are returned, additional to the fields requested.
24
   */
25
  public List<String> fields;
26

27
  /** The maximum number of items to return per page. */
28
  public Long limit;
29

30
  /**
31
   * Defines the position marker at which to begin returning results. This is used when paginating
32
   * using marker-based pagination.
33
   */
34
  public String marker;
35

36
  public GetRetentionPoliciesQueryParams() {}
1✔
37

38
  protected GetRetentionPoliciesQueryParams(Builder builder) {
×
39
    this.policyName = builder.policyName;
×
40
    this.policyType = builder.policyType;
×
41
    this.createdByUserId = builder.createdByUserId;
×
42
    this.fields = builder.fields;
×
43
    this.limit = builder.limit;
×
44
    this.marker = builder.marker;
×
45
  }
×
46

47
  public String getPolicyName() {
48
    return policyName;
1✔
49
  }
50

51
  public EnumWrapper<GetRetentionPoliciesQueryParamsPolicyTypeField> getPolicyType() {
52
    return policyType;
1✔
53
  }
54

55
  public String getCreatedByUserId() {
56
    return createdByUserId;
1✔
57
  }
58

59
  public List<String> getFields() {
60
    return fields;
1✔
61
  }
62

63
  public Long getLimit() {
64
    return limit;
1✔
65
  }
66

67
  public String getMarker() {
68
    return marker;
1✔
69
  }
70

71
  public static class Builder {
×
72

73
    protected String policyName;
74

75
    protected EnumWrapper<GetRetentionPoliciesQueryParamsPolicyTypeField> policyType;
76

77
    protected String createdByUserId;
78

79
    protected List<String> fields;
80

81
    protected Long limit;
82

83
    protected String marker;
84

85
    public Builder policyName(String policyName) {
86
      this.policyName = policyName;
×
87
      return this;
×
88
    }
89

90
    public Builder policyType(GetRetentionPoliciesQueryParamsPolicyTypeField policyType) {
91
      this.policyType = new EnumWrapper<GetRetentionPoliciesQueryParamsPolicyTypeField>(policyType);
×
92
      return this;
×
93
    }
94

95
    public Builder policyType(
96
        EnumWrapper<GetRetentionPoliciesQueryParamsPolicyTypeField> policyType) {
97
      this.policyType = policyType;
×
98
      return this;
×
99
    }
100

101
    public Builder createdByUserId(String createdByUserId) {
102
      this.createdByUserId = createdByUserId;
×
103
      return this;
×
104
    }
105

106
    public Builder fields(List<String> fields) {
107
      this.fields = fields;
×
108
      return this;
×
109
    }
110

111
    public Builder limit(Long limit) {
112
      this.limit = limit;
×
113
      return this;
×
114
    }
115

116
    public Builder marker(String marker) {
117
      this.marker = marker;
×
118
      return this;
×
119
    }
120

121
    public GetRetentionPoliciesQueryParams build() {
122
      return new GetRetentionPoliciesQueryParams(this);
×
123
    }
124
  }
125
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc