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

box / box-java-sdk / #5538

06 Nov 2025 12:18PM UTC coverage: 13.292% (-0.02%) from 13.315%
#5538

Pull #1552

github

web-flow
Merge 158cb9946 into 7fe53b9a9
Pull Request #1552: docs(boxsdkgen): Modify Archive API (box/box-openapi#563)

0 of 115 new or added lines in 7 files covered. (0.0%)

1 existing line in 1 file now uncovered.

8368 of 62957 relevant lines covered (13.29%)

0.13 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/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) {
23
    super();
×
24
    this.name = name;
×
25
  }
×
26

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

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

39
  public String getDescription() {
NEW
40
    return description;
×
41
  }
42

43
  public String getStoragePolicyId() {
NEW
44
    return storagePolicyId;
×
45
  }
46

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

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

66
  @Override
67
  public String toString() {
NEW
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) {
NEW
92
      super();
×
NEW
93
      this.name = name;
×
NEW
94
    }
×
95

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

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

106
    public CreateArchiveV2025R0RequestBody build() {
NEW
107
      return new CreateArchiveV2025R0RequestBody(this);
×
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

© 2025 Coveralls, Inc