• 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

0.0
/src/main/java/com/box/sdkgen/managers/termsofservices/CreateTermsOfServiceRequestBody.java
1
package com.box.sdkgen.managers.termsofservices;
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.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class CreateTermsOfServiceRequestBody extends SerializableObject {
14

15
  @JsonDeserialize(
16
      using =
17
          CreateTermsOfServiceRequestBodyStatusField
18
              .CreateTermsOfServiceRequestBodyStatusFieldDeserializer.class)
19
  @JsonSerialize(
20
      using =
21
          CreateTermsOfServiceRequestBodyStatusField
22
              .CreateTermsOfServiceRequestBodyStatusFieldSerializer.class)
23
  protected final EnumWrapper<CreateTermsOfServiceRequestBodyStatusField> status;
24

25
  @JsonDeserialize(
26
      using =
27
          CreateTermsOfServiceRequestBodyTosTypeField
28
              .CreateTermsOfServiceRequestBodyTosTypeFieldDeserializer.class)
29
  @JsonSerialize(
30
      using =
31
          CreateTermsOfServiceRequestBodyTosTypeField
32
              .CreateTermsOfServiceRequestBodyTosTypeFieldSerializer.class)
33
  @JsonProperty("tos_type")
34
  protected EnumWrapper<CreateTermsOfServiceRequestBodyTosTypeField> tosType;
35

36
  protected final String text;
37

38
  public CreateTermsOfServiceRequestBody(
39
      @JsonProperty("status") EnumWrapper<CreateTermsOfServiceRequestBodyStatusField> status,
40
      @JsonProperty("text") String text) {
41
    super();
×
UNCOV
42
    this.status = status;
×
UNCOV
43
    this.text = text;
×
UNCOV
44
  }
×
45

46
  public CreateTermsOfServiceRequestBody(
47
      CreateTermsOfServiceRequestBodyStatusField status, String text) {
48
    super();
×
UNCOV
49
    this.status = new EnumWrapper<CreateTermsOfServiceRequestBodyStatusField>(status);
×
UNCOV
50
    this.text = text;
×
51
  }
×
52

53
  protected CreateTermsOfServiceRequestBody(Builder builder) {
54
    super();
×
55
    this.status = builder.status;
×
UNCOV
56
    this.tosType = builder.tosType;
×
UNCOV
57
    this.text = builder.text;
×
58
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
59
  }
×
60

61
  public EnumWrapper<CreateTermsOfServiceRequestBodyStatusField> getStatus() {
62
    return status;
×
63
  }
64

65
  public EnumWrapper<CreateTermsOfServiceRequestBodyTosTypeField> getTosType() {
66
    return tosType;
×
67
  }
68

69
  public String getText() {
UNCOV
70
    return text;
×
71
  }
72

73
  @Override
74
  public boolean equals(Object o) {
75
    if (this == o) {
×
UNCOV
76
      return true;
×
77
    }
78
    if (o == null || getClass() != o.getClass()) {
×
79
      return false;
×
80
    }
UNCOV
81
    CreateTermsOfServiceRequestBody casted = (CreateTermsOfServiceRequestBody) o;
×
UNCOV
82
    return Objects.equals(status, casted.status)
×
UNCOV
83
        && Objects.equals(tosType, casted.tosType)
×
UNCOV
84
        && Objects.equals(text, casted.text);
×
85
  }
86

87
  @Override
88
  public int hashCode() {
UNCOV
89
    return Objects.hash(status, tosType, text);
×
90
  }
91

92
  @Override
93
  public String toString() {
UNCOV
94
    return "CreateTermsOfServiceRequestBody{"
×
95
        + "status='"
96
        + status
97
        + '\''
98
        + ", "
99
        + "tosType='"
100
        + tosType
101
        + '\''
102
        + ", "
103
        + "text='"
104
        + text
105
        + '\''
106
        + "}";
107
  }
108

109
  public static class Builder extends NullableFieldTracker {
110

111
    protected final EnumWrapper<CreateTermsOfServiceRequestBodyStatusField> status;
112

113
    protected EnumWrapper<CreateTermsOfServiceRequestBodyTosTypeField> tosType;
114

115
    protected final String text;
116

117
    public Builder(EnumWrapper<CreateTermsOfServiceRequestBodyStatusField> status, String text) {
118
      super();
×
119
      this.status = status;
×
120
      this.text = text;
×
121
    }
×
122

123
    public Builder(CreateTermsOfServiceRequestBodyStatusField status, String text) {
124
      super();
×
125
      this.status = new EnumWrapper<CreateTermsOfServiceRequestBodyStatusField>(status);
×
UNCOV
126
      this.text = text;
×
UNCOV
127
    }
×
128

129
    public Builder tosType(CreateTermsOfServiceRequestBodyTosTypeField tosType) {
130
      this.tosType = new EnumWrapper<CreateTermsOfServiceRequestBodyTosTypeField>(tosType);
×
UNCOV
131
      return this;
×
132
    }
133

134
    public Builder tosType(EnumWrapper<CreateTermsOfServiceRequestBodyTosTypeField> tosType) {
UNCOV
135
      this.tosType = tosType;
×
UNCOV
136
      return this;
×
137
    }
138

139
    public CreateTermsOfServiceRequestBody build() {
UNCOV
140
      return new CreateTermsOfServiceRequestBody(this);
×
141
    }
142
  }
143
}
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