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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

50.0
/src/main/java/com/box/sdkgen/schemas/filerequestupdaterequest/FileRequestUpdateRequest.java
1
package com.box.sdkgen.schemas.filerequestupdaterequest;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.time.OffsetDateTime;
12
import java.util.Objects;
13

14
/** The request body to update a file request. */
15
@JsonFilter("nullablePropertyFilter")
16
public class FileRequestUpdateRequest extends SerializableObject {
17

18
  /**
19
   * An optional new title for the file request. This can be used to change the title of the file
20
   * request.
21
   *
22
   * <p>This will default to the value on the existing file request.
23
   */
24
  protected String title;
25

26
  /**
27
   * An optional new description for the file request. This can be used to change the description of
28
   * the file request.
29
   *
30
   * <p>This will default to the value on the existing file request.
31
   */
32
  protected String description;
33

34
  /**
35
   * An optional new status of the file request.
36
   *
37
   * <p>When the status is set to `inactive`, the file request will no longer accept new
38
   * submissions, and any visitor to the file request URL will receive a `HTTP 404` status code.
39
   *
40
   * <p>This will default to the value on the existing file request.
41
   */
42
  @JsonDeserialize(
43
      using =
44
          FileRequestUpdateRequestStatusField.FileRequestUpdateRequestStatusFieldDeserializer.class)
45
  @JsonSerialize(
46
      using =
47
          FileRequestUpdateRequestStatusField.FileRequestUpdateRequestStatusFieldSerializer.class)
48
  protected EnumWrapper<FileRequestUpdateRequestStatusField> status;
49

50
  /**
51
   * Whether a file request submitter is required to provide their email address.
52
   *
53
   * <p>When this setting is set to true, the Box UI will show an email field on the file request
54
   * form.
55
   *
56
   * <p>This will default to the value on the existing file request.
57
   */
58
  @JsonProperty("is_email_required")
59
  protected Boolean isEmailRequired;
60

61
  /**
62
   * Whether a file request submitter is required to provide a description of the files they are
63
   * submitting.
64
   *
65
   * <p>When this setting is set to true, the Box UI will show a description field on the file
66
   * request form.
67
   *
68
   * <p>This will default to the value on the existing file request.
69
   */
70
  @JsonProperty("is_description_required")
71
  protected Boolean isDescriptionRequired;
72

73
  /**
74
   * The date after which a file request will no longer accept new submissions.
75
   *
76
   * <p>After this date, the `status` will automatically be set to `inactive`.
77
   *
78
   * <p>This will default to the value on the existing file request.
79
   */
80
  @JsonProperty("expires_at")
81
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
82
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
83
  protected OffsetDateTime expiresAt;
84

85
  public FileRequestUpdateRequest() {
86
    super();
1✔
87
  }
1✔
88

89
  protected FileRequestUpdateRequest(Builder builder) {
90
    super();
1✔
91
    this.title = builder.title;
1✔
92
    this.description = builder.description;
1✔
93
    this.status = builder.status;
1✔
94
    this.isEmailRequired = builder.isEmailRequired;
1✔
95
    this.isDescriptionRequired = builder.isDescriptionRequired;
1✔
96
    this.expiresAt = builder.expiresAt;
1✔
97
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
98
  }
1✔
99

100
  public String getTitle() {
101
    return title;
1✔
102
  }
103

104
  public String getDescription() {
105
    return description;
1✔
106
  }
107

108
  public EnumWrapper<FileRequestUpdateRequestStatusField> getStatus() {
109
    return status;
1✔
110
  }
111

112
  public Boolean getIsEmailRequired() {
113
    return isEmailRequired;
1✔
114
  }
115

116
  public Boolean getIsDescriptionRequired() {
117
    return isDescriptionRequired;
1✔
118
  }
119

120
  public OffsetDateTime getExpiresAt() {
121
    return expiresAt;
1✔
122
  }
123

124
  @Override
125
  public boolean equals(Object o) {
126
    if (this == o) {
×
127
      return true;
×
128
    }
129
    if (o == null || getClass() != o.getClass()) {
×
130
      return false;
×
131
    }
132
    FileRequestUpdateRequest casted = (FileRequestUpdateRequest) o;
×
133
    return Objects.equals(title, casted.title)
×
134
        && Objects.equals(description, casted.description)
×
135
        && Objects.equals(status, casted.status)
×
136
        && Objects.equals(isEmailRequired, casted.isEmailRequired)
×
137
        && Objects.equals(isDescriptionRequired, casted.isDescriptionRequired)
×
138
        && Objects.equals(expiresAt, casted.expiresAt);
×
139
  }
140

141
  @Override
142
  public int hashCode() {
143
    return Objects.hash(
×
144
        title, description, status, isEmailRequired, isDescriptionRequired, expiresAt);
145
  }
146

147
  @Override
148
  public String toString() {
149
    return "FileRequestUpdateRequest{"
×
150
        + "title='"
151
        + title
152
        + '\''
153
        + ", "
154
        + "description='"
155
        + description
156
        + '\''
157
        + ", "
158
        + "status='"
159
        + status
160
        + '\''
161
        + ", "
162
        + "isEmailRequired='"
163
        + isEmailRequired
164
        + '\''
165
        + ", "
166
        + "isDescriptionRequired='"
167
        + isDescriptionRequired
168
        + '\''
169
        + ", "
170
        + "expiresAt='"
171
        + expiresAt
172
        + '\''
173
        + "}";
174
  }
175

176
  public static class Builder extends NullableFieldTracker {
1✔
177

178
    protected String title;
179

180
    protected String description;
181

182
    protected EnumWrapper<FileRequestUpdateRequestStatusField> status;
183

184
    protected Boolean isEmailRequired;
185

186
    protected Boolean isDescriptionRequired;
187

188
    protected OffsetDateTime expiresAt;
189

190
    public Builder title(String title) {
191
      this.title = title;
1✔
192
      return this;
1✔
193
    }
194

195
    public Builder description(String description) {
196
      this.description = description;
1✔
197
      return this;
1✔
198
    }
199

200
    public Builder status(FileRequestUpdateRequestStatusField status) {
201
      this.status = new EnumWrapper<FileRequestUpdateRequestStatusField>(status);
×
202
      return this;
×
203
    }
204

205
    public Builder status(EnumWrapper<FileRequestUpdateRequestStatusField> status) {
206
      this.status = status;
×
207
      return this;
×
208
    }
209

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

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

220
    public Builder expiresAt(OffsetDateTime expiresAt) {
221
      this.expiresAt = expiresAt;
×
222
      return this;
×
223
    }
224

225
    public FileRequestUpdateRequest build() {
226
      return new FileRequestUpdateRequest(this);
1✔
227
    }
228
  }
229
}
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