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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

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/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.fileorfolderscope.FileOrFolderScope;
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
  @JsonProperty("access_token")
18
  protected String accessToken;
19

20
  @JsonProperty("expires_in")
21
  protected Long expiresIn;
22

23
  @JsonDeserialize(
24
      using =
25
          FileFullExpiringEmbedLinkTokenTypeField
26
              .FileFullExpiringEmbedLinkTokenTypeFieldDeserializer.class)
27
  @JsonSerialize(
28
      using =
29
          FileFullExpiringEmbedLinkTokenTypeField.FileFullExpiringEmbedLinkTokenTypeFieldSerializer
30
              .class)
31
  @JsonProperty("token_type")
32
  protected EnumWrapper<FileFullExpiringEmbedLinkTokenTypeField> tokenType;
33

34
  @JsonProperty("restricted_to")
35
  protected List<FileOrFolderScope> restrictedTo;
36

37
  protected String url;
38

39
  public FileFullExpiringEmbedLinkField() {
UNCOV
40
    super();
×
41
  }
×
42

43
  protected FileFullExpiringEmbedLinkField(Builder builder) {
44
    super();
×
45
    this.accessToken = builder.accessToken;
×
46
    this.expiresIn = builder.expiresIn;
×
47
    this.tokenType = builder.tokenType;
×
UNCOV
48
    this.restrictedTo = builder.restrictedTo;
×
UNCOV
49
    this.url = builder.url;
×
50
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
51
  }
×
52

53
  public String getAccessToken() {
54
    return accessToken;
×
55
  }
56

57
  public Long getExpiresIn() {
58
    return expiresIn;
×
59
  }
60

61
  public EnumWrapper<FileFullExpiringEmbedLinkTokenTypeField> getTokenType() {
62
    return tokenType;
×
63
  }
64

65
  public List<FileOrFolderScope> getRestrictedTo() {
66
    return restrictedTo;
×
67
  }
68

69
  public String getUrl() {
UNCOV
70
    return url;
×
71
  }
72

73
  @Override
74
  public boolean equals(Object o) {
75
    if (this == o) {
×
UNCOV
76
      return true;
×
77
    }
78
    if (o == null || getClass() != o.getClass()) {
×
79
      return false;
×
80
    }
81
    FileFullExpiringEmbedLinkField casted = (FileFullExpiringEmbedLinkField) o;
×
82
    return Objects.equals(accessToken, casted.accessToken)
×
UNCOV
83
        && Objects.equals(expiresIn, casted.expiresIn)
×
UNCOV
84
        && Objects.equals(tokenType, casted.tokenType)
×
UNCOV
85
        && Objects.equals(restrictedTo, casted.restrictedTo)
×
UNCOV
86
        && Objects.equals(url, casted.url);
×
87
  }
88

89
  @Override
90
  public int hashCode() {
UNCOV
91
    return Objects.hash(accessToken, expiresIn, tokenType, restrictedTo, url);
×
92
  }
93

94
  @Override
95
  public String toString() {
UNCOV
96
    return "FileFullExpiringEmbedLinkField{"
×
97
        + "accessToken='"
98
        + accessToken
99
        + '\''
100
        + ", "
101
        + "expiresIn='"
102
        + expiresIn
103
        + '\''
104
        + ", "
105
        + "tokenType='"
106
        + tokenType
107
        + '\''
108
        + ", "
109
        + "restrictedTo='"
110
        + restrictedTo
111
        + '\''
112
        + ", "
113
        + "url='"
114
        + url
115
        + '\''
116
        + "}";
117
  }
118

UNCOV
119
  public static class Builder extends NullableFieldTracker {
×
120

121
    protected String accessToken;
122

123
    protected Long expiresIn;
124

125
    protected EnumWrapper<FileFullExpiringEmbedLinkTokenTypeField> tokenType;
126

127
    protected List<FileOrFolderScope> restrictedTo;
128

129
    protected String url;
130

131
    public Builder accessToken(String accessToken) {
UNCOV
132
      this.accessToken = accessToken;
×
133
      return this;
×
134
    }
135

136
    public Builder expiresIn(Long expiresIn) {
UNCOV
137
      this.expiresIn = expiresIn;
×
138
      return this;
×
139
    }
140

141
    public Builder tokenType(FileFullExpiringEmbedLinkTokenTypeField tokenType) {
UNCOV
142
      this.tokenType = new EnumWrapper<FileFullExpiringEmbedLinkTokenTypeField>(tokenType);
×
143
      return this;
×
144
    }
145

146
    public Builder tokenType(EnumWrapper<FileFullExpiringEmbedLinkTokenTypeField> tokenType) {
UNCOV
147
      this.tokenType = tokenType;
×
148
      return this;
×
149
    }
150

151
    public Builder restrictedTo(List<FileOrFolderScope> restrictedTo) {
UNCOV
152
      this.restrictedTo = restrictedTo;
×
153
      return this;
×
154
    }
155

156
    public Builder url(String url) {
UNCOV
157
      this.url = url;
×
158
      return this;
×
159
    }
160

161
    public FileFullExpiringEmbedLinkField build() {
UNCOV
162
      return new FileFullExpiringEmbedLinkField(this);
×
163
    }
164
  }
165
}
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