• 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

0.0
/src/main/java/com/box/sdkgen/schemas/signtemplate/SignTemplateReadySignLinkField.java
1
package com.box.sdkgen.schemas.signtemplate;
2

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

7
public class SignTemplateReadySignLinkField extends SerializableObject {
8

9
  protected String url;
10

11
  protected String name;
12

13
  protected String instructions;
14

15
  @JsonProperty("folder_id")
16
  protected String folderId;
17

18
  @JsonProperty("is_notification_disabled")
19
  protected Boolean isNotificationDisabled;
20

21
  @JsonProperty("is_active")
22
  protected Boolean isActive;
23

24
  public SignTemplateReadySignLinkField() {
25
    super();
×
26
  }
×
27

28
  protected SignTemplateReadySignLinkField(Builder builder) {
29
    super();
×
30
    this.url = builder.url;
×
31
    this.name = builder.name;
×
32
    this.instructions = builder.instructions;
×
33
    this.folderId = builder.folderId;
×
34
    this.isNotificationDisabled = builder.isNotificationDisabled;
×
35
    this.isActive = builder.isActive;
×
36
  }
×
37

38
  public String getUrl() {
39
    return url;
×
40
  }
41

42
  public String getName() {
43
    return name;
×
44
  }
45

46
  public String getInstructions() {
47
    return instructions;
×
48
  }
49

50
  public String getFolderId() {
51
    return folderId;
×
52
  }
53

54
  public Boolean getIsNotificationDisabled() {
55
    return isNotificationDisabled;
×
56
  }
57

58
  public Boolean getIsActive() {
59
    return isActive;
×
60
  }
61

62
  @Override
63
  public boolean equals(Object o) {
64
    if (this == o) {
×
65
      return true;
×
66
    }
67
    if (o == null || getClass() != o.getClass()) {
×
68
      return false;
×
69
    }
70
    SignTemplateReadySignLinkField casted = (SignTemplateReadySignLinkField) o;
×
71
    return Objects.equals(url, casted.url)
×
72
        && Objects.equals(name, casted.name)
×
73
        && Objects.equals(instructions, casted.instructions)
×
74
        && Objects.equals(folderId, casted.folderId)
×
75
        && Objects.equals(isNotificationDisabled, casted.isNotificationDisabled)
×
76
        && Objects.equals(isActive, casted.isActive);
×
77
  }
78

79
  @Override
80
  public int hashCode() {
81
    return Objects.hash(url, name, instructions, folderId, isNotificationDisabled, isActive);
×
82
  }
83

84
  @Override
85
  public String toString() {
86
    return "SignTemplateReadySignLinkField{"
×
87
        + "url='"
88
        + url
89
        + '\''
90
        + ", "
91
        + "name='"
92
        + name
93
        + '\''
94
        + ", "
95
        + "instructions='"
96
        + instructions
97
        + '\''
98
        + ", "
99
        + "folderId='"
100
        + folderId
101
        + '\''
102
        + ", "
103
        + "isNotificationDisabled='"
104
        + isNotificationDisabled
105
        + '\''
106
        + ", "
107
        + "isActive='"
108
        + isActive
109
        + '\''
110
        + "}";
111
  }
112

NEW
113
  public static class Builder {
×
114

115
    protected String url;
116

117
    protected String name;
118

119
    protected String instructions;
120

121
    protected String folderId;
122

123
    protected Boolean isNotificationDisabled;
124

125
    protected Boolean isActive;
126

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

132
    public Builder name(String name) {
133
      this.name = name;
×
134
      return this;
×
135
    }
136

137
    public Builder instructions(String instructions) {
138
      this.instructions = instructions;
×
139
      return this;
×
140
    }
141

142
    public Builder folderId(String folderId) {
143
      this.folderId = folderId;
×
144
      return this;
×
145
    }
146

147
    public Builder isNotificationDisabled(Boolean isNotificationDisabled) {
UNCOV
148
      this.isNotificationDisabled = isNotificationDisabled;
×
149
      return this;
×
150
    }
151

152
    public Builder isActive(Boolean isActive) {
153
      this.isActive = isActive;
×
154
      return this;
×
155
    }
156

157
    public SignTemplateReadySignLinkField build() {
158
      return new SignTemplateReadySignLinkField(this);
×
159
    }
160
  }
161
}
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