• 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

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() {
UNCOV
35
    super();
×
UNCOV
36
  }
×
37

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

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

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

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

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

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

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

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

105
  public static class UpdateWebLinkByIdRequestBodySharedLinkFieldBuilder {
1✔
106

107
    protected EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField> access;
108

109
    protected String password;
110

111
    protected String vanityName;
112

113
    protected Date unsharedAt;
114

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

121
    public UpdateWebLinkByIdRequestBodySharedLinkFieldBuilder access(
122
        EnumWrapper<UpdateWebLinkByIdRequestBodySharedLinkAccessField> access) {
UNCOV
123
      this.access = access;
×
UNCOV
124
      return this;
×
125
    }
126

127
    public UpdateWebLinkByIdRequestBodySharedLinkFieldBuilder password(String password) {
128
      this.password = password;
1✔
129
      return this;
1✔
130
    }
131

132
    public UpdateWebLinkByIdRequestBodySharedLinkFieldBuilder vanityName(String vanityName) {
UNCOV
133
      this.vanityName = vanityName;
×
134
      return this;
×
135
    }
136

137
    public UpdateWebLinkByIdRequestBodySharedLinkFieldBuilder unsharedAt(Date unsharedAt) {
UNCOV
138
      this.unsharedAt = unsharedAt;
×
UNCOV
139
      return this;
×
140
    }
141

142
    public UpdateWebLinkByIdRequestBodySharedLinkField build() {
143
      return new UpdateWebLinkByIdRequestBodySharedLinkField(this);
1✔
144
    }
145
  }
146
}
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