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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 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
  public String policyName;
9

10
  public EnumWrapper<GetRetentionPoliciesQueryParamsPolicyTypeField> policyType;
11

12
  public String createdByUserId;
13

14
  public List<String> fields;
15

16
  public Long limit;
17

18
  public String marker;
19

20
  public GetRetentionPoliciesQueryParams() {}
1✔
21

NEW
22
  protected GetRetentionPoliciesQueryParams(Builder builder) {
×
23
    this.policyName = builder.policyName;
×
24
    this.policyType = builder.policyType;
×
25
    this.createdByUserId = builder.createdByUserId;
×
26
    this.fields = builder.fields;
×
27
    this.limit = builder.limit;
×
28
    this.marker = builder.marker;
×
29
  }
×
30

31
  public String getPolicyName() {
32
    return policyName;
1✔
33
  }
34

35
  public EnumWrapper<GetRetentionPoliciesQueryParamsPolicyTypeField> getPolicyType() {
36
    return policyType;
1✔
37
  }
38

39
  public String getCreatedByUserId() {
40
    return createdByUserId;
1✔
41
  }
42

43
  public List<String> getFields() {
44
    return fields;
1✔
45
  }
46

47
  public Long getLimit() {
48
    return limit;
1✔
49
  }
50

51
  public String getMarker() {
52
    return marker;
1✔
53
  }
54

NEW
55
  public static class Builder {
×
56

57
    protected String policyName;
58

59
    protected EnumWrapper<GetRetentionPoliciesQueryParamsPolicyTypeField> policyType;
60

61
    protected String createdByUserId;
62

63
    protected List<String> fields;
64

65
    protected Long limit;
66

67
    protected String marker;
68

69
    public Builder policyName(String policyName) {
70
      this.policyName = policyName;
×
71
      return this;
×
72
    }
73

74
    public Builder policyType(GetRetentionPoliciesQueryParamsPolicyTypeField policyType) {
UNCOV
75
      this.policyType = new EnumWrapper<GetRetentionPoliciesQueryParamsPolicyTypeField>(policyType);
×
76
      return this;
×
77
    }
78

79
    public Builder policyType(
80
        EnumWrapper<GetRetentionPoliciesQueryParamsPolicyTypeField> policyType) {
81
      this.policyType = policyType;
×
82
      return this;
×
83
    }
84

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

90
    public Builder fields(List<String> fields) {
91
      this.fields = fields;
×
92
      return this;
×
93
    }
94

95
    public Builder limit(Long limit) {
96
      this.limit = limit;
×
97
      return this;
×
98
    }
99

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

105
    public GetRetentionPoliciesQueryParams build() {
106
      return new GetRetentionPoliciesQueryParams(this);
×
107
    }
108
  }
109
}
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