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

box / box-java-sdk-gen / #294

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

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 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/skillinvocation/SkillInvocationTokenReadField.java
1
package com.box.sdkgen.schemas.skillinvocation;
2

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

12
@JsonFilter("nullablePropertyFilter")
13
public class SkillInvocationTokenReadField extends SerializableObject {
14

15
  @JsonProperty("access_token")
16
  protected String accessToken;
17

18
  @JsonProperty("expires_in")
19
  protected Long expiresIn;
20

21
  @JsonDeserialize(
22
      using =
23
          SkillInvocationTokenReadTokenTypeField.SkillInvocationTokenReadTokenTypeFieldDeserializer
24
              .class)
25
  @JsonSerialize(
26
      using =
27
          SkillInvocationTokenReadTokenTypeField.SkillInvocationTokenReadTokenTypeFieldSerializer
28
              .class)
29
  @JsonProperty("token_type")
30
  protected EnumWrapper<SkillInvocationTokenReadTokenTypeField> tokenType;
31

32
  @JsonProperty("restricted_to")
33
  protected String restrictedTo;
34

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

39
  protected SkillInvocationTokenReadField(Builder builder) {
40
    super();
×
41
    this.accessToken = builder.accessToken;
×
42
    this.expiresIn = builder.expiresIn;
×
UNCOV
43
    this.tokenType = builder.tokenType;
×
UNCOV
44
    this.restrictedTo = builder.restrictedTo;
×
45
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
46
  }
×
47

48
  public String getAccessToken() {
49
    return accessToken;
×
50
  }
51

52
  public Long getExpiresIn() {
53
    return expiresIn;
×
54
  }
55

56
  public EnumWrapper<SkillInvocationTokenReadTokenTypeField> getTokenType() {
57
    return tokenType;
×
58
  }
59

60
  public String getRestrictedTo() {
UNCOV
61
    return restrictedTo;
×
62
  }
63

64
  @Override
65
  public boolean equals(Object o) {
66
    if (this == o) {
×
UNCOV
67
      return true;
×
68
    }
69
    if (o == null || getClass() != o.getClass()) {
×
70
      return false;
×
71
    }
72
    SkillInvocationTokenReadField casted = (SkillInvocationTokenReadField) o;
×
UNCOV
73
    return Objects.equals(accessToken, casted.accessToken)
×
UNCOV
74
        && Objects.equals(expiresIn, casted.expiresIn)
×
UNCOV
75
        && Objects.equals(tokenType, casted.tokenType)
×
UNCOV
76
        && Objects.equals(restrictedTo, casted.restrictedTo);
×
77
  }
78

79
  @Override
80
  public int hashCode() {
UNCOV
81
    return Objects.hash(accessToken, expiresIn, tokenType, restrictedTo);
×
82
  }
83

84
  @Override
85
  public String toString() {
UNCOV
86
    return "SkillInvocationTokenReadField{"
×
87
        + "accessToken='"
88
        + accessToken
89
        + '\''
90
        + ", "
91
        + "expiresIn='"
92
        + expiresIn
93
        + '\''
94
        + ", "
95
        + "tokenType='"
96
        + tokenType
97
        + '\''
98
        + ", "
99
        + "restrictedTo='"
100
        + restrictedTo
101
        + '\''
102
        + "}";
103
  }
104

UNCOV
105
  public static class Builder extends NullableFieldTracker {
×
106

107
    protected String accessToken;
108

109
    protected Long expiresIn;
110

111
    protected EnumWrapper<SkillInvocationTokenReadTokenTypeField> tokenType;
112

113
    protected String restrictedTo;
114

115
    public Builder accessToken(String accessToken) {
UNCOV
116
      this.accessToken = accessToken;
×
117
      return this;
×
118
    }
119

120
    public Builder expiresIn(Long expiresIn) {
UNCOV
121
      this.expiresIn = expiresIn;
×
122
      return this;
×
123
    }
124

125
    public Builder tokenType(SkillInvocationTokenReadTokenTypeField tokenType) {
UNCOV
126
      this.tokenType = new EnumWrapper<SkillInvocationTokenReadTokenTypeField>(tokenType);
×
127
      return this;
×
128
    }
129

130
    public Builder tokenType(EnumWrapper<SkillInvocationTokenReadTokenTypeField> tokenType) {
UNCOV
131
      this.tokenType = tokenType;
×
132
      return this;
×
133
    }
134

135
    public Builder restrictedTo(String restrictedTo) {
UNCOV
136
      this.restrictedTo = restrictedTo;
×
137
      return this;
×
138
    }
139

140
    public SkillInvocationTokenReadField build() {
UNCOV
141
      return new SkillInvocationTokenReadField(this);
×
142
    }
143
  }
144
}
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