• 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

57.14
/src/main/java/com/box/sdkgen/managers/weblinks/CreateWebLinkRequestBody.java
1
package com.box.sdkgen.managers.weblinks;
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 CreateWebLinkRequestBody extends SerializableObject {
11

12
  /** The URL that this web link links to. Must start with `"http://"` or `"https://"`. */
13
  protected final String url;
14

15
  /** The parent folder to create the web link within. */
16
  protected final CreateWebLinkRequestBodyParentField parent;
17

18
  /** Name of the web link. Defaults to the URL if not set. */
19
  protected String name;
20

21
  /** Description of the web link. */
22
  protected String description;
23

24
  public CreateWebLinkRequestBody(
25
      @JsonProperty("url") String url,
26
      @JsonProperty("parent") CreateWebLinkRequestBodyParentField parent) {
27
    super();
×
28
    this.url = url;
×
29
    this.parent = parent;
×
30
  }
×
31

32
  protected CreateWebLinkRequestBody(Builder builder) {
33
    super();
1✔
34
    this.url = builder.url;
1✔
35
    this.parent = builder.parent;
1✔
36
    this.name = builder.name;
1✔
37
    this.description = builder.description;
1✔
38
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
39
  }
1✔
40

41
  public String getUrl() {
42
    return url;
1✔
43
  }
44

45
  public CreateWebLinkRequestBodyParentField getParent() {
46
    return parent;
1✔
47
  }
48

49
  public String getName() {
50
    return name;
1✔
51
  }
52

53
  public String getDescription() {
54
    return description;
1✔
55
  }
56

57
  @Override
58
  public boolean equals(Object o) {
59
    if (this == o) {
×
60
      return true;
×
61
    }
62
    if (o == null || getClass() != o.getClass()) {
×
63
      return false;
×
64
    }
65
    CreateWebLinkRequestBody casted = (CreateWebLinkRequestBody) o;
×
66
    return Objects.equals(url, casted.url)
×
67
        && Objects.equals(parent, casted.parent)
×
68
        && Objects.equals(name, casted.name)
×
69
        && Objects.equals(description, casted.description);
×
70
  }
71

72
  @Override
73
  public int hashCode() {
74
    return Objects.hash(url, parent, name, description);
×
75
  }
76

77
  @Override
78
  public String toString() {
79
    return "CreateWebLinkRequestBody{"
×
80
        + "url='"
81
        + url
82
        + '\''
83
        + ", "
84
        + "parent='"
85
        + parent
86
        + '\''
87
        + ", "
88
        + "name='"
89
        + name
90
        + '\''
91
        + ", "
92
        + "description='"
93
        + description
94
        + '\''
95
        + "}";
96
  }
97

98
  public static class Builder extends NullableFieldTracker {
99

100
    protected final String url;
101

102
    protected final CreateWebLinkRequestBodyParentField parent;
103

104
    protected String name;
105

106
    protected String description;
107

108
    public Builder(String url, CreateWebLinkRequestBodyParentField parent) {
109
      super();
1✔
110
      this.url = url;
1✔
111
      this.parent = parent;
1✔
112
    }
1✔
113

114
    public Builder name(String name) {
115
      this.name = name;
1✔
116
      return this;
1✔
117
    }
118

119
    public Builder description(String description) {
120
      this.description = description;
1✔
121
      return this;
1✔
122
    }
123

124
    public CreateWebLinkRequestBody build() {
125
      return new CreateWebLinkRequestBody(this);
1✔
126
    }
127
  }
128
}
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