• 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

2.63
/src/main/java/com/box/sdkgen/schemas/signrequestsigner/SignRequestSigner.java
1
package com.box.sdkgen.schemas.signrequestsigner;
2

3
import com.box.sdkgen.schemas.signrequestcreatesigner.SignRequestCreateSigner;
4
import com.box.sdkgen.schemas.signrequestcreatesigner.SignRequestCreateSignerRoleField;
5
import com.box.sdkgen.schemas.signrequestsignerinput.SignRequestSignerInput;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.List;
9
import java.util.Objects;
10

11
public class SignRequestSigner extends SignRequestCreateSigner {
12

13
  @JsonProperty("has_viewed_document")
14
  protected Boolean hasViewedDocument;
15

16
  @JsonProperty("signer_decision")
17
  protected SignRequestSignerSignerDecisionField signerDecision;
18

19
  protected List<SignRequestSignerInput> inputs;
20

21
  @JsonProperty("embed_url")
22
  protected String embedUrl;
23

24
  @JsonProperty("iframeable_embed_url")
25
  protected String iframeableEmbedUrl;
26

27
  public SignRequestSigner() {
28
    super();
1✔
29
  }
1✔
30

31
  protected SignRequestSigner(Builder builder) {
32
    super(builder);
×
33
    this.hasViewedDocument = builder.hasViewedDocument;
×
34
    this.signerDecision = builder.signerDecision;
×
35
    this.inputs = builder.inputs;
×
36
    this.embedUrl = builder.embedUrl;
×
37
    this.iframeableEmbedUrl = builder.iframeableEmbedUrl;
×
38
  }
×
39

40
  public Boolean getHasViewedDocument() {
41
    return hasViewedDocument;
×
42
  }
43

44
  public SignRequestSignerSignerDecisionField getSignerDecision() {
45
    return signerDecision;
×
46
  }
47

48
  public List<SignRequestSignerInput> getInputs() {
49
    return inputs;
×
50
  }
51

52
  public String getEmbedUrl() {
53
    return embedUrl;
×
54
  }
55

56
  public String getIframeableEmbedUrl() {
57
    return iframeableEmbedUrl;
×
58
  }
59

60
  @Override
61
  public boolean equals(Object o) {
62
    if (this == o) {
×
63
      return true;
×
64
    }
65
    if (o == null || getClass() != o.getClass()) {
×
66
      return false;
×
67
    }
68
    SignRequestSigner casted = (SignRequestSigner) o;
×
69
    return Objects.equals(email, casted.email)
×
70
        && Objects.equals(role, casted.role)
×
71
        && Objects.equals(isInPerson, casted.isInPerson)
×
72
        && Objects.equals(order, casted.order)
×
73
        && Objects.equals(embedUrlExternalUserId, casted.embedUrlExternalUserId)
×
74
        && Objects.equals(redirectUrl, casted.redirectUrl)
×
75
        && Objects.equals(declinedRedirectUrl, casted.declinedRedirectUrl)
×
76
        && Objects.equals(loginRequired, casted.loginRequired)
×
77
        && Objects.equals(verificationPhoneNumber, casted.verificationPhoneNumber)
×
78
        && Objects.equals(password, casted.password)
×
79
        && Objects.equals(signerGroupId, casted.signerGroupId)
×
80
        && Objects.equals(suppressNotifications, casted.suppressNotifications)
×
81
        && Objects.equals(hasViewedDocument, casted.hasViewedDocument)
×
82
        && Objects.equals(signerDecision, casted.signerDecision)
×
83
        && Objects.equals(inputs, casted.inputs)
×
84
        && Objects.equals(embedUrl, casted.embedUrl)
×
85
        && Objects.equals(iframeableEmbedUrl, casted.iframeableEmbedUrl);
×
86
  }
87

88
  @Override
89
  public int hashCode() {
90
    return Objects.hash(
×
91
        email,
92
        role,
93
        isInPerson,
94
        order,
95
        embedUrlExternalUserId,
96
        redirectUrl,
97
        declinedRedirectUrl,
98
        loginRequired,
99
        verificationPhoneNumber,
100
        password,
101
        signerGroupId,
102
        suppressNotifications,
103
        hasViewedDocument,
104
        signerDecision,
105
        inputs,
106
        embedUrl,
107
        iframeableEmbedUrl);
108
  }
109

110
  @Override
111
  public String toString() {
112
    return "SignRequestSigner{"
×
113
        + "email='"
114
        + email
115
        + '\''
116
        + ", "
117
        + "role='"
118
        + role
119
        + '\''
120
        + ", "
121
        + "isInPerson='"
122
        + isInPerson
123
        + '\''
124
        + ", "
125
        + "order='"
126
        + order
127
        + '\''
128
        + ", "
129
        + "embedUrlExternalUserId='"
130
        + embedUrlExternalUserId
131
        + '\''
132
        + ", "
133
        + "redirectUrl='"
134
        + redirectUrl
135
        + '\''
136
        + ", "
137
        + "declinedRedirectUrl='"
138
        + declinedRedirectUrl
139
        + '\''
140
        + ", "
141
        + "loginRequired='"
142
        + loginRequired
143
        + '\''
144
        + ", "
145
        + "verificationPhoneNumber='"
146
        + verificationPhoneNumber
147
        + '\''
148
        + ", "
149
        + "password='"
150
        + password
151
        + '\''
152
        + ", "
153
        + "signerGroupId='"
154
        + signerGroupId
155
        + '\''
156
        + ", "
157
        + "suppressNotifications='"
158
        + suppressNotifications
159
        + '\''
160
        + ", "
161
        + "hasViewedDocument='"
162
        + hasViewedDocument
163
        + '\''
164
        + ", "
165
        + "signerDecision='"
166
        + signerDecision
167
        + '\''
168
        + ", "
169
        + "inputs='"
170
        + inputs
171
        + '\''
172
        + ", "
173
        + "embedUrl='"
174
        + embedUrl
175
        + '\''
176
        + ", "
177
        + "iframeableEmbedUrl='"
178
        + iframeableEmbedUrl
179
        + '\''
180
        + "}";
181
  }
182

NEW
183
  public static class Builder extends SignRequestCreateSigner.Builder {
×
184

185
    protected Boolean hasViewedDocument;
186

187
    protected SignRequestSignerSignerDecisionField signerDecision;
188

189
    protected List<SignRequestSignerInput> inputs;
190

191
    protected String embedUrl;
192

193
    protected String iframeableEmbedUrl;
194

195
    public Builder hasViewedDocument(Boolean hasViewedDocument) {
196
      this.hasViewedDocument = hasViewedDocument;
×
197
      return this;
×
198
    }
199

200
    public Builder signerDecision(SignRequestSignerSignerDecisionField signerDecision) {
UNCOV
201
      this.signerDecision = signerDecision;
×
202
      return this;
×
203
    }
204

205
    public Builder inputs(List<SignRequestSignerInput> inputs) {
206
      this.inputs = inputs;
×
207
      return this;
×
208
    }
209

210
    public Builder embedUrl(String embedUrl) {
211
      this.embedUrl = embedUrl;
×
212
      return this;
×
213
    }
214

215
    public Builder iframeableEmbedUrl(String iframeableEmbedUrl) {
216
      this.iframeableEmbedUrl = iframeableEmbedUrl;
×
217
      return this;
×
218
    }
219

220
    @Override
221
    public Builder email(String email) {
222
      this.email = email;
×
223
      return this;
×
224
    }
225

226
    @Override
227
    public Builder role(SignRequestCreateSignerRoleField role) {
228
      this.role = new EnumWrapper<SignRequestCreateSignerRoleField>(role);
×
229
      return this;
×
230
    }
231

232
    @Override
233
    public Builder role(EnumWrapper<SignRequestCreateSignerRoleField> role) {
234
      this.role = role;
×
235
      return this;
×
236
    }
237

238
    @Override
239
    public Builder isInPerson(Boolean isInPerson) {
240
      this.isInPerson = isInPerson;
×
241
      return this;
×
242
    }
243

244
    @Override
245
    public Builder order(Long order) {
246
      this.order = order;
×
247
      return this;
×
248
    }
249

250
    @Override
251
    public Builder embedUrlExternalUserId(String embedUrlExternalUserId) {
252
      this.embedUrlExternalUserId = embedUrlExternalUserId;
×
253
      return this;
×
254
    }
255

256
    @Override
257
    public Builder redirectUrl(String redirectUrl) {
258
      this.redirectUrl = redirectUrl;
×
259
      return this;
×
260
    }
261

262
    @Override
263
    public Builder declinedRedirectUrl(String declinedRedirectUrl) {
264
      this.declinedRedirectUrl = declinedRedirectUrl;
×
265
      return this;
×
266
    }
267

268
    @Override
269
    public Builder loginRequired(Boolean loginRequired) {
270
      this.loginRequired = loginRequired;
×
271
      return this;
×
272
    }
273

274
    @Override
275
    public Builder verificationPhoneNumber(String verificationPhoneNumber) {
276
      this.verificationPhoneNumber = verificationPhoneNumber;
×
277
      return this;
×
278
    }
279

280
    @Override
281
    public Builder password(String password) {
282
      this.password = password;
×
283
      return this;
×
284
    }
285

286
    @Override
287
    public Builder signerGroupId(String signerGroupId) {
288
      this.signerGroupId = signerGroupId;
×
289
      return this;
×
290
    }
291

292
    @Override
293
    public Builder suppressNotifications(Boolean suppressNotifications) {
294
      this.suppressNotifications = suppressNotifications;
×
295
      return this;
×
296
    }
297

298
    public SignRequestSigner build() {
299
      return new SignRequestSigner(this);
×
300
    }
301
  }
302
}
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