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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

47.37
/src/main/java/com/box/sdkgen/managers/weblinks/UpdateWebLinkByIdRequestBody.java
1
package com.box.sdkgen.managers.weblinks;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.fasterxml.jackson.annotation.JsonProperty;
5
import java.util.Objects;
6

7
public class UpdateWebLinkByIdRequestBody extends SerializableObject {
8

9
  protected String url;
10

11
  protected UpdateWebLinkByIdRequestBodyParentField parent;
12

13
  protected String name;
14

15
  protected String description;
16

17
  @JsonProperty("shared_link")
18
  protected UpdateWebLinkByIdRequestBodySharedLinkField sharedLink;
19

20
  public UpdateWebLinkByIdRequestBody() {
21
    super();
×
22
  }
×
23

24
  protected UpdateWebLinkByIdRequestBody(Builder builder) {
25
    super();
1✔
26
    this.url = builder.url;
1✔
27
    this.parent = builder.parent;
1✔
28
    this.name = builder.name;
1✔
29
    this.description = builder.description;
1✔
30
    this.sharedLink = builder.sharedLink;
1✔
31
  }
1✔
32

33
  public String getUrl() {
34
    return url;
1✔
35
  }
36

37
  public UpdateWebLinkByIdRequestBodyParentField getParent() {
38
    return parent;
1✔
39
  }
40

41
  public String getName() {
42
    return name;
1✔
43
  }
44

45
  public String getDescription() {
46
    return description;
1✔
47
  }
48

49
  public UpdateWebLinkByIdRequestBodySharedLinkField getSharedLink() {
50
    return sharedLink;
1✔
51
  }
52

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

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

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

99
  public static class Builder {
1✔
100

101
    protected String url;
102

103
    protected UpdateWebLinkByIdRequestBodyParentField parent;
104

105
    protected String name;
106

107
    protected String description;
108

109
    protected UpdateWebLinkByIdRequestBodySharedLinkField sharedLink;
110

111
    public Builder url(String url) {
112
      this.url = url;
×
113
      return this;
×
114
    }
115

116
    public Builder parent(UpdateWebLinkByIdRequestBodyParentField parent) {
UNCOV
117
      this.parent = parent;
×
118
      return this;
×
119
    }
120

121
    public Builder name(String name) {
122
      this.name = name;
1✔
123
      return this;
1✔
124
    }
125

126
    public Builder description(String description) {
127
      this.description = description;
×
128
      return this;
×
129
    }
130

131
    public Builder sharedLink(UpdateWebLinkByIdRequestBodySharedLinkField sharedLink) {
132
      this.sharedLink = sharedLink;
1✔
133
      return this;
1✔
134
    }
135

136
    public UpdateWebLinkByIdRequestBody build() {
137
      return new UpdateWebLinkByIdRequestBody(this);
1✔
138
    }
139
  }
140
}
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