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

box / box-java-sdk / #5417

24 Oct 2025 01:02PM UTC coverage: 13.302% (-0.4%) from 13.665%
#5417

Pull #1530

github

web-flow
Merge 9272f53bd into 85be887e9
Pull Request #1530: chore(boxsdkgen): Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci]

0 of 1631 new or added lines in 44 files covered. (0.0%)

14 existing lines in 8 files now uncovered.

8368 of 62906 relevant lines covered (13.3%)

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/schemas/v2025r0/shieldruleitemv2025r0/ShieldRuleItemV2025R0.java
1
package com.box.sdkgen.schemas.v2025r0.shieldruleitemv2025r0;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.time.OffsetDateTime;
12
import java.util.Objects;
13

14
/** A Shield rule item. */
15
@JsonFilter("nullablePropertyFilter")
16
public class ShieldRuleItemV2025R0 extends SerializableObject {
17

18
  /** The identifier of the shield rule. */
19
  protected String id;
20

21
  /** The value will always be `shield_rule`. */
22
  @JsonDeserialize(
23
      using = ShieldRuleItemV2025R0TypeField.ShieldRuleItemV2025R0TypeFieldDeserializer.class)
24
  @JsonSerialize(
25
      using = ShieldRuleItemV2025R0TypeField.ShieldRuleItemV2025R0TypeFieldSerializer.class)
26
  protected EnumWrapper<ShieldRuleItemV2025R0TypeField> type;
27

28
  /** The category of the shield rule. */
29
  @JsonProperty("rule_category")
30
  protected String ruleCategory;
31

32
  /** The name of the shield rule. */
33
  protected String name;
34

35
  /** The description of the shield rule. */
36
  protected String description;
37

38
  /** The priority level of the shield rule. */
39
  @JsonDeserialize(
40
      using =
41
          ShieldRuleItemV2025R0PriorityField.ShieldRuleItemV2025R0PriorityFieldDeserializer.class)
42
  @JsonSerialize(
43
      using = ShieldRuleItemV2025R0PriorityField.ShieldRuleItemV2025R0PriorityFieldSerializer.class)
44
  protected EnumWrapper<ShieldRuleItemV2025R0PriorityField> priority;
45

46
  /** The date and time when the shield rule was created. */
47
  @JsonProperty("created_at")
48
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
49
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
50
  protected OffsetDateTime createdAt;
51

52
  /** The date and time when the shield rule was last modified. */
53
  @JsonProperty("modified_at")
54
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
55
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
56
  protected OffsetDateTime modifiedAt;
57

58
  public ShieldRuleItemV2025R0() {
NEW
59
    super();
×
NEW
60
  }
×
61

62
  protected ShieldRuleItemV2025R0(Builder builder) {
NEW
63
    super();
×
NEW
64
    this.id = builder.id;
×
NEW
65
    this.type = builder.type;
×
NEW
66
    this.ruleCategory = builder.ruleCategory;
×
NEW
67
    this.name = builder.name;
×
NEW
68
    this.description = builder.description;
×
NEW
69
    this.priority = builder.priority;
×
NEW
70
    this.createdAt = builder.createdAt;
×
NEW
71
    this.modifiedAt = builder.modifiedAt;
×
NEW
72
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
73
  }
×
74

75
  public String getId() {
NEW
76
    return id;
×
77
  }
78

79
  public EnumWrapper<ShieldRuleItemV2025R0TypeField> getType() {
NEW
80
    return type;
×
81
  }
82

83
  public String getRuleCategory() {
NEW
84
    return ruleCategory;
×
85
  }
86

87
  public String getName() {
NEW
88
    return name;
×
89
  }
90

91
  public String getDescription() {
NEW
92
    return description;
×
93
  }
94

95
  public EnumWrapper<ShieldRuleItemV2025R0PriorityField> getPriority() {
NEW
96
    return priority;
×
97
  }
98

99
  public OffsetDateTime getCreatedAt() {
NEW
100
    return createdAt;
×
101
  }
102

103
  public OffsetDateTime getModifiedAt() {
NEW
104
    return modifiedAt;
×
105
  }
106

107
  @Override
108
  public boolean equals(Object o) {
NEW
109
    if (this == o) {
×
NEW
110
      return true;
×
111
    }
NEW
112
    if (o == null || getClass() != o.getClass()) {
×
NEW
113
      return false;
×
114
    }
NEW
115
    ShieldRuleItemV2025R0 casted = (ShieldRuleItemV2025R0) o;
×
NEW
116
    return Objects.equals(id, casted.id)
×
NEW
117
        && Objects.equals(type, casted.type)
×
NEW
118
        && Objects.equals(ruleCategory, casted.ruleCategory)
×
NEW
119
        && Objects.equals(name, casted.name)
×
NEW
120
        && Objects.equals(description, casted.description)
×
NEW
121
        && Objects.equals(priority, casted.priority)
×
NEW
122
        && Objects.equals(createdAt, casted.createdAt)
×
NEW
123
        && Objects.equals(modifiedAt, casted.modifiedAt);
×
124
  }
125

126
  @Override
127
  public int hashCode() {
NEW
128
    return Objects.hash(id, type, ruleCategory, name, description, priority, createdAt, modifiedAt);
×
129
  }
130

131
  @Override
132
  public String toString() {
NEW
133
    return "ShieldRuleItemV2025R0{"
×
134
        + "id='"
135
        + id
136
        + '\''
137
        + ", "
138
        + "type='"
139
        + type
140
        + '\''
141
        + ", "
142
        + "ruleCategory='"
143
        + ruleCategory
144
        + '\''
145
        + ", "
146
        + "name='"
147
        + name
148
        + '\''
149
        + ", "
150
        + "description='"
151
        + description
152
        + '\''
153
        + ", "
154
        + "priority='"
155
        + priority
156
        + '\''
157
        + ", "
158
        + "createdAt='"
159
        + createdAt
160
        + '\''
161
        + ", "
162
        + "modifiedAt='"
163
        + modifiedAt
164
        + '\''
165
        + "}";
166
  }
167

NEW
168
  public static class Builder extends NullableFieldTracker {
×
169

170
    protected String id;
171

172
    protected EnumWrapper<ShieldRuleItemV2025R0TypeField> type;
173

174
    protected String ruleCategory;
175

176
    protected String name;
177

178
    protected String description;
179

180
    protected EnumWrapper<ShieldRuleItemV2025R0PriorityField> priority;
181

182
    protected OffsetDateTime createdAt;
183

184
    protected OffsetDateTime modifiedAt;
185

186
    public Builder id(String id) {
NEW
187
      this.id = id;
×
NEW
188
      return this;
×
189
    }
190

191
    public Builder type(ShieldRuleItemV2025R0TypeField type) {
NEW
192
      this.type = new EnumWrapper<ShieldRuleItemV2025R0TypeField>(type);
×
NEW
193
      return this;
×
194
    }
195

196
    public Builder type(EnumWrapper<ShieldRuleItemV2025R0TypeField> type) {
NEW
197
      this.type = type;
×
NEW
198
      return this;
×
199
    }
200

201
    public Builder ruleCategory(String ruleCategory) {
NEW
202
      this.ruleCategory = ruleCategory;
×
NEW
203
      return this;
×
204
    }
205

206
    public Builder name(String name) {
NEW
207
      this.name = name;
×
NEW
208
      return this;
×
209
    }
210

211
    public Builder description(String description) {
NEW
212
      this.description = description;
×
NEW
213
      return this;
×
214
    }
215

216
    public Builder priority(ShieldRuleItemV2025R0PriorityField priority) {
NEW
217
      this.priority = new EnumWrapper<ShieldRuleItemV2025R0PriorityField>(priority);
×
NEW
218
      return this;
×
219
    }
220

221
    public Builder priority(EnumWrapper<ShieldRuleItemV2025R0PriorityField> priority) {
NEW
222
      this.priority = priority;
×
NEW
223
      return this;
×
224
    }
225

226
    public Builder createdAt(OffsetDateTime createdAt) {
NEW
227
      this.createdAt = createdAt;
×
NEW
228
      return this;
×
229
    }
230

231
    public Builder modifiedAt(OffsetDateTime modifiedAt) {
NEW
232
      this.modifiedAt = modifiedAt;
×
NEW
233
      return this;
×
234
    }
235

236
    public ShieldRuleItemV2025R0 build() {
NEW
237
      return new ShieldRuleItemV2025R0(this);
×
238
    }
239
  }
240
}
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