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

box / box-java-sdk / #5538

06 Nov 2025 12:18PM UTC coverage: 13.292% (-0.02%) from 13.315%
#5538

Pull #1552

github

web-flow
Merge 158cb9946 into 7fe53b9a9
Pull Request #1552: docs(boxsdkgen): Modify Archive API (box/box-openapi#563)

0 of 115 new or added lines in 7 files covered. (0.0%)

1 existing line in 1 file now uncovered.

8368 of 62957 relevant lines covered (13.29%)

0.13 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/v2025r0/weblinkreferencev2025r0/WeblinkReferenceV2025R0.java
1
package com.box.sdkgen.schemas.v2025r0.weblinkreferencev2025r0;
2

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

12
/** Web link reference. */
13
@JsonFilter("nullablePropertyFilter")
14
public class WeblinkReferenceV2025R0 extends SerializableObject {
15

16
  /** The value will always be `web_link`. */
17
  @JsonDeserialize(
18
      using = WeblinkReferenceV2025R0TypeField.WeblinkReferenceV2025R0TypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using = WeblinkReferenceV2025R0TypeField.WeblinkReferenceV2025R0TypeFieldSerializer.class)
21
  protected EnumWrapper<WeblinkReferenceV2025R0TypeField> type;
22

23
  /** ID of the web link. */
24
  protected final String id;
25

26
  public WeblinkReferenceV2025R0(@JsonProperty("id") String id) {
27
    super();
×
28
    this.id = id;
×
29
    this.type =
×
30
        new EnumWrapper<WeblinkReferenceV2025R0TypeField>(
31
            WeblinkReferenceV2025R0TypeField.WEB_LINK);
UNCOV
32
  }
×
33

34
  protected WeblinkReferenceV2025R0(Builder builder) {
35
    super();
×
36
    this.type = builder.type;
×
37
    this.id = builder.id;
×
38
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
39
  }
×
40

41
  public EnumWrapper<WeblinkReferenceV2025R0TypeField> getType() {
42
    return type;
×
43
  }
44

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

49
  @Override
50
  public boolean equals(Object o) {
51
    if (this == o) {
×
52
      return true;
×
53
    }
54
    if (o == null || getClass() != o.getClass()) {
×
55
      return false;
×
56
    }
57
    WeblinkReferenceV2025R0 casted = (WeblinkReferenceV2025R0) o;
×
58
    return Objects.equals(type, casted.type) && Objects.equals(id, casted.id);
×
59
  }
60

61
  @Override
62
  public int hashCode() {
63
    return Objects.hash(type, id);
×
64
  }
65

66
  @Override
67
  public String toString() {
68
    return "WeblinkReferenceV2025R0{" + "type='" + type + '\'' + ", " + "id='" + id + '\'' + "}";
×
69
  }
70

71
  public static class Builder extends NullableFieldTracker {
72

73
    protected EnumWrapper<WeblinkReferenceV2025R0TypeField> type;
74

75
    protected final String id;
76

77
    public Builder(String id) {
78
      super();
×
79
      this.id = id;
×
80
      this.type =
×
81
          new EnumWrapper<WeblinkReferenceV2025R0TypeField>(
82
              WeblinkReferenceV2025R0TypeField.WEB_LINK);
83
    }
×
84

85
    public Builder type(WeblinkReferenceV2025R0TypeField type) {
86
      this.type = new EnumWrapper<WeblinkReferenceV2025R0TypeField>(type);
×
87
      return this;
×
88
    }
89

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

95
    public WeblinkReferenceV2025R0 build() {
96
      return new WeblinkReferenceV2025R0(this);
×
97
    }
98
  }
99
}
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

© 2025 Coveralls, Inc