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

box / box-java-sdk-gen / #293

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#293

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 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
  protected String url;
13

14
  protected UpdateWebLinkByIdRequestBodyParentField parent;
15

16
  protected String name;
17

18
  protected String description;
19

20
  @JsonProperty("shared_link")
21
  protected UpdateWebLinkByIdRequestBodySharedLinkField sharedLink;
22

23
  public UpdateWebLinkByIdRequestBody() {
UNCOV
24
    super();
×
UNCOV
25
  }
×
26

27
  protected UpdateWebLinkByIdRequestBody(Builder builder) {
28
    super();
1✔
29
    this.url = builder.url;
1✔
30
    this.parent = builder.parent;
1✔
31
    this.name = builder.name;
1✔
32
    this.description = builder.description;
1✔
33
    this.sharedLink = builder.sharedLink;
1✔
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
35
  }
1✔
36

37
  public String getUrl() {
38
    return url;
1✔
39
  }
40

41
  public UpdateWebLinkByIdRequestBodyParentField getParent() {
42
    return parent;
1✔
43
  }
44

45
  public String getName() {
46
    return name;
1✔
47
  }
48

49
  public String getDescription() {
50
    return description;
1✔
51
  }
52

53
  public UpdateWebLinkByIdRequestBodySharedLinkField getSharedLink() {
54
    return sharedLink;
1✔
55
  }
56

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

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

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

103
  public static class Builder extends NullableFieldTracker {
1✔
104

105
    protected String url;
106

107
    protected UpdateWebLinkByIdRequestBodyParentField parent;
108

109
    protected String name;
110

111
    protected String description;
112

113
    protected UpdateWebLinkByIdRequestBodySharedLinkField sharedLink;
114

115
    public Builder url(String url) {
UNCOV
116
      this.url = url;
×
117
      return this;
×
118
    }
119

120
    public Builder parent(UpdateWebLinkByIdRequestBodyParentField parent) {
UNCOV
121
      this.parent = parent;
×
UNCOV
122
      return this;
×
123
    }
124

125
    public Builder name(String name) {
126
      this.name = name;
1✔
127
      return this;
1✔
128
    }
129

130
    public Builder description(String description) {
UNCOV
131
      this.description = description;
×
UNCOV
132
      return this;
×
133
    }
134

135
    public Builder sharedLink(UpdateWebLinkByIdRequestBodySharedLinkField sharedLink) {
136
      this.sharedLink = sharedLink;
1✔
137
      return this;
1✔
138
    }
139

140
    public UpdateWebLinkByIdRequestBody build() {
141
      return new UpdateWebLinkByIdRequestBody(this);
1✔
142
    }
143
  }
144
}
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