• 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/FileFullExpiringEmbedLinkField.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.box.sdkgen.schemas.resourcescope.ResourceScope;
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.util.List;
12
import java.util.Objects;
13

14
@JsonFilter("nullablePropertyFilter")
15
public class FileFullExpiringEmbedLinkField extends SerializableObject {
16

17
  /** The requested access token. */
18
  @JsonProperty("access_token")
19
  protected String accessToken;
20

21
  /** The time in seconds by which this token will expire. */
22
  @JsonProperty("expires_in")
23
  protected Long expiresIn;
24

25
  /** The type of access token returned. */
26
  @JsonDeserialize(
27
      using =
28
          FileFullExpiringEmbedLinkTokenTypeField
29
              .FileFullExpiringEmbedLinkTokenTypeFieldDeserializer.class)
30
  @JsonSerialize(
31
      using =
32
          FileFullExpiringEmbedLinkTokenTypeField.FileFullExpiringEmbedLinkTokenTypeFieldSerializer
33
              .class)
34
  @JsonProperty("token_type")
35
  protected EnumWrapper<FileFullExpiringEmbedLinkTokenTypeField> tokenType;
36

37
  /**
38
   * The permissions that this access token permits, providing a list of resources (files, folders,
39
   * etc) and the scopes permitted for each of those resources.
40
   */
41
  @JsonProperty("restricted_to")
42
  protected List<ResourceScope> restrictedTo;
43

44
  /**
45
   * The actual expiring embed URL for this file, constructed from the file ID and access tokens
46
   * specified in this object.
47
   */
48
  protected String url;
49

50
  public FileFullExpiringEmbedLinkField() {
51
    super();
×
52
  }
×
53

54
  protected FileFullExpiringEmbedLinkField(Builder builder) {
55
    super();
×
56
    this.accessToken = builder.accessToken;
×
57
    this.expiresIn = builder.expiresIn;
×
58
    this.tokenType = builder.tokenType;
×
59
    this.restrictedTo = builder.restrictedTo;
×
60
    this.url = builder.url;
×
61
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
62
  }
×
63

64
  public String getAccessToken() {
65
    return accessToken;
×
66
  }
67

68
  public Long getExpiresIn() {
69
    return expiresIn;
×
70
  }
71

72
  public EnumWrapper<FileFullExpiringEmbedLinkTokenTypeField> getTokenType() {
73
    return tokenType;
×
74
  }
75

76
  public List<ResourceScope> getRestrictedTo() {
77
    return restrictedTo;
×
78
  }
79

80
  public String getUrl() {
81
    return url;
×
82
  }
83

84
  @Override
85
  public boolean equals(Object o) {
86
    if (this == o) {
×
87
      return true;
×
88
    }
89
    if (o == null || getClass() != o.getClass()) {
×
90
      return false;
×
91
    }
92
    FileFullExpiringEmbedLinkField casted = (FileFullExpiringEmbedLinkField) o;
×
93
    return Objects.equals(accessToken, casted.accessToken)
×
94
        && Objects.equals(expiresIn, casted.expiresIn)
×
95
        && Objects.equals(tokenType, casted.tokenType)
×
96
        && Objects.equals(restrictedTo, casted.restrictedTo)
×
97
        && Objects.equals(url, casted.url);
×
98
  }
99

100
  @Override
101
  public int hashCode() {
102
    return Objects.hash(accessToken, expiresIn, tokenType, restrictedTo, url);
×
103
  }
104

105
  @Override
106
  public String toString() {
107
    return "FileFullExpiringEmbedLinkField{"
×
108
        + "accessToken='"
109
        + accessToken
110
        + '\''
111
        + ", "
112
        + "expiresIn='"
113
        + expiresIn
114
        + '\''
115
        + ", "
116
        + "tokenType='"
117
        + tokenType
118
        + '\''
119
        + ", "
120
        + "restrictedTo='"
121
        + restrictedTo
122
        + '\''
123
        + ", "
124
        + "url='"
125
        + url
126
        + '\''
127
        + "}";
128
  }
129

130
  public static class Builder extends NullableFieldTracker {
×
131

132
    protected String accessToken;
133

134
    protected Long expiresIn;
135

136
    protected EnumWrapper<FileFullExpiringEmbedLinkTokenTypeField> tokenType;
137

138
    protected List<ResourceScope> restrictedTo;
139

140
    protected String url;
141

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

147
    public Builder expiresIn(Long expiresIn) {
148
      this.expiresIn = expiresIn;
×
149
      return this;
×
150
    }
151

152
    public Builder tokenType(FileFullExpiringEmbedLinkTokenTypeField tokenType) {
153
      this.tokenType = new EnumWrapper<FileFullExpiringEmbedLinkTokenTypeField>(tokenType);
×
154
      return this;
×
155
    }
156

157
    public Builder tokenType(EnumWrapper<FileFullExpiringEmbedLinkTokenTypeField> tokenType) {
158
      this.tokenType = tokenType;
×
159
      return this;
×
160
    }
161

162
    public Builder restrictedTo(List<ResourceScope> restrictedTo) {
163
      this.restrictedTo = restrictedTo;
×
164
      return this;
×
165
    }
166

167
    public Builder url(String url) {
168
      this.url = url;
×
169
      return this;
×
170
    }
171

172
    public FileFullExpiringEmbedLinkField build() {
173
      return new FileFullExpiringEmbedLinkField(this);
×
174
    }
175
  }
176
}
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