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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

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

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

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/aistudioagenttextgen/AiStudioAgentTextGen.java
1
package com.box.sdkgen.schemas.aistudioagenttextgen;
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.schemas.aistudioagentbasicgentool.AiStudioAgentBasicGenTool;
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.util.Objects;
13

14
@JsonFilter("nullablePropertyFilter")
15
public class AiStudioAgentTextGen extends SerializableObject {
16

17
  @JsonDeserialize(
18
      using = AiStudioAgentTextGenTypeField.AiStudioAgentTextGenTypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using = AiStudioAgentTextGenTypeField.AiStudioAgentTextGenTypeFieldSerializer.class)
21
  protected EnumWrapper<AiStudioAgentTextGenTypeField> type;
22

23
  @JsonProperty("access_state")
24
  protected final String accessState;
25

26
  protected final String description;
27

28
  @JsonProperty("custom_instructions")
29
  @Nullable
30
  protected String customInstructions;
31

32
  @JsonProperty("basic_gen")
33
  protected AiStudioAgentBasicGenTool basicGen;
34

35
  public AiStudioAgentTextGen(
36
      @JsonProperty("access_state") String accessState,
37
      @JsonProperty("description") String description) {
UNCOV
38
    super();
×
39
    this.accessState = accessState;
×
UNCOV
40
    this.description = description;
×
UNCOV
41
    this.type =
×
42
        new EnumWrapper<AiStudioAgentTextGenTypeField>(
43
            AiStudioAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
44
  }
×
45

46
  protected AiStudioAgentTextGen(Builder builder) {
47
    super();
×
48
    this.type = builder.type;
×
UNCOV
49
    this.accessState = builder.accessState;
×
UNCOV
50
    this.description = builder.description;
×
51
    this.customInstructions = builder.customInstructions;
×
UNCOV
52
    this.basicGen = builder.basicGen;
×
UNCOV
53
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
54
  }
×
55

56
  public EnumWrapper<AiStudioAgentTextGenTypeField> getType() {
UNCOV
57
    return type;
×
58
  }
59

60
  public String getAccessState() {
UNCOV
61
    return accessState;
×
62
  }
63

64
  public String getDescription() {
UNCOV
65
    return description;
×
66
  }
67

68
  public String getCustomInstructions() {
UNCOV
69
    return customInstructions;
×
70
  }
71

72
  public AiStudioAgentBasicGenTool getBasicGen() {
73
    return basicGen;
×
74
  }
75

76
  @Override
77
  public boolean equals(Object o) {
78
    if (this == o) {
×
79
      return true;
×
80
    }
81
    if (o == null || getClass() != o.getClass()) {
×
82
      return false;
×
83
    }
UNCOV
84
    AiStudioAgentTextGen casted = (AiStudioAgentTextGen) o;
×
UNCOV
85
    return Objects.equals(type, casted.type)
×
UNCOV
86
        && Objects.equals(accessState, casted.accessState)
×
UNCOV
87
        && Objects.equals(description, casted.description)
×
88
        && Objects.equals(customInstructions, casted.customInstructions)
×
UNCOV
89
        && Objects.equals(basicGen, casted.basicGen);
×
90
  }
91

92
  @Override
93
  public int hashCode() {
UNCOV
94
    return Objects.hash(type, accessState, description, customInstructions, basicGen);
×
95
  }
96

97
  @Override
98
  public String toString() {
UNCOV
99
    return "AiStudioAgentTextGen{"
×
100
        + "type='"
101
        + type
102
        + '\''
103
        + ", "
104
        + "accessState='"
105
        + accessState
106
        + '\''
107
        + ", "
108
        + "description='"
109
        + description
110
        + '\''
111
        + ", "
112
        + "customInstructions='"
113
        + customInstructions
114
        + '\''
115
        + ", "
116
        + "basicGen='"
117
        + basicGen
118
        + '\''
119
        + "}";
120
  }
121

122
  public static class Builder extends NullableFieldTracker {
123

124
    protected EnumWrapper<AiStudioAgentTextGenTypeField> type;
125

126
    protected final String accessState;
127

128
    protected final String description;
129

130
    protected String customInstructions;
131

132
    protected AiStudioAgentBasicGenTool basicGen;
133

134
    public Builder(String accessState, String description) {
UNCOV
135
      super();
×
UNCOV
136
      this.accessState = accessState;
×
137
      this.description = description;
×
138
      this.type =
×
139
          new EnumWrapper<AiStudioAgentTextGenTypeField>(
140
              AiStudioAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
UNCOV
141
    }
×
142

143
    public Builder type(AiStudioAgentTextGenTypeField type) {
UNCOV
144
      this.type = new EnumWrapper<AiStudioAgentTextGenTypeField>(type);
×
UNCOV
145
      return this;
×
146
    }
147

148
    public Builder type(EnumWrapper<AiStudioAgentTextGenTypeField> type) {
UNCOV
149
      this.type = type;
×
UNCOV
150
      return this;
×
151
    }
152

153
    public Builder customInstructions(String customInstructions) {
UNCOV
154
      this.customInstructions = customInstructions;
×
UNCOV
155
      this.markNullableFieldAsSet("custom_instructions");
×
UNCOV
156
      return this;
×
157
    }
158

159
    public Builder basicGen(AiStudioAgentBasicGenTool basicGen) {
UNCOV
160
      this.basicGen = basicGen;
×
UNCOV
161
      return this;
×
162
    }
163

164
    public AiStudioAgentTextGen build() {
UNCOV
165
      return new AiStudioAgentTextGen(this);
×
166
    }
167
  }
168
}
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