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

box / box-java-sdk / #5702

18 Nov 2025 06:13PM UTC coverage: 35.924% (-1.3%) from 37.182%
#5702

push

github

web-flow
fix: Fix parsing `OffsetDateTime` from String (box/box-codegen#887) (#1582)

7 of 10 new or added lines in 1 file covered. (70.0%)

433 existing lines in 45 files now uncovered.

18457 of 51378 relevant lines covered (35.92%)

0.36 hits per line

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

50.0
/src/main/java/com/box/sdkgen/managers/archives/CreateArchiveV2025R0RequestBody.java
1
package com.box.sdkgen.managers.archives;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
@JsonFilter("nullablePropertyFilter")
10
public class CreateArchiveV2025R0RequestBody extends SerializableObject {
11

12
  /** The name of the archive. */
13
  protected final String name;
14

15
  /** The description of the archive. */
16
  protected String description;
17

18
  /** The ID of the storage policy that the archive is assigned to. */
19
  @JsonProperty("storage_policy_id")
20
  protected String storagePolicyId;
21

22
  public CreateArchiveV2025R0RequestBody(@JsonProperty("name") String name) {
UNCOV
23
    super();
×
UNCOV
24
    this.name = name;
×
25
  }
×
26

27
  protected CreateArchiveV2025R0RequestBody(Builder builder) {
28
    super();
1✔
29
    this.name = builder.name;
1✔
30
    this.description = builder.description;
1✔
31
    this.storagePolicyId = builder.storagePolicyId;
1✔
32
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
33
  }
1✔
34

35
  public String getName() {
36
    return name;
1✔
37
  }
38

39
  public String getDescription() {
40
    return description;
1✔
41
  }
42

43
  public String getStoragePolicyId() {
44
    return storagePolicyId;
1✔
45
  }
46

47
  @Override
48
  public boolean equals(Object o) {
UNCOV
49
    if (this == o) {
×
UNCOV
50
      return true;
×
51
    }
UNCOV
52
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
53
      return false;
×
54
    }
UNCOV
55
    CreateArchiveV2025R0RequestBody casted = (CreateArchiveV2025R0RequestBody) o;
×
UNCOV
56
    return Objects.equals(name, casted.name)
×
UNCOV
57
        && Objects.equals(description, casted.description)
×
UNCOV
58
        && Objects.equals(storagePolicyId, casted.storagePolicyId);
×
59
  }
60

61
  @Override
62
  public int hashCode() {
UNCOV
63
    return Objects.hash(name, description, storagePolicyId);
×
64
  }
65

66
  @Override
67
  public String toString() {
UNCOV
68
    return "CreateArchiveV2025R0RequestBody{"
×
69
        + "name='"
70
        + name
71
        + '\''
72
        + ", "
73
        + "description='"
74
        + description
75
        + '\''
76
        + ", "
77
        + "storagePolicyId='"
78
        + storagePolicyId
79
        + '\''
80
        + "}";
81
  }
82

83
  public static class Builder extends NullableFieldTracker {
84

85
    protected final String name;
86

87
    protected String description;
88

89
    protected String storagePolicyId;
90

91
    public Builder(String name) {
92
      super();
1✔
93
      this.name = name;
1✔
94
    }
1✔
95

96
    public Builder description(String description) {
97
      this.description = description;
1✔
98
      return this;
1✔
99
    }
100

101
    public Builder storagePolicyId(String storagePolicyId) {
UNCOV
102
      this.storagePolicyId = storagePolicyId;
×
UNCOV
103
      return this;
×
104
    }
105

106
    public CreateArchiveV2025R0RequestBody build() {
107
      return new CreateArchiveV2025R0RequestBody(this);
1✔
108
    }
109
  }
110
}
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