• 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

0.0
/src/main/java/com/box/sdkgen/schemas/filefull/FileFullRepresentationsEntriesContentField.java
1
package com.box.sdkgen.schemas.filefull;
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 FileFullRepresentationsEntriesContentField extends SerializableObject {
11

12
  /**
13
   * The download URL that can be used to fetch the representation. Make sure to make an
14
   * authenticated API call to this endpoint.
15
   *
16
   * <p>This URL is a template and will require the `{+asset_path}` to be replaced by a path. In
17
   * general, for unpaged representations it can be replaced by an empty string.
18
   *
19
   * <p>For paged representations, replace the `{+asset_path}` with the page to request plus the
20
   * extension for the file, for example `1.pdf`.
21
   *
22
   * <p>When requesting the download URL the following additional query params can be passed along.
23
   *
24
   * <p>* `set_content_disposition_type` - Sets the `Content-Disposition` header in the API response
25
   * with the specified disposition type of either `inline` or `attachment`. If not supplied, the
26
   * `Content-Disposition` header is not included in the response.
27
   *
28
   * <p>* `set_content_disposition_filename` - Allows the application to define the representation's
29
   * file name used in the `Content-Disposition` header. If not defined, the filename is derived
30
   * from the source file name in Box combined with the extension of the representation.
31
   */
32
  @JsonProperty("url_template")
33
  protected String urlTemplate;
34

35
  public FileFullRepresentationsEntriesContentField() {
36
    super();
×
37
  }
×
38

39
  protected FileFullRepresentationsEntriesContentField(Builder builder) {
40
    super();
×
41
    this.urlTemplate = builder.urlTemplate;
×
42
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
43
  }
×
44

45
  public String getUrlTemplate() {
46
    return urlTemplate;
×
47
  }
48

49
  @Override
50
  public boolean equals(Object o) {
51
    if (this == o) {
×
52
      return true;
×
53
    }
54
    if (o == null || getClass() != o.getClass()) {
×
55
      return false;
×
56
    }
57
    FileFullRepresentationsEntriesContentField casted =
×
58
        (FileFullRepresentationsEntriesContentField) o;
59
    return Objects.equals(urlTemplate, casted.urlTemplate);
×
60
  }
61

62
  @Override
63
  public int hashCode() {
64
    return Objects.hash(urlTemplate);
×
65
  }
66

67
  @Override
68
  public String toString() {
69
    return "FileFullRepresentationsEntriesContentField{"
×
70
        + "urlTemplate='"
71
        + urlTemplate
72
        + '\''
73
        + "}";
74
  }
75

76
  public static class Builder extends NullableFieldTracker {
×
77

78
    protected String urlTemplate;
79

80
    public Builder urlTemplate(String urlTemplate) {
81
      this.urlTemplate = urlTemplate;
×
82
      return this;
×
83
    }
84

85
    public FileFullRepresentationsEntriesContentField build() {
86
      return new FileFullRepresentationsEntriesContentField(this);
×
87
    }
88
  }
89
}
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