• 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

0.0
/src/main/java/com/box/sdkgen/schemas/devicepinner/DevicePinner.java
1
package com.box.sdkgen.schemas.devicepinner;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.usermini.UserMini;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.util.Objects;
12

13
/** Device pins allow enterprises to control what devices can use native Box applications. */
14
@JsonFilter("nullablePropertyFilter")
15
public class DevicePinner extends SerializableObject {
16

17
  /** The unique identifier for this device pin. */
18
  protected String id;
19

20
  /** The value will always be `device_pinner`. */
21
  @JsonDeserialize(using = DevicePinnerTypeField.DevicePinnerTypeFieldDeserializer.class)
22
  @JsonSerialize(using = DevicePinnerTypeField.DevicePinnerTypeFieldSerializer.class)
23
  protected EnumWrapper<DevicePinnerTypeField> type;
24

25
  @JsonProperty("owned_by")
26
  protected UserMini ownedBy;
27

28
  /** The type of device being pinned. */
29
  @JsonProperty("product_name")
30
  protected String productName;
31

32
  public DevicePinner() {
33
    super();
×
34
  }
×
35

36
  protected DevicePinner(Builder builder) {
37
    super();
×
38
    this.id = builder.id;
×
39
    this.type = builder.type;
×
40
    this.ownedBy = builder.ownedBy;
×
41
    this.productName = builder.productName;
×
42
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
43
  }
×
44

45
  public String getId() {
46
    return id;
×
47
  }
48

49
  public EnumWrapper<DevicePinnerTypeField> getType() {
50
    return type;
×
51
  }
52

53
  public UserMini getOwnedBy() {
54
    return ownedBy;
×
55
  }
56

57
  public String getProductName() {
58
    return productName;
×
59
  }
60

61
  @Override
62
  public boolean equals(Object o) {
63
    if (this == o) {
×
64
      return true;
×
65
    }
66
    if (o == null || getClass() != o.getClass()) {
×
67
      return false;
×
68
    }
69
    DevicePinner casted = (DevicePinner) o;
×
70
    return Objects.equals(id, casted.id)
×
71
        && Objects.equals(type, casted.type)
×
72
        && Objects.equals(ownedBy, casted.ownedBy)
×
73
        && Objects.equals(productName, casted.productName);
×
74
  }
75

76
  @Override
77
  public int hashCode() {
78
    return Objects.hash(id, type, ownedBy, productName);
×
79
  }
80

81
  @Override
82
  public String toString() {
83
    return "DevicePinner{"
×
84
        + "id='"
85
        + id
86
        + '\''
87
        + ", "
88
        + "type='"
89
        + type
90
        + '\''
91
        + ", "
92
        + "ownedBy='"
93
        + ownedBy
94
        + '\''
95
        + ", "
96
        + "productName='"
97
        + productName
98
        + '\''
99
        + "}";
100
  }
101

102
  public static class Builder extends NullableFieldTracker {
×
103

104
    protected String id;
105

106
    protected EnumWrapper<DevicePinnerTypeField> type;
107

108
    protected UserMini ownedBy;
109

110
    protected String productName;
111

112
    public Builder id(String id) {
113
      this.id = id;
×
114
      return this;
×
115
    }
116

117
    public Builder type(DevicePinnerTypeField type) {
118
      this.type = new EnumWrapper<DevicePinnerTypeField>(type);
×
119
      return this;
×
120
    }
121

122
    public Builder type(EnumWrapper<DevicePinnerTypeField> type) {
123
      this.type = type;
×
124
      return this;
×
125
    }
126

127
    public Builder ownedBy(UserMini ownedBy) {
128
      this.ownedBy = ownedBy;
×
129
      return this;
×
130
    }
131

132
    public Builder productName(String productName) {
133
      this.productName = productName;
×
134
      return this;
×
135
    }
136

137
    public DevicePinner build() {
138
      return new DevicePinner(this);
×
139
    }
140
  }
141
}
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