• 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/folders/UpdateFolderByIdRequestBodySharedLinkField.java
1
package com.box.sdkgen.managers.folders;
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 UpdateFolderByIdRequestBodySharedLinkField extends SerializableObject {
13

14
  @JsonDeserialize(
15
      using =
16
          UpdateFolderByIdRequestBodySharedLinkAccessField
17
              .UpdateFolderByIdRequestBodySharedLinkAccessFieldDeserializer.class)
18
  @JsonSerialize(
19
      using =
20
          UpdateFolderByIdRequestBodySharedLinkAccessField
21
              .UpdateFolderByIdRequestBodySharedLinkAccessFieldSerializer.class)
22
  protected EnumWrapper<UpdateFolderByIdRequestBodySharedLinkAccessField> 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 UpdateFolderByIdRequestBodySharedLinkPermissionsField permissions;
35

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

40
  protected UpdateFolderByIdRequestBodySharedLinkField(
41
      UpdateFolderByIdRequestBodySharedLinkFieldBuilder 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<UpdateFolderByIdRequestBodySharedLinkAccessField> 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 UpdateFolderByIdRequestBodySharedLinkPermissionsField getPermissions() {
UNCOV
67
    return permissions;
×
68
  }
69

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

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

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

UNCOV
117
  public static class UpdateFolderByIdRequestBodySharedLinkFieldBuilder {
×
118

119
    protected EnumWrapper<UpdateFolderByIdRequestBodySharedLinkAccessField> access;
120

121
    protected String password;
122

123
    protected String vanityName;
124

125
    protected Date unsharedAt;
126

127
    protected UpdateFolderByIdRequestBodySharedLinkPermissionsField permissions;
128

129
    public UpdateFolderByIdRequestBodySharedLinkFieldBuilder access(
130
        UpdateFolderByIdRequestBodySharedLinkAccessField access) {
UNCOV
131
      this.access = new EnumWrapper<UpdateFolderByIdRequestBodySharedLinkAccessField>(access);
×
UNCOV
132
      return this;
×
133
    }
134

135
    public UpdateFolderByIdRequestBodySharedLinkFieldBuilder access(
136
        EnumWrapper<UpdateFolderByIdRequestBodySharedLinkAccessField> access) {
UNCOV
137
      this.access = access;
×
138
      return this;
×
139
    }
140

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

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

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

156
    public UpdateFolderByIdRequestBodySharedLinkFieldBuilder permissions(
157
        UpdateFolderByIdRequestBodySharedLinkPermissionsField permissions) {
UNCOV
158
      this.permissions = permissions;
×
159
      return this;
×
160
    }
161

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