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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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
  /** Whether this terms of service is active. */
16
  @JsonDeserialize(
17
      using =
18
          CreateTermsOfServiceRequestBodyStatusField
19
              .CreateTermsOfServiceRequestBodyStatusFieldDeserializer.class)
20
  @JsonSerialize(
21
      using =
22
          CreateTermsOfServiceRequestBodyStatusField
23
              .CreateTermsOfServiceRequestBodyStatusFieldSerializer.class)
24
  protected final EnumWrapper<CreateTermsOfServiceRequestBodyStatusField> status;
25

26
  /** The type of user to set the terms of service for. */
27
  @JsonDeserialize(
28
      using =
29
          CreateTermsOfServiceRequestBodyTosTypeField
30
              .CreateTermsOfServiceRequestBodyTosTypeFieldDeserializer.class)
31
  @JsonSerialize(
32
      using =
33
          CreateTermsOfServiceRequestBodyTosTypeField
34
              .CreateTermsOfServiceRequestBodyTosTypeFieldSerializer.class)
35
  @JsonProperty("tos_type")
36
  protected EnumWrapper<CreateTermsOfServiceRequestBodyTosTypeField> tosType;
37

38
  /**
39
   * The terms of service text to display to users.
40
   *
41
   * <p>The text can be set to empty if the `status` is set to `disabled`.
42
   */
43
  protected final String text;
44

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

52
  public CreateTermsOfServiceRequestBody(
53
      @JsonProperty("status") EnumWrapper<CreateTermsOfServiceRequestBodyStatusField> status,
54
      @JsonProperty("text") String text) {
55
    super();
×
56
    this.status = status;
×
57
    this.text = text;
×
58
  }
×
59

60
  protected CreateTermsOfServiceRequestBody(Builder builder) {
61
    super();
×
62
    this.status = builder.status;
×
63
    this.tosType = builder.tosType;
×
64
    this.text = builder.text;
×
65
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
66
  }
×
67

68
  public EnumWrapper<CreateTermsOfServiceRequestBodyStatusField> getStatus() {
69
    return status;
×
70
  }
71

72
  public EnumWrapper<CreateTermsOfServiceRequestBodyTosTypeField> getTosType() {
73
    return tosType;
×
74
  }
75

76
  public String getText() {
77
    return text;
×
78
  }
79

80
  @Override
81
  public boolean equals(Object o) {
82
    if (this == o) {
×
83
      return true;
×
84
    }
85
    if (o == null || getClass() != o.getClass()) {
×
86
      return false;
×
87
    }
88
    CreateTermsOfServiceRequestBody casted = (CreateTermsOfServiceRequestBody) o;
×
89
    return Objects.equals(status, casted.status)
×
90
        && Objects.equals(tosType, casted.tosType)
×
91
        && Objects.equals(text, casted.text);
×
92
  }
93

94
  @Override
95
  public int hashCode() {
96
    return Objects.hash(status, tosType, text);
×
97
  }
98

99
  @Override
100
  public String toString() {
101
    return "CreateTermsOfServiceRequestBody{"
×
102
        + "status='"
103
        + status
104
        + '\''
105
        + ", "
106
        + "tosType='"
107
        + tosType
108
        + '\''
109
        + ", "
110
        + "text='"
111
        + text
112
        + '\''
113
        + "}";
114
  }
115

116
  public static class Builder extends NullableFieldTracker {
117

118
    protected final EnumWrapper<CreateTermsOfServiceRequestBodyStatusField> status;
119

120
    protected EnumWrapper<CreateTermsOfServiceRequestBodyTosTypeField> tosType;
121

122
    protected final String text;
123

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

130
    public Builder(EnumWrapper<CreateTermsOfServiceRequestBodyStatusField> status, String text) {
131
      super();
×
132
      this.status = status;
×
133
      this.text = text;
×
134
    }
×
135

136
    public Builder tosType(CreateTermsOfServiceRequestBodyTosTypeField tosType) {
137
      this.tosType = new EnumWrapper<CreateTermsOfServiceRequestBodyTosTypeField>(tosType);
×
138
      return this;
×
139
    }
140

141
    public Builder tosType(EnumWrapper<CreateTermsOfServiceRequestBodyTosTypeField> tosType) {
142
      this.tosType = tosType;
×
143
      return this;
×
144
    }
145

146
    public CreateTermsOfServiceRequestBody build() {
147
      return new CreateTermsOfServiceRequestBody(this);
×
148
    }
149
  }
150
}
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