• 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

42.11
/src/main/java/com/box/sdkgen/schemas/aiitemask/AiItemAsk.java
1
package com.box.sdkgen.schemas.aiitemask;
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 AiItemAsk extends SerializableObject {
14

15
  protected final String id;
16

17
  @JsonDeserialize(using = AiItemAskTypeField.AiItemAskTypeFieldDeserializer.class)
18
  @JsonSerialize(using = AiItemAskTypeField.AiItemAskTypeFieldSerializer.class)
19
  protected final EnumWrapper<AiItemAskTypeField> type;
20

21
  protected String content;
22

23
  public AiItemAsk(
24
      @JsonProperty("id") String id, @JsonProperty("type") EnumWrapper<AiItemAskTypeField> type) {
25
    super();
×
UNCOV
26
    this.id = id;
×
UNCOV
27
    this.type = type;
×
28
  }
×
29

30
  public AiItemAsk(String id, AiItemAskTypeField type) {
31
    super();
×
UNCOV
32
    this.id = id;
×
UNCOV
33
    this.type = new EnumWrapper<AiItemAskTypeField>(type);
×
UNCOV
34
  }
×
35

36
  protected AiItemAsk(Builder builder) {
37
    super();
1✔
38
    this.id = builder.id;
1✔
39
    this.type = builder.type;
1✔
40
    this.content = builder.content;
1✔
41
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
42
  }
1✔
43

44
  public String getId() {
45
    return id;
1✔
46
  }
47

48
  public EnumWrapper<AiItemAskTypeField> getType() {
49
    return type;
1✔
50
  }
51

52
  public String getContent() {
53
    return content;
1✔
54
  }
55

56
  @Override
57
  public boolean equals(Object o) {
58
    if (this == o) {
×
UNCOV
59
      return true;
×
60
    }
61
    if (o == null || getClass() != o.getClass()) {
×
62
      return false;
×
63
    }
UNCOV
64
    AiItemAsk casted = (AiItemAsk) o;
×
UNCOV
65
    return Objects.equals(id, casted.id)
×
UNCOV
66
        && Objects.equals(type, casted.type)
×
UNCOV
67
        && Objects.equals(content, casted.content);
×
68
  }
69

70
  @Override
71
  public int hashCode() {
UNCOV
72
    return Objects.hash(id, type, content);
×
73
  }
74

75
  @Override
76
  public String toString() {
UNCOV
77
    return "AiItemAsk{"
×
78
        + "id='"
79
        + id
80
        + '\''
81
        + ", "
82
        + "type='"
83
        + type
84
        + '\''
85
        + ", "
86
        + "content='"
87
        + content
88
        + '\''
89
        + "}";
90
  }
91

92
  public static class Builder extends NullableFieldTracker {
93

94
    protected final String id;
95

96
    protected final EnumWrapper<AiItemAskTypeField> type;
97

98
    protected String content;
99

100
    public Builder(String id, EnumWrapper<AiItemAskTypeField> type) {
UNCOV
101
      super();
×
UNCOV
102
      this.id = id;
×
UNCOV
103
      this.type = type;
×
UNCOV
104
    }
×
105

106
    public Builder(String id, AiItemAskTypeField type) {
107
      super();
1✔
108
      this.id = id;
1✔
109
      this.type = new EnumWrapper<AiItemAskTypeField>(type);
1✔
110
    }
1✔
111

112
    public Builder content(String content) {
113
      this.content = content;
1✔
114
      return this;
1✔
115
    }
116

117
    public AiItemAsk build() {
118
      return new AiItemAsk(this);
1✔
119
    }
120
  }
121
}
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