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

box / box-java-sdk-gen / #186

04 Jun 2025 10:42AM UTC coverage: 34.762% (-0.9%) from 35.631%
#186

Pull #327

github

web-flow
Merge a4b5eccbc into 28f2ec7f8
Pull Request #327: chore: Update .codegen.json with commit hash of codegen and openapi spec

15770 of 45365 relevant lines covered (34.76%)

0.35 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.SerializableObject;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
6
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
7
import java.util.Objects;
8

9
public class AiAgentReference extends SerializableObject {
10

11
  @JsonDeserialize(using = AiAgentReferenceTypeField.AiAgentReferenceTypeFieldDeserializer.class)
12
  @JsonSerialize(using = AiAgentReferenceTypeField.AiAgentReferenceTypeFieldSerializer.class)
13
  protected EnumWrapper<AiAgentReferenceTypeField> type;
14

15
  protected String id;
16

17
  public AiAgentReference() {
18
    super();
×
19
    this.type = new EnumWrapper<AiAgentReferenceTypeField>(AiAgentReferenceTypeField.AI_AGENT_ID);
×
20
  }
×
21

22
  protected AiAgentReference(AiAgentReferenceBuilder builder) {
23
    super();
×
24
    this.type = builder.type;
×
25
    this.id = builder.id;
×
26
  }
×
27

28
  public EnumWrapper<AiAgentReferenceTypeField> getType() {
29
    return type;
×
30
  }
31

32
  public String getId() {
33
    return id;
×
34
  }
35

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

48
  @Override
49
  public int hashCode() {
50
    return Objects.hash(type, id);
×
51
  }
52

53
  @Override
54
  public String toString() {
55
    return "AiAgentReference{" + "type='" + type + '\'' + ", " + "id='" + id + '\'' + "}";
×
56
  }
57

58
  public static class AiAgentReferenceBuilder {
59

60
    protected EnumWrapper<AiAgentReferenceTypeField> type;
61

62
    protected String id;
63

64
    public AiAgentReferenceBuilder() {
×
65
      this.type = new EnumWrapper<AiAgentReferenceTypeField>(AiAgentReferenceTypeField.AI_AGENT_ID);
×
66
    }
×
67

68
    public AiAgentReferenceBuilder type(AiAgentReferenceTypeField type) {
69
      this.type = new EnumWrapper<AiAgentReferenceTypeField>(type);
×
70
      return this;
×
71
    }
72

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

78
    public AiAgentReferenceBuilder id(String id) {
79
      this.id = id;
×
80
      return this;
×
81
    }
82

83
    public AiAgentReference build() {
84
      return new AiAgentReference(this);
×
85
    }
86
  }
87
}
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