• 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

48.72
/src/main/java/com/box/sdkgen/managers/weblinks/UpdateWebLinkByIdRequestBody.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 UpdateWebLinkByIdRequestBody extends SerializableObject {
11

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

15
  protected UpdateWebLinkByIdRequestBodyParentField parent;
16

17
  /** A new name for the web link. Defaults to the URL if not set. */
18
  protected String name;
19

20
  /** A new description of the web link. */
21
  protected String description;
22

23
  /** The settings for the shared link to update. */
24
  @JsonProperty("shared_link")
25
  protected UpdateWebLinkByIdRequestBodySharedLinkField sharedLink;
26

27
  public UpdateWebLinkByIdRequestBody() {
28
    super();
×
29
  }
×
30

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

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

45
  public UpdateWebLinkByIdRequestBodyParentField 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
  public UpdateWebLinkByIdRequestBodySharedLinkField getSharedLink() {
58
    return sharedLink;
1✔
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
    UpdateWebLinkByIdRequestBody casted = (UpdateWebLinkByIdRequestBody) o;
×
70
    return Objects.equals(url, casted.url)
×
71
        && Objects.equals(parent, casted.parent)
×
72
        && Objects.equals(name, casted.name)
×
73
        && Objects.equals(description, casted.description)
×
74
        && Objects.equals(sharedLink, casted.sharedLink);
×
75
  }
76

77
  @Override
78
  public int hashCode() {
79
    return Objects.hash(url, parent, name, description, sharedLink);
×
80
  }
81

82
  @Override
83
  public String toString() {
84
    return "UpdateWebLinkByIdRequestBody{"
×
85
        + "url='"
86
        + url
87
        + '\''
88
        + ", "
89
        + "parent='"
90
        + parent
91
        + '\''
92
        + ", "
93
        + "name='"
94
        + name
95
        + '\''
96
        + ", "
97
        + "description='"
98
        + description
99
        + '\''
100
        + ", "
101
        + "sharedLink='"
102
        + sharedLink
103
        + '\''
104
        + "}";
105
  }
106

107
  public static class Builder extends NullableFieldTracker {
1✔
108

109
    protected String url;
110

111
    protected UpdateWebLinkByIdRequestBodyParentField parent;
112

113
    protected String name;
114

115
    protected String description;
116

117
    protected UpdateWebLinkByIdRequestBodySharedLinkField sharedLink;
118

119
    public Builder url(String url) {
120
      this.url = url;
×
121
      return this;
×
122
    }
123

124
    public Builder parent(UpdateWebLinkByIdRequestBodyParentField parent) {
125
      this.parent = parent;
×
126
      return this;
×
127
    }
128

129
    public Builder name(String name) {
130
      this.name = name;
1✔
131
      return this;
1✔
132
    }
133

134
    public Builder description(String description) {
135
      this.description = description;
×
136
      return this;
×
137
    }
138

139
    public Builder sharedLink(UpdateWebLinkByIdRequestBodySharedLinkField sharedLink) {
140
      this.sharedLink = sharedLink;
1✔
141
      return this;
1✔
142
    }
143

144
    public UpdateWebLinkByIdRequestBody build() {
145
      return new UpdateWebLinkByIdRequestBody(this);
1✔
146
    }
147
  }
148
}
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