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

box / box-java-sdk-gen / #290

24 Jun 2025 01:20PM UTC coverage: 35.757% (+0.1%) from 35.632%
#290

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%)

11777 existing lines in 624 files now uncovered.

16984 of 47499 relevant lines covered (35.76%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

7.69
/src/main/java/com/box/sdkgen/schemas/storagepolicy/StoragePolicy.java
1
package com.box.sdkgen.schemas.storagepolicy;
2

3
import com.box.sdkgen.schemas.storagepolicymini.StoragePolicyMini;
4
import com.box.sdkgen.schemas.storagepolicymini.StoragePolicyMiniTypeField;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.Objects;
9

10
@JsonFilter("nullablePropertyFilter")
11
public class StoragePolicy extends StoragePolicyMini {
12

13
  protected String name;
14

15
  public StoragePolicy(@JsonProperty("id") String id) {
16
    super(id);
1✔
17
  }
1✔
18

19
  protected StoragePolicy(Builder builder) {
20
    super(builder);
×
UNCOV
21
    this.name = builder.name;
×
UNCOV
22
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
23
  }
×
24

25
  public String getName() {
UNCOV
26
    return name;
×
27
  }
28

29
  @Override
30
  public boolean equals(Object o) {
31
    if (this == o) {
×
32
      return true;
×
33
    }
34
    if (o == null || getClass() != o.getClass()) {
×
35
      return false;
×
36
    }
37
    StoragePolicy casted = (StoragePolicy) o;
×
UNCOV
38
    return Objects.equals(id, casted.id)
×
UNCOV
39
        && Objects.equals(type, casted.type)
×
UNCOV
40
        && Objects.equals(name, casted.name);
×
41
  }
42

43
  @Override
44
  public int hashCode() {
UNCOV
45
    return Objects.hash(id, type, name);
×
46
  }
47

48
  @Override
49
  public String toString() {
UNCOV
50
    return "StoragePolicy{"
×
51
        + "id='"
52
        + id
53
        + '\''
54
        + ", "
55
        + "type='"
56
        + type
57
        + '\''
58
        + ", "
59
        + "name='"
60
        + name
61
        + '\''
62
        + "}";
63
  }
64

65
  public static class Builder extends StoragePolicyMini.Builder {
66

67
    protected String name;
68

69
    public Builder(String id) {
UNCOV
70
      super(id);
×
71
    }
×
72

73
    public Builder name(String name) {
UNCOV
74
      this.name = name;
×
UNCOV
75
      return this;
×
76
    }
77

78
    @Override
79
    public Builder type(StoragePolicyMiniTypeField type) {
UNCOV
80
      this.type = new EnumWrapper<StoragePolicyMiniTypeField>(type);
×
UNCOV
81
      return this;
×
82
    }
83

84
    @Override
85
    public Builder type(EnumWrapper<StoragePolicyMiniTypeField> type) {
UNCOV
86
      this.type = type;
×
UNCOV
87
      return this;
×
88
    }
89

90
    public StoragePolicy build() {
UNCOV
91
      return new StoragePolicy(this);
×
92
    }
93
  }
94
}
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