• 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/folders/UpdateFolderByIdRequestBodySharedLinkField.java
1
package com.box.sdkgen.managers.folders;
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.time.OffsetDateTime;
13
import java.util.Objects;
14

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

18
  /**
19
   * The level of access for the shared link. This can be restricted to anyone with the link
20
   * (`open`), only people within the company (`company`) and only those who have been invited to
21
   * the folder (`collaborators`).
22
   *
23
   * <p>If not set, this field defaults to the access level specified by the enterprise admin. To
24
   * create a shared link with this default setting pass the `shared_link` object with no `access`
25
   * field, for example `{ "shared_link": {} }`.
26
   *
27
   * <p>The `company` access level is only available to paid accounts.
28
   */
29
  @JsonDeserialize(
30
      using =
31
          UpdateFolderByIdRequestBodySharedLinkAccessField
32
              .UpdateFolderByIdRequestBodySharedLinkAccessFieldDeserializer.class)
33
  @JsonSerialize(
34
      using =
35
          UpdateFolderByIdRequestBodySharedLinkAccessField
36
              .UpdateFolderByIdRequestBodySharedLinkAccessFieldSerializer.class)
37
  protected EnumWrapper<UpdateFolderByIdRequestBodySharedLinkAccessField> access;
38

39
  /**
40
   * The password required to access the shared link. Set the password to `null` to remove it.
41
   * Passwords must now be at least eight characters long and include a number, upper case letter,
42
   * or a non-numeric or non-alphabetic character. A password can only be set when `access` is set
43
   * to `open`.
44
   */
45
  @Nullable protected String password;
46

47
  /**
48
   * Defines a custom vanity name to use in the shared link URL, for example
49
   * `https://app.box.com/v/my-shared-link`.
50
   *
51
   * <p>Custom URLs should not be used when sharing sensitive content as vanity URLs are a lot
52
   * easier to guess than regular shared links.
53
   */
54
  @JsonProperty("vanity_name")
55
  protected String vanityName;
56

57
  /**
58
   * The timestamp at which this shared link will expire. This field can only be set by users with
59
   * paid accounts.
60
   */
61
  @JsonProperty("unshared_at")
62
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
63
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
64
  protected OffsetDateTime unsharedAt;
65

66
  protected UpdateFolderByIdRequestBodySharedLinkPermissionsField permissions;
67

68
  public UpdateFolderByIdRequestBodySharedLinkField() {
69
    super();
×
70
  }
×
71

72
  protected UpdateFolderByIdRequestBodySharedLinkField(Builder builder) {
73
    super();
×
74
    this.access = builder.access;
×
75
    this.password = builder.password;
×
76
    this.vanityName = builder.vanityName;
×
77
    this.unsharedAt = builder.unsharedAt;
×
78
    this.permissions = builder.permissions;
×
79
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
80
  }
×
81

82
  public EnumWrapper<UpdateFolderByIdRequestBodySharedLinkAccessField> getAccess() {
83
    return access;
×
84
  }
85

86
  public String getPassword() {
87
    return password;
×
88
  }
89

90
  public String getVanityName() {
91
    return vanityName;
×
92
  }
93

94
  public OffsetDateTime getUnsharedAt() {
95
    return unsharedAt;
×
96
  }
97

98
  public UpdateFolderByIdRequestBodySharedLinkPermissionsField getPermissions() {
99
    return permissions;
×
100
  }
101

102
  @Override
103
  public boolean equals(Object o) {
104
    if (this == o) {
×
105
      return true;
×
106
    }
107
    if (o == null || getClass() != o.getClass()) {
×
108
      return false;
×
109
    }
110
    UpdateFolderByIdRequestBodySharedLinkField casted =
×
111
        (UpdateFolderByIdRequestBodySharedLinkField) o;
112
    return Objects.equals(access, casted.access)
×
113
        && Objects.equals(password, casted.password)
×
114
        && Objects.equals(vanityName, casted.vanityName)
×
115
        && Objects.equals(unsharedAt, casted.unsharedAt)
×
116
        && Objects.equals(permissions, casted.permissions);
×
117
  }
118

119
  @Override
120
  public int hashCode() {
121
    return Objects.hash(access, password, vanityName, unsharedAt, permissions);
×
122
  }
123

124
  @Override
125
  public String toString() {
126
    return "UpdateFolderByIdRequestBodySharedLinkField{"
×
127
        + "access='"
128
        + access
129
        + '\''
130
        + ", "
131
        + "password='"
132
        + password
133
        + '\''
134
        + ", "
135
        + "vanityName='"
136
        + vanityName
137
        + '\''
138
        + ", "
139
        + "unsharedAt='"
140
        + unsharedAt
141
        + '\''
142
        + ", "
143
        + "permissions='"
144
        + permissions
145
        + '\''
146
        + "}";
147
  }
148

149
  public static class Builder extends NullableFieldTracker {
×
150

151
    protected EnumWrapper<UpdateFolderByIdRequestBodySharedLinkAccessField> access;
152

153
    protected String password;
154

155
    protected String vanityName;
156

157
    protected OffsetDateTime unsharedAt;
158

159
    protected UpdateFolderByIdRequestBodySharedLinkPermissionsField permissions;
160

161
    public Builder access(UpdateFolderByIdRequestBodySharedLinkAccessField access) {
162
      this.access = new EnumWrapper<UpdateFolderByIdRequestBodySharedLinkAccessField>(access);
×
163
      return this;
×
164
    }
165

166
    public Builder access(EnumWrapper<UpdateFolderByIdRequestBodySharedLinkAccessField> access) {
167
      this.access = access;
×
168
      return this;
×
169
    }
170

171
    public Builder password(String password) {
172
      this.password = password;
×
173
      this.markNullableFieldAsSet("password");
×
174
      return this;
×
175
    }
176

177
    public Builder vanityName(String vanityName) {
178
      this.vanityName = vanityName;
×
179
      return this;
×
180
    }
181

182
    public Builder unsharedAt(OffsetDateTime unsharedAt) {
183
      this.unsharedAt = unsharedAt;
×
184
      return this;
×
185
    }
186

187
    public Builder permissions(UpdateFolderByIdRequestBodySharedLinkPermissionsField permissions) {
188
      this.permissions = permissions;
×
189
      return this;
×
190
    }
191

192
    public UpdateFolderByIdRequestBodySharedLinkField build() {
193
      return new UpdateFolderByIdRequestBodySharedLinkField(this);
×
194
    }
195
  }
196
}
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