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

box / box-java-sdk-gen / #155

30 May 2025 01:03PM UTC coverage: 35.646% (+0.3%) from 35.311%
#155

push

github

web-flow
fix: Fix downscope token to use `retrieveToken` method for token retrieval (box/box-codegen#731) (#320)

4 of 4 new or added lines in 4 files covered. (100.0%)

2952 existing lines in 99 files now uncovered.

15628 of 43842 relevant lines covered (35.65%)

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.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 UpdateFileByIdRequestBodySharedLinkField extends SerializableObject {
13

14
  @JsonDeserialize(
15
      using =
16
          UpdateFileByIdRequestBodySharedLinkAccessField
17
              .UpdateFileByIdRequestBodySharedLinkAccessFieldDeserializer.class)
18
  @JsonSerialize(
19
      using =
20
          UpdateFileByIdRequestBodySharedLinkAccessField
21
              .UpdateFileByIdRequestBodySharedLinkAccessFieldSerializer.class)
22
  protected EnumWrapper<UpdateFileByIdRequestBodySharedLinkAccessField> 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
  protected UpdateFileByIdRequestBodySharedLinkPermissionsField permissions;
35

36
  public UpdateFileByIdRequestBodySharedLinkField() {
UNCOV
37
    super();
×
38
  }
×
39

40
  protected UpdateFileByIdRequestBodySharedLinkField(
41
      UpdateFileByIdRequestBodySharedLinkFieldBuilder builder) {
42
    super();
×
43
    this.access = builder.access;
×
44
    this.password = builder.password;
×
UNCOV
45
    this.vanityName = builder.vanityName;
×
UNCOV
46
    this.unsharedAt = builder.unsharedAt;
×
47
    this.permissions = builder.permissions;
×
UNCOV
48
  }
×
49

50
  public EnumWrapper<UpdateFileByIdRequestBodySharedLinkAccessField> getAccess() {
51
    return access;
×
52
  }
53

54
  public String getPassword() {
55
    return password;
×
56
  }
57

58
  public String getVanityName() {
59
    return vanityName;
×
60
  }
61

62
  public Date getUnsharedAt() {
63
    return unsharedAt;
×
64
  }
65

66
  public UpdateFileByIdRequestBodySharedLinkPermissionsField getPermissions() {
UNCOV
67
    return permissions;
×
68
  }
69

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

86
  @Override
87
  public int hashCode() {
UNCOV
88
    return Objects.hash(access, password, vanityName, unsharedAt, permissions);
×
89
  }
90

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

UNCOV
116
  public static class UpdateFileByIdRequestBodySharedLinkFieldBuilder {
×
117

118
    protected EnumWrapper<UpdateFileByIdRequestBodySharedLinkAccessField> access;
119

120
    protected String password;
121

122
    protected String vanityName;
123

124
    protected Date unsharedAt;
125

126
    protected UpdateFileByIdRequestBodySharedLinkPermissionsField permissions;
127

128
    public UpdateFileByIdRequestBodySharedLinkFieldBuilder access(
129
        UpdateFileByIdRequestBodySharedLinkAccessField access) {
UNCOV
130
      this.access = new EnumWrapper<UpdateFileByIdRequestBodySharedLinkAccessField>(access);
×
UNCOV
131
      return this;
×
132
    }
133

134
    public UpdateFileByIdRequestBodySharedLinkFieldBuilder access(
135
        EnumWrapper<UpdateFileByIdRequestBodySharedLinkAccessField> access) {
UNCOV
136
      this.access = access;
×
137
      return this;
×
138
    }
139

140
    public UpdateFileByIdRequestBodySharedLinkFieldBuilder password(String password) {
UNCOV
141
      this.password = password;
×
142
      return this;
×
143
    }
144

145
    public UpdateFileByIdRequestBodySharedLinkFieldBuilder vanityName(String vanityName) {
UNCOV
146
      this.vanityName = vanityName;
×
147
      return this;
×
148
    }
149

150
    public UpdateFileByIdRequestBodySharedLinkFieldBuilder unsharedAt(Date unsharedAt) {
UNCOV
151
      this.unsharedAt = unsharedAt;
×
UNCOV
152
      return this;
×
153
    }
154

155
    public UpdateFileByIdRequestBodySharedLinkFieldBuilder permissions(
156
        UpdateFileByIdRequestBodySharedLinkPermissionsField permissions) {
UNCOV
157
      this.permissions = permissions;
×
158
      return this;
×
159
    }
160

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