• 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

20.51
/src/main/java/com/box/sdkgen/schemas/appitemassociation/AppItemAssociation.java
1
package com.box.sdkgen.schemas.appitemassociation;
2

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

14
@JsonFilter("nullablePropertyFilter")
15
public class AppItemAssociation extends SerializableObject {
16

17
  protected final String id;
18

19
  @JsonDeserialize(
20
      using = AppItemAssociationTypeField.AppItemAssociationTypeFieldDeserializer.class)
21
  @JsonSerialize(using = AppItemAssociationTypeField.AppItemAssociationTypeFieldSerializer.class)
22
  protected EnumWrapper<AppItemAssociationTypeField> type;
23

24
  @JsonProperty("app_item")
25
  protected final AppItem appItem;
26

27
  protected final FileBaseOrFolderBaseOrWebLinkBase item;
28

29
  public AppItemAssociation(
30
      @JsonProperty("id") String id,
31
      @JsonProperty("app_item") AppItem appItem,
32
      @JsonProperty("item") FileBaseOrFolderBaseOrWebLinkBase item) {
33
    super();
1✔
34
    this.id = id;
1✔
35
    this.appItem = appItem;
1✔
36
    this.item = item;
1✔
37
    this.type =
1✔
38
        new EnumWrapper<AppItemAssociationTypeField>(
39
            AppItemAssociationTypeField.APP_ITEM_ASSOCIATION);
40
  }
1✔
41

42
  protected AppItemAssociation(Builder builder) {
43
    super();
×
44
    this.id = builder.id;
×
45
    this.type = builder.type;
×
UNCOV
46
    this.appItem = builder.appItem;
×
UNCOV
47
    this.item = builder.item;
×
UNCOV
48
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
49
  }
×
50

51
  public String getId() {
52
    return id;
1✔
53
  }
54

55
  public EnumWrapper<AppItemAssociationTypeField> getType() {
UNCOV
56
    return type;
×
57
  }
58

59
  public AppItem getAppItem() {
60
    return appItem;
1✔
61
  }
62

63
  public FileBaseOrFolderBaseOrWebLinkBase getItem() {
UNCOV
64
    return item;
×
65
  }
66

67
  @Override
68
  public boolean equals(Object o) {
69
    if (this == o) {
×
UNCOV
70
      return true;
×
71
    }
72
    if (o == null || getClass() != o.getClass()) {
×
73
      return false;
×
74
    }
75
    AppItemAssociation casted = (AppItemAssociation) o;
×
UNCOV
76
    return Objects.equals(id, casted.id)
×
UNCOV
77
        && Objects.equals(type, casted.type)
×
UNCOV
78
        && Objects.equals(appItem, casted.appItem)
×
UNCOV
79
        && Objects.equals(item, casted.item);
×
80
  }
81

82
  @Override
83
  public int hashCode() {
UNCOV
84
    return Objects.hash(id, type, appItem, item);
×
85
  }
86

87
  @Override
88
  public String toString() {
UNCOV
89
    return "AppItemAssociation{"
×
90
        + "id='"
91
        + id
92
        + '\''
93
        + ", "
94
        + "type='"
95
        + type
96
        + '\''
97
        + ", "
98
        + "appItem='"
99
        + appItem
100
        + '\''
101
        + ", "
102
        + "item='"
103
        + item
104
        + '\''
105
        + "}";
106
  }
107

108
  public static class Builder extends NullableFieldTracker {
109

110
    protected final String id;
111

112
    protected EnumWrapper<AppItemAssociationTypeField> type;
113

114
    protected final AppItem appItem;
115

116
    protected final FileBaseOrFolderBaseOrWebLinkBase item;
117

118
    public Builder(String id, AppItem appItem, FileBaseOrFolderBaseOrWebLinkBase item) {
UNCOV
119
      super();
×
UNCOV
120
      this.id = id;
×
121
      this.appItem = appItem;
×
UNCOV
122
      this.item = item;
×
UNCOV
123
      this.type =
×
124
          new EnumWrapper<AppItemAssociationTypeField>(
125
              AppItemAssociationTypeField.APP_ITEM_ASSOCIATION);
UNCOV
126
    }
×
127

128
    public Builder type(AppItemAssociationTypeField type) {
129
      this.type = new EnumWrapper<AppItemAssociationTypeField>(type);
×
130
      return this;
×
131
    }
132

133
    public Builder type(EnumWrapper<AppItemAssociationTypeField> type) {
134
      this.type = type;
×
UNCOV
135
      return this;
×
136
    }
137

138
    public AppItemAssociation build() {
UNCOV
139
      return new AppItemAssociation(this);
×
140
    }
141
  }
142
}
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