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

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

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/files/UpdateFileByIdRequestBodySharedLinkField.java
1
package com.box.sdkgen.managers.files;
2

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

15
@JsonFilter("nullablePropertyFilter")
16
public class UpdateFileByIdRequestBodySharedLinkField extends SerializableObject {
17

18
  @JsonDeserialize(
19
      using =
20
          UpdateFileByIdRequestBodySharedLinkAccessField
21
              .UpdateFileByIdRequestBodySharedLinkAccessFieldDeserializer.class)
22
  @JsonSerialize(
23
      using =
24
          UpdateFileByIdRequestBodySharedLinkAccessField
25
              .UpdateFileByIdRequestBodySharedLinkAccessFieldSerializer.class)
26
  protected EnumWrapper<UpdateFileByIdRequestBodySharedLinkAccessField> access;
27

28
  @Nullable protected String password;
29

30
  @JsonProperty("vanity_name")
31
  protected String vanityName;
32

33
  @JsonProperty("unshared_at")
34
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
35
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
36
  protected Date unsharedAt;
37

38
  protected UpdateFileByIdRequestBodySharedLinkPermissionsField permissions;
39

40
  public UpdateFileByIdRequestBodySharedLinkField() {
41
    super();
×
42
  }
×
43

44
  protected UpdateFileByIdRequestBodySharedLinkField(Builder builder) {
45
    super();
×
46
    this.access = builder.access;
×
47
    this.password = builder.password;
×
UNCOV
48
    this.vanityName = builder.vanityName;
×
UNCOV
49
    this.unsharedAt = builder.unsharedAt;
×
50
    this.permissions = builder.permissions;
×
UNCOV
51
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
52
  }
×
53

54
  public EnumWrapper<UpdateFileByIdRequestBodySharedLinkAccessField> getAccess() {
UNCOV
55
    return access;
×
56
  }
57

58
  public String getPassword() {
UNCOV
59
    return password;
×
60
  }
61

62
  public String getVanityName() {
UNCOV
63
    return vanityName;
×
64
  }
65

66
  public Date getUnsharedAt() {
UNCOV
67
    return unsharedAt;
×
68
  }
69

70
  public UpdateFileByIdRequestBodySharedLinkPermissionsField getPermissions() {
71
    return permissions;
×
72
  }
73

74
  @Override
75
  public boolean equals(Object o) {
UNCOV
76
    if (this == o) {
×
77
      return true;
×
78
    }
79
    if (o == null || getClass() != o.getClass()) {
×
80
      return false;
×
81
    }
82
    UpdateFileByIdRequestBodySharedLinkField casted = (UpdateFileByIdRequestBodySharedLinkField) o;
×
UNCOV
83
    return Objects.equals(access, casted.access)
×
UNCOV
84
        && Objects.equals(password, casted.password)
×
UNCOV
85
        && Objects.equals(vanityName, casted.vanityName)
×
UNCOV
86
        && Objects.equals(unsharedAt, casted.unsharedAt)
×
87
        && Objects.equals(permissions, casted.permissions);
×
88
  }
89

90
  @Override
91
  public int hashCode() {
92
    return Objects.hash(access, password, vanityName, unsharedAt, permissions);
×
93
  }
94

95
  @Override
96
  public String toString() {
UNCOV
97
    return "UpdateFileByIdRequestBodySharedLinkField{"
×
98
        + "access='"
99
        + access
100
        + '\''
101
        + ", "
102
        + "password='"
103
        + password
104
        + '\''
105
        + ", "
106
        + "vanityName='"
107
        + vanityName
108
        + '\''
109
        + ", "
110
        + "unsharedAt='"
111
        + unsharedAt
112
        + '\''
113
        + ", "
114
        + "permissions='"
115
        + permissions
116
        + '\''
117
        + "}";
118
  }
119

UNCOV
120
  public static class Builder extends NullableFieldTracker {
×
121

122
    protected EnumWrapper<UpdateFileByIdRequestBodySharedLinkAccessField> access;
123

124
    protected String password;
125

126
    protected String vanityName;
127

128
    protected Date unsharedAt;
129

130
    protected UpdateFileByIdRequestBodySharedLinkPermissionsField permissions;
131

132
    public Builder access(UpdateFileByIdRequestBodySharedLinkAccessField access) {
133
      this.access = new EnumWrapper<UpdateFileByIdRequestBodySharedLinkAccessField>(access);
×
134
      return this;
×
135
    }
136

137
    public Builder access(EnumWrapper<UpdateFileByIdRequestBodySharedLinkAccessField> access) {
138
      this.access = access;
×
139
      return this;
×
140
    }
141

142
    public Builder password(String password) {
143
      this.password = password;
×
144
      this.markNullableFieldAsSet("password");
×
UNCOV
145
      return this;
×
146
    }
147

148
    public Builder vanityName(String vanityName) {
149
      this.vanityName = vanityName;
×
UNCOV
150
      return this;
×
151
    }
152

153
    public Builder unsharedAt(Date unsharedAt) {
154
      this.unsharedAt = unsharedAt;
×
UNCOV
155
      return this;
×
156
    }
157

158
    public Builder permissions(UpdateFileByIdRequestBodySharedLinkPermissionsField permissions) {
UNCOV
159
      this.permissions = permissions;
×
UNCOV
160
      return this;
×
161
    }
162

163
    public UpdateFileByIdRequestBodySharedLinkField build() {
UNCOV
164
      return new UpdateFileByIdRequestBodySharedLinkField(this);
×
165
    }
166
  }
167
}
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