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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

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

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

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

14
  protected final CreateWebLinkRequestBodyParentField parent;
15

16
  protected String name;
17

18
  protected String description;
19

20
  public CreateWebLinkRequestBody(
21
      @JsonProperty("url") String url,
22
      @JsonProperty("parent") CreateWebLinkRequestBodyParentField parent) {
23
    super();
×
UNCOV
24
    this.url = url;
×
UNCOV
25
    this.parent = parent;
×
UNCOV
26
  }
×
27

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

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

41
  public CreateWebLinkRequestBodyParentField 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
  @Override
54
  public boolean equals(Object o) {
55
    if (this == o) {
×
UNCOV
56
      return true;
×
57
    }
58
    if (o == null || getClass() != o.getClass()) {
×
59
      return false;
×
60
    }
61
    CreateWebLinkRequestBody casted = (CreateWebLinkRequestBody) o;
×
UNCOV
62
    return Objects.equals(url, casted.url)
×
UNCOV
63
        && Objects.equals(parent, casted.parent)
×
UNCOV
64
        && Objects.equals(name, casted.name)
×
UNCOV
65
        && Objects.equals(description, casted.description);
×
66
  }
67

68
  @Override
69
  public int hashCode() {
UNCOV
70
    return Objects.hash(url, parent, name, description);
×
71
  }
72

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

94
  public static class Builder extends NullableFieldTracker {
95

96
    protected final String url;
97

98
    protected final CreateWebLinkRequestBodyParentField parent;
99

100
    protected String name;
101

102
    protected String description;
103

104
    public Builder(String url, CreateWebLinkRequestBodyParentField parent) {
105
      super();
1✔
106
      this.url = url;
1✔
107
      this.parent = parent;
1✔
108
    }
1✔
109

110
    public Builder name(String name) {
111
      this.name = name;
1✔
112
      return this;
1✔
113
    }
114

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

120
    public CreateWebLinkRequestBody build() {
121
      return new CreateWebLinkRequestBody(this);
1✔
122
    }
123
  }
124
}
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