• 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

48.65
/src/main/java/com/box/sdkgen/managers/weblinks/UpdateWebLinkByIdRequestBodySharedLinkField.java
1
package com.box.sdkgen.managers.weblinks;
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 UpdateWebLinkByIdRequestBodySharedLinkField extends SerializableObject {
17

18
  @JsonDeserialize(
19
      using =
20
          UpdateWebLinkByIdRequestBodySharedLinkAccessField
21
              .UpdateWebLinkByIdRequestBodySharedLinkAccessFieldDeserializer.class)
22
  @JsonSerialize(
23
      using =
24
          UpdateWebLinkByIdRequestBodySharedLinkAccessField
25
              .UpdateWebLinkByIdRequestBodySharedLinkAccessFieldSerializer.class)
26
  protected EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField> 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
  public UpdateWebLinkByIdRequestBodySharedLinkField() {
UNCOV
39
    super();
×
UNCOV
40
  }
×
41

42
  protected UpdateWebLinkByIdRequestBodySharedLinkField(Builder builder) {
43
    super();
1✔
44
    this.access = builder.access;
1✔
45
    this.password = builder.password;
1✔
46
    this.vanityName = builder.vanityName;
1✔
47
    this.unsharedAt = builder.unsharedAt;
1✔
48
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
49
  }
1✔
50

51
  public EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField> getAccess() {
52
    return access;
1✔
53
  }
54

55
  public String getPassword() {
56
    return password;
1✔
57
  }
58

59
  public String getVanityName() {
60
    return vanityName;
1✔
61
  }
62

63
  public Date getUnsharedAt() {
64
    return unsharedAt;
1✔
65
  }
66

67
  @Override
68
  public boolean equals(Object o) {
UNCOV
69
    if (this == o) {
×
70
      return true;
×
71
    }
72
    if (o == null || getClass() != o.getClass()) {
×
73
      return false;
×
74
    }
75
    UpdateWebLinkByIdRequestBodySharedLinkField casted =
×
76
        (UpdateWebLinkByIdRequestBodySharedLinkField) o;
UNCOV
77
    return Objects.equals(access, casted.access)
×
UNCOV
78
        && Objects.equals(password, casted.password)
×
UNCOV
79
        && Objects.equals(vanityName, casted.vanityName)
×
80
        && Objects.equals(unsharedAt, casted.unsharedAt);
×
81
  }
82

83
  @Override
84
  public int hashCode() {
85
    return Objects.hash(access, password, vanityName, unsharedAt);
×
86
  }
87

88
  @Override
89
  public String toString() {
UNCOV
90
    return "UpdateWebLinkByIdRequestBodySharedLinkField{"
×
91
        + "access='"
92
        + access
93
        + '\''
94
        + ", "
95
        + "password='"
96
        + password
97
        + '\''
98
        + ", "
99
        + "vanityName='"
100
        + vanityName
101
        + '\''
102
        + ", "
103
        + "unsharedAt='"
104
        + unsharedAt
105
        + '\''
106
        + "}";
107
  }
108

109
  public static class Builder extends NullableFieldTracker {
1✔
110

111
    protected EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField> access;
112

113
    protected String password;
114

115
    protected String vanityName;
116

117
    protected Date unsharedAt;
118

119
    public Builder access(UpdateWebLinkByIdRequestBodySharedLinkAccessField access) {
120
      this.access = new EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField>(access);
1✔
121
      return this;
1✔
122
    }
123

124
    public Builder access(EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField> access) {
UNCOV
125
      this.access = access;
×
UNCOV
126
      return this;
×
127
    }
128

129
    public Builder password(String password) {
130
      this.password = password;
1✔
131
      this.markNullableFieldAsSet("password");
1✔
132
      return this;
1✔
133
    }
134

135
    public Builder vanityName(String vanityName) {
136
      this.vanityName = vanityName;
×
UNCOV
137
      return this;
×
138
    }
139

140
    public Builder unsharedAt(Date unsharedAt) {
UNCOV
141
      this.unsharedAt = unsharedAt;
×
UNCOV
142
      return this;
×
143
    }
144

145
    public UpdateWebLinkByIdRequestBodySharedLinkField build() {
146
      return new UpdateWebLinkByIdRequestBodySharedLinkField(this);
1✔
147
    }
148
  }
149
}
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