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

box / box-java-sdk-gen / #296

25 Jun 2025 10:12AM UTC coverage: 35.677% (-0.05%) from 35.723%
#296

Pull #348

github

web-flow
Merge d48b178e0 into d8480ee6c
Pull Request #348: chore: Update .codegen.json with commit hash of codegen and openapi spec

68 of 82 new or added lines in 2 files covered. (82.93%)

11820 existing lines in 631 files now uncovered.

16946 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

39.39
/src/main/java/com/box/sdkgen/managers/retentionpolicies/UpdateRetentionPolicyByIdRequestBody.java
1
package com.box.sdkgen.managers.retentionpolicies;
2

3
import com.box.sdkgen.internal.Nullable;
4
import com.box.sdkgen.internal.NullableFieldTracker;
5
import com.box.sdkgen.internal.SerializableObject;
6
import com.box.sdkgen.schemas.userbase.UserBase;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import java.util.List;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class UpdateRetentionPolicyByIdRequestBody extends SerializableObject {
14

15
  @JsonProperty("policy_name")
16
  @Nullable
17
  protected String policyName;
18

19
  @Nullable protected String description;
20

21
  @JsonProperty("disposition_action")
22
  protected String dispositionAction;
23

24
  @JsonProperty("retention_type")
25
  @Nullable
26
  protected String retentionType;
27

28
  @JsonProperty("retention_length")
29
  protected String retentionLength;
30

31
  @Nullable protected String status;
32

33
  @JsonProperty("can_owner_extend_retention")
34
  @Nullable
35
  protected Boolean canOwnerExtendRetention;
36

37
  @JsonProperty("are_owners_notified")
38
  @Nullable
39
  protected Boolean areOwnersNotified;
40

41
  @JsonProperty("custom_notification_recipients")
42
  @Nullable
43
  protected List<UserBase> customNotificationRecipients;
44

45
  public UpdateRetentionPolicyByIdRequestBody() {
UNCOV
46
    super();
×
UNCOV
47
  }
×
48

49
  protected UpdateRetentionPolicyByIdRequestBody(Builder builder) {
50
    super();
1✔
51
    this.policyName = builder.policyName;
1✔
52
    this.description = builder.description;
1✔
53
    this.dispositionAction = builder.dispositionAction;
1✔
54
    this.retentionType = builder.retentionType;
1✔
55
    this.retentionLength = builder.retentionLength;
1✔
56
    this.status = builder.status;
1✔
57
    this.canOwnerExtendRetention = builder.canOwnerExtendRetention;
1✔
58
    this.areOwnersNotified = builder.areOwnersNotified;
1✔
59
    this.customNotificationRecipients = builder.customNotificationRecipients;
1✔
60
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
61
  }
1✔
62

63
  public String getPolicyName() {
64
    return policyName;
1✔
65
  }
66

67
  public String getDescription() {
68
    return description;
1✔
69
  }
70

71
  public String getDispositionAction() {
72
    return dispositionAction;
1✔
73
  }
74

75
  public String getRetentionType() {
76
    return retentionType;
1✔
77
  }
78

79
  public String getRetentionLength() {
80
    return retentionLength;
1✔
81
  }
82

83
  public String getStatus() {
84
    return status;
1✔
85
  }
86

87
  public Boolean getCanOwnerExtendRetention() {
88
    return canOwnerExtendRetention;
1✔
89
  }
90

91
  public Boolean getAreOwnersNotified() {
92
    return areOwnersNotified;
1✔
93
  }
94

95
  public List<UserBase> getCustomNotificationRecipients() {
96
    return customNotificationRecipients;
1✔
97
  }
98

99
  @Override
100
  public boolean equals(Object o) {
101
    if (this == o) {
×
102
      return true;
×
103
    }
104
    if (o == null || getClass() != o.getClass()) {
×
105
      return false;
×
106
    }
UNCOV
107
    UpdateRetentionPolicyByIdRequestBody casted = (UpdateRetentionPolicyByIdRequestBody) o;
×
UNCOV
108
    return Objects.equals(policyName, casted.policyName)
×
UNCOV
109
        && Objects.equals(description, casted.description)
×
UNCOV
110
        && Objects.equals(dispositionAction, casted.dispositionAction)
×
111
        && Objects.equals(retentionType, casted.retentionType)
×
UNCOV
112
        && Objects.equals(retentionLength, casted.retentionLength)
×
UNCOV
113
        && Objects.equals(status, casted.status)
×
UNCOV
114
        && Objects.equals(canOwnerExtendRetention, casted.canOwnerExtendRetention)
×
UNCOV
115
        && Objects.equals(areOwnersNotified, casted.areOwnersNotified)
×
UNCOV
116
        && Objects.equals(customNotificationRecipients, casted.customNotificationRecipients);
×
117
  }
118

119
  @Override
120
  public int hashCode() {
UNCOV
121
    return Objects.hash(
×
122
        policyName,
123
        description,
124
        dispositionAction,
125
        retentionType,
126
        retentionLength,
127
        status,
128
        canOwnerExtendRetention,
129
        areOwnersNotified,
130
        customNotificationRecipients);
131
  }
132

133
  @Override
134
  public String toString() {
UNCOV
135
    return "UpdateRetentionPolicyByIdRequestBody{"
×
136
        + "policyName='"
137
        + policyName
138
        + '\''
139
        + ", "
140
        + "description='"
141
        + description
142
        + '\''
143
        + ", "
144
        + "dispositionAction='"
145
        + dispositionAction
146
        + '\''
147
        + ", "
148
        + "retentionType='"
149
        + retentionType
150
        + '\''
151
        + ", "
152
        + "retentionLength='"
153
        + retentionLength
154
        + '\''
155
        + ", "
156
        + "status='"
157
        + status
158
        + '\''
159
        + ", "
160
        + "canOwnerExtendRetention='"
161
        + canOwnerExtendRetention
162
        + '\''
163
        + ", "
164
        + "areOwnersNotified='"
165
        + areOwnersNotified
166
        + '\''
167
        + ", "
168
        + "customNotificationRecipients='"
169
        + customNotificationRecipients
170
        + '\''
171
        + "}";
172
  }
173

174
  public static class Builder extends NullableFieldTracker {
1✔
175

176
    protected String policyName;
177

178
    protected String description;
179

180
    protected String dispositionAction;
181

182
    protected String retentionType;
183

184
    protected String retentionLength;
185

186
    protected String status;
187

188
    protected Boolean canOwnerExtendRetention;
189

190
    protected Boolean areOwnersNotified;
191

192
    protected List<UserBase> customNotificationRecipients;
193

194
    public Builder policyName(String policyName) {
195
      this.policyName = policyName;
1✔
196
      this.markNullableFieldAsSet("policy_name");
1✔
197
      return this;
1✔
198
    }
199

200
    public Builder description(String description) {
201
      this.description = description;
×
UNCOV
202
      this.markNullableFieldAsSet("description");
×
UNCOV
203
      return this;
×
204
    }
205

206
    public Builder dispositionAction(String dispositionAction) {
UNCOV
207
      this.dispositionAction = dispositionAction;
×
UNCOV
208
      return this;
×
209
    }
210

211
    public Builder retentionType(String retentionType) {
UNCOV
212
      this.retentionType = retentionType;
×
UNCOV
213
      this.markNullableFieldAsSet("retention_type");
×
UNCOV
214
      return this;
×
215
    }
216

217
    public Builder retentionLength(String retentionLength) {
UNCOV
218
      this.retentionLength = retentionLength;
×
UNCOV
219
      return this;
×
220
    }
221

222
    public Builder status(String status) {
UNCOV
223
      this.status = status;
×
UNCOV
224
      this.markNullableFieldAsSet("status");
×
225
      return this;
×
226
    }
227

228
    public Builder canOwnerExtendRetention(Boolean canOwnerExtendRetention) {
UNCOV
229
      this.canOwnerExtendRetention = canOwnerExtendRetention;
×
UNCOV
230
      this.markNullableFieldAsSet("can_owner_extend_retention");
×
UNCOV
231
      return this;
×
232
    }
233

234
    public Builder areOwnersNotified(Boolean areOwnersNotified) {
UNCOV
235
      this.areOwnersNotified = areOwnersNotified;
×
UNCOV
236
      this.markNullableFieldAsSet("are_owners_notified");
×
UNCOV
237
      return this;
×
238
    }
239

240
    public Builder customNotificationRecipients(List<UserBase> customNotificationRecipients) {
UNCOV
241
      this.customNotificationRecipients = customNotificationRecipients;
×
UNCOV
242
      this.markNullableFieldAsSet("custom_notification_recipients");
×
UNCOV
243
      return this;
×
244
    }
245

246
    public UpdateRetentionPolicyByIdRequestBody build() {
247
      return new UpdateRetentionPolicyByIdRequestBody(this);
1✔
248
    }
249
  }
250
}
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