• 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/aiagentreference/AiAgentReference.java
1
package com.box.sdkgen.schemas.aiagentreference;
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.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class AiAgentReference extends SerializableObject {
13

14
  @JsonDeserialize(using = AiAgentReferenceTypeField.AiAgentReferenceTypeFieldDeserializer.class)
15
  @JsonSerialize(using = AiAgentReferenceTypeField.AiAgentReferenceTypeFieldSerializer.class)
16
  protected EnumWrapper<AiAgentReferenceTypeField> type;
17

18
  protected String id;
19

20
  public AiAgentReference() {
UNCOV
21
    super();
×
UNCOV
22
    this.type = new EnumWrapper<AiAgentReferenceTypeField>(AiAgentReferenceTypeField.AI_AGENT_ID);
×
23
  }
×
24

25
  protected AiAgentReference(Builder builder) {
26
    super();
×
UNCOV
27
    this.type = builder.type;
×
UNCOV
28
    this.id = builder.id;
×
29
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
30
  }
×
31

32
  public EnumWrapper<AiAgentReferenceTypeField> getType() {
33
    return type;
×
34
  }
35

36
  public String getId() {
UNCOV
37
    return id;
×
38
  }
39

40
  @Override
41
  public boolean equals(Object o) {
42
    if (this == o) {
×
UNCOV
43
      return true;
×
44
    }
45
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
46
      return false;
×
47
    }
UNCOV
48
    AiAgentReference casted = (AiAgentReference) o;
×
UNCOV
49
    return Objects.equals(type, casted.type) && Objects.equals(id, casted.id);
×
50
  }
51

52
  @Override
53
  public int hashCode() {
UNCOV
54
    return Objects.hash(type, id);
×
55
  }
56

57
  @Override
58
  public String toString() {
UNCOV
59
    return "AiAgentReference{" + "type='" + type + '\'' + ", " + "id='" + id + '\'' + "}";
×
60
  }
61

62
  public static class Builder extends NullableFieldTracker {
63

64
    protected EnumWrapper<AiAgentReferenceTypeField> type;
65

66
    protected String id;
67

68
    public Builder() {
69
      super();
×
70
      this.type = new EnumWrapper<AiAgentReferenceTypeField>(AiAgentReferenceTypeField.AI_AGENT_ID);
×
UNCOV
71
    }
×
72

73
    public Builder type(AiAgentReferenceTypeField type) {
74
      this.type = new EnumWrapper<AiAgentReferenceTypeField>(type);
×
75
      return this;
×
76
    }
77

78
    public Builder type(EnumWrapper<AiAgentReferenceTypeField> type) {
79
      this.type = type;
×
80
      return this;
×
81
    }
82

83
    public Builder id(String id) {
84
      this.id = id;
×
UNCOV
85
      return this;
×
86
    }
87

88
    public AiAgentReference build() {
UNCOV
89
      return new AiAgentReference(this);
×
90
    }
91
  }
92
}
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