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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

45.71
/src/main/java/com/box/sdkgen/managers/weblinks/UpdateWebLinkByIdRequestBodySharedLinkField.java
1
package com.box.sdkgen.managers.weblinks;
2

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

12
public class UpdateWebLinkByIdRequestBodySharedLinkField extends SerializableObject {
13

14
  @JsonDeserialize(
15
      using =
16
          UpdateWebLinkByIdRequestBodySharedLinkAccessField
17
              .UpdateWebLinkByIdRequestBodySharedLinkAccessFieldDeserializer.class)
18
  @JsonSerialize(
19
      using =
20
          UpdateWebLinkByIdRequestBodySharedLinkAccessField
21
              .UpdateWebLinkByIdRequestBodySharedLinkAccessFieldSerializer.class)
22
  protected EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField> access;
23

24
  protected String password;
25

26
  @JsonProperty("vanity_name")
27
  protected String vanityName;
28

29
  @JsonProperty("unshared_at")
30
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
31
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
32
  protected Date unsharedAt;
33

34
  public UpdateWebLinkByIdRequestBodySharedLinkField() {
35
    super();
×
36
  }
×
37

38
  protected UpdateWebLinkByIdRequestBodySharedLinkField(Builder builder) {
39
    super();
1✔
40
    this.access = builder.access;
1✔
41
    this.password = builder.password;
1✔
42
    this.vanityName = builder.vanityName;
1✔
43
    this.unsharedAt = builder.unsharedAt;
1✔
44
  }
1✔
45

46
  public EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField> getAccess() {
47
    return access;
1✔
48
  }
49

50
  public String getPassword() {
51
    return password;
1✔
52
  }
53

54
  public String getVanityName() {
55
    return vanityName;
1✔
56
  }
57

58
  public Date getUnsharedAt() {
59
    return unsharedAt;
1✔
60
  }
61

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

78
  @Override
79
  public int hashCode() {
80
    return Objects.hash(access, password, vanityName, unsharedAt);
×
81
  }
82

83
  @Override
84
  public String toString() {
85
    return "UpdateWebLinkByIdRequestBodySharedLinkField{"
×
86
        + "access='"
87
        + access
88
        + '\''
89
        + ", "
90
        + "password='"
91
        + password
92
        + '\''
93
        + ", "
94
        + "vanityName='"
95
        + vanityName
96
        + '\''
97
        + ", "
98
        + "unsharedAt='"
99
        + unsharedAt
100
        + '\''
101
        + "}";
102
  }
103

104
  public static class Builder {
1✔
105

106
    protected EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField> access;
107

108
    protected String password;
109

110
    protected String vanityName;
111

112
    protected Date unsharedAt;
113

114
    public Builder access(UpdateWebLinkByIdRequestBodySharedLinkAccessField access) {
115
      this.access = new EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField>(access);
1✔
116
      return this;
1✔
117
    }
118

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

124
    public Builder password(String password) {
125
      this.password = password;
1✔
126
      return this;
1✔
127
    }
128

129
    public Builder vanityName(String vanityName) {
130
      this.vanityName = vanityName;
×
131
      return this;
×
132
    }
133

134
    public Builder unsharedAt(Date unsharedAt) {
135
      this.unsharedAt = unsharedAt;
×
136
      return this;
×
137
    }
138

139
    public UpdateWebLinkByIdRequestBodySharedLinkField build() {
140
      return new UpdateWebLinkByIdRequestBodySharedLinkField(this);
1✔
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