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

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

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/schemas/outcome/Outcome.java
1
package com.box.sdkgen.schemas.outcome;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.collaboratorvariable.CollaboratorVariable;
6
import com.box.sdkgen.schemas.completionrulevariable.CompletionRuleVariable;
7
import com.box.sdkgen.schemas.rolevariable.RoleVariable;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class Outcome extends SerializableObject {
14

15
  protected final String id;
16

17
  protected CollaboratorVariable collaborators;
18

19
  @JsonProperty("completion_rule")
20
  protected CompletionRuleVariable completionRule;
21

22
  @JsonProperty("file_collaborator_role")
23
  protected RoleVariable fileCollaboratorRole;
24

25
  @JsonProperty("task_collaborators")
26
  protected CollaboratorVariable taskCollaborators;
27

28
  protected RoleVariable role;
29

30
  public Outcome(@JsonProperty("id") String id) {
UNCOV
31
    super();
×
UNCOV
32
    this.id = id;
×
33
  }
×
34

35
  protected Outcome(Builder builder) {
36
    super();
×
37
    this.id = builder.id;
×
38
    this.collaborators = builder.collaborators;
×
39
    this.completionRule = builder.completionRule;
×
40
    this.fileCollaboratorRole = builder.fileCollaboratorRole;
×
UNCOV
41
    this.taskCollaborators = builder.taskCollaborators;
×
UNCOV
42
    this.role = builder.role;
×
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
44
  }
×
45

46
  public String getId() {
47
    return id;
×
48
  }
49

50
  public CollaboratorVariable getCollaborators() {
51
    return collaborators;
×
52
  }
53

54
  public CompletionRuleVariable getCompletionRule() {
55
    return completionRule;
×
56
  }
57

58
  public RoleVariable getFileCollaboratorRole() {
59
    return fileCollaboratorRole;
×
60
  }
61

62
  public CollaboratorVariable getTaskCollaborators() {
63
    return taskCollaborators;
×
64
  }
65

66
  public RoleVariable getRole() {
UNCOV
67
    return role;
×
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
    Outcome casted = (Outcome) o;
×
79
    return Objects.equals(id, casted.id)
×
80
        && Objects.equals(collaborators, casted.collaborators)
×
UNCOV
81
        && Objects.equals(completionRule, casted.completionRule)
×
UNCOV
82
        && Objects.equals(fileCollaboratorRole, casted.fileCollaboratorRole)
×
UNCOV
83
        && Objects.equals(taskCollaborators, casted.taskCollaborators)
×
UNCOV
84
        && Objects.equals(role, casted.role);
×
85
  }
86

87
  @Override
88
  public int hashCode() {
UNCOV
89
    return Objects.hash(
×
90
        id, collaborators, completionRule, fileCollaboratorRole, taskCollaborators, role);
91
  }
92

93
  @Override
94
  public String toString() {
UNCOV
95
    return "Outcome{"
×
96
        + "id='"
97
        + id
98
        + '\''
99
        + ", "
100
        + "collaborators='"
101
        + collaborators
102
        + '\''
103
        + ", "
104
        + "completionRule='"
105
        + completionRule
106
        + '\''
107
        + ", "
108
        + "fileCollaboratorRole='"
109
        + fileCollaboratorRole
110
        + '\''
111
        + ", "
112
        + "taskCollaborators='"
113
        + taskCollaborators
114
        + '\''
115
        + ", "
116
        + "role='"
117
        + role
118
        + '\''
119
        + "}";
120
  }
121

122
  public static class Builder extends NullableFieldTracker {
123

124
    protected final String id;
125

126
    protected CollaboratorVariable collaborators;
127

128
    protected CompletionRuleVariable completionRule;
129

130
    protected RoleVariable fileCollaboratorRole;
131

132
    protected CollaboratorVariable taskCollaborators;
133

134
    protected RoleVariable role;
135

136
    public Builder(String id) {
137
      super();
×
138
      this.id = id;
×
UNCOV
139
    }
×
140

141
    public Builder collaborators(CollaboratorVariable collaborators) {
142
      this.collaborators = collaborators;
×
143
      return this;
×
144
    }
145

146
    public Builder completionRule(CompletionRuleVariable completionRule) {
147
      this.completionRule = completionRule;
×
148
      return this;
×
149
    }
150

151
    public Builder fileCollaboratorRole(RoleVariable fileCollaboratorRole) {
152
      this.fileCollaboratorRole = fileCollaboratorRole;
×
153
      return this;
×
154
    }
155

156
    public Builder taskCollaborators(CollaboratorVariable taskCollaborators) {
157
      this.taskCollaborators = taskCollaborators;
×
158
      return this;
×
159
    }
160

161
    public Builder role(RoleVariable role) {
162
      this.role = role;
×
UNCOV
163
      return this;
×
164
    }
165

166
    public Outcome build() {
UNCOV
167
      return new Outcome(this);
×
168
    }
169
  }
170
}
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