Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "7c01dda", "specHash": "74a1e4a", "version": "10.6.0" }
{ "engineHash": "02fdae4", "specHash": "c8e3a85", "version": "10.6.0" }
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public enum SearchForContentQueryParamsContentTypesField implements Valuable {
DESCRIPTION("description"),
FILE_CONTENT("file_content"),
COMMENTS("comments"),
TAG("tag");
TAGS("tags");

private final String value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.box.sdkgen.schemas.v2025r0.hubitemreferencev2025r0.HubItemReferenceV2025R0;
import com.box.sdkgen.schemas.v2025r0.weblinkreferencev2025r0.WeblinkReferenceV2025R0;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

/** Result of a Box Hub item operation. */
Expand All @@ -18,6 +19,10 @@ public class HubItemOperationResultV2025R0 extends SerializableObject {

protected HubItemReferenceV2025R0 item;

/** The ID of the parent block the item was added to. */
@JsonProperty("parent_id")
protected String parentId;

/** The HTTP status code of the operation. */
protected Long status;

Expand All @@ -32,6 +37,7 @@ protected HubItemOperationResultV2025R0(Builder builder) {
super();
this.action = builder.action;
this.item = builder.item;
this.parentId = builder.parentId;
this.status = builder.status;
this.error = builder.error;
markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
Expand All @@ -45,6 +51,10 @@ public HubItemReferenceV2025R0 getItem() {
return item;
}

public String getParentId() {
return parentId;
}

public Long getStatus() {
return status;
}
Expand All @@ -64,13 +74,14 @@ public boolean equals(Object o) {
HubItemOperationResultV2025R0 casted = (HubItemOperationResultV2025R0) o;
return Objects.equals(action, casted.action)
&& Objects.equals(item, casted.item)
&& Objects.equals(parentId, casted.parentId)
&& Objects.equals(status, casted.status)
&& Objects.equals(error, casted.error);
}

@Override
public int hashCode() {
return Objects.hash(action, item, status, error);
return Objects.hash(action, item, parentId, status, error);
}

@Override
Expand All @@ -84,6 +95,10 @@ public String toString() {
+ item
+ '\''
+ ", "
+ "parentId='"
+ parentId
+ '\''
+ ", "
+ "status='"
+ status
+ '\''
Expand All @@ -100,6 +115,8 @@ public static class Builder extends NullableFieldTracker {

protected HubItemReferenceV2025R0 item;

protected String parentId;

protected Long status;

protected String error;
Expand Down Expand Up @@ -129,6 +146,11 @@ public Builder item(HubItemReferenceV2025R0 item) {
return this;
}

public Builder parentId(String parentId) {
this.parentId = parentId;
return this;
}

public Builder status(Long status) {
this.status = status;
return this;
Expand Down
Loading