• 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

6.9
/src/main/java/com/box/sdkgen/schemas/retentionpolicy/RetentionPolicyAssignmentCountsField.java
1
package com.box.sdkgen.schemas.retentionpolicy;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
@JsonFilter("nullablePropertyFilter")
10
public class RetentionPolicyAssignmentCountsField extends SerializableObject {
11

12
  /** The number of enterprise assignments this policy has. The maximum value is 1. */
13
  protected Long enterprise;
14

15
  /** The number of folder assignments this policy has. */
16
  protected Long folder;
17

18
  /** The number of metadata template assignments this policy has. */
19
  @JsonProperty("metadata_template")
20
  protected Long metadataTemplate;
21

22
  public RetentionPolicyAssignmentCountsField() {
23
    super();
1✔
24
  }
1✔
25

26
  protected RetentionPolicyAssignmentCountsField(Builder builder) {
27
    super();
×
28
    this.enterprise = builder.enterprise;
×
29
    this.folder = builder.folder;
×
30
    this.metadataTemplate = builder.metadataTemplate;
×
31
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
32
  }
×
33

34
  public Long getEnterprise() {
35
    return enterprise;
×
36
  }
37

38
  public Long getFolder() {
39
    return folder;
×
40
  }
41

42
  public Long getMetadataTemplate() {
43
    return metadataTemplate;
×
44
  }
45

46
  @Override
47
  public boolean equals(Object o) {
48
    if (this == o) {
×
49
      return true;
×
50
    }
51
    if (o == null || getClass() != o.getClass()) {
×
52
      return false;
×
53
    }
54
    RetentionPolicyAssignmentCountsField casted = (RetentionPolicyAssignmentCountsField) o;
×
55
    return Objects.equals(enterprise, casted.enterprise)
×
56
        && Objects.equals(folder, casted.folder)
×
57
        && Objects.equals(metadataTemplate, casted.metadataTemplate);
×
58
  }
59

60
  @Override
61
  public int hashCode() {
62
    return Objects.hash(enterprise, folder, metadataTemplate);
×
63
  }
64

65
  @Override
66
  public String toString() {
67
    return "RetentionPolicyAssignmentCountsField{"
×
68
        + "enterprise='"
69
        + enterprise
70
        + '\''
71
        + ", "
72
        + "folder='"
73
        + folder
74
        + '\''
75
        + ", "
76
        + "metadataTemplate='"
77
        + metadataTemplate
78
        + '\''
79
        + "}";
80
  }
81

82
  public static class Builder extends NullableFieldTracker {
×
83

84
    protected Long enterprise;
85

86
    protected Long folder;
87

88
    protected Long metadataTemplate;
89

90
    public Builder enterprise(Long enterprise) {
91
      this.enterprise = enterprise;
×
92
      return this;
×
93
    }
94

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

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

105
    public RetentionPolicyAssignmentCountsField build() {
106
      return new RetentionPolicyAssignmentCountsField(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