• 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/managers/webhooks/UpdateWebhookByIdRequestBodyTargetField.java
1
package com.box.sdkgen.managers.webhooks;
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 UpdateWebhookByIdRequestBodyTargetField extends SerializableObject {
13

14
  protected String id;
15

16
  @JsonDeserialize(
17
      using =
18
          UpdateWebhookByIdRequestBodyTargetTypeField
19
              .UpdateWebhookByIdRequestBodyTargetTypeFieldDeserializer.class)
20
  @JsonSerialize(
21
      using =
22
          UpdateWebhookByIdRequestBodyTargetTypeField
23
              .UpdateWebhookByIdRequestBodyTargetTypeFieldSerializer.class)
24
  protected EnumWrapper<UpdateWebhookByIdRequestBodyTargetTypeField> type;
25

26
  public UpdateWebhookByIdRequestBodyTargetField() {
UNCOV
27
    super();
×
28
  }
×
29

30
  protected UpdateWebhookByIdRequestBodyTargetField(Builder builder) {
31
    super();
×
UNCOV
32
    this.id = builder.id;
×
UNCOV
33
    this.type = builder.type;
×
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
35
  }
×
36

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

41
  public EnumWrapper<UpdateWebhookByIdRequestBodyTargetTypeField> getType() {
UNCOV
42
    return type;
×
43
  }
44

45
  @Override
46
  public boolean equals(Object o) {
47
    if (this == o) {
×
UNCOV
48
      return true;
×
49
    }
50
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
51
      return false;
×
52
    }
UNCOV
53
    UpdateWebhookByIdRequestBodyTargetField casted = (UpdateWebhookByIdRequestBodyTargetField) o;
×
UNCOV
54
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
55
  }
56

57
  @Override
58
  public int hashCode() {
UNCOV
59
    return Objects.hash(id, type);
×
60
  }
61

62
  @Override
63
  public String toString() {
UNCOV
64
    return "UpdateWebhookByIdRequestBodyTargetField{"
×
65
        + "id='"
66
        + id
67
        + '\''
68
        + ", "
69
        + "type='"
70
        + type
71
        + '\''
72
        + "}";
73
  }
74

UNCOV
75
  public static class Builder extends NullableFieldTracker {
×
76

77
    protected String id;
78

79
    protected EnumWrapper<UpdateWebhookByIdRequestBodyTargetTypeField> type;
80

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

86
    public Builder type(UpdateWebhookByIdRequestBodyTargetTypeField type) {
UNCOV
87
      this.type = new EnumWrapper<UpdateWebhookByIdRequestBodyTargetTypeField>(type);
×
88
      return this;
×
89
    }
90

91
    public Builder type(EnumWrapper<UpdateWebhookByIdRequestBodyTargetTypeField> type) {
UNCOV
92
      this.type = type;
×
93
      return this;
×
94
    }
95

96
    public UpdateWebhookByIdRequestBodyTargetField build() {
UNCOV
97
      return new UpdateWebhookByIdRequestBodyTargetField(this);
×
98
    }
99
  }
100
}
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