Skip to content

Commit 68fc3ff

Browse files
feat(javascript): add replaceAllObjectsWithTransformation (generated)
algolia/api-clients-automation#5008 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent bca7110 commit 68fc3ff

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
2+
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3+
4+
package com.algolia.model.search;
5+
6+
import com.fasterxml.jackson.annotation.*;
7+
import com.fasterxml.jackson.databind.annotation.*;
8+
import java.util.ArrayList;
9+
import java.util.List;
10+
import java.util.Objects;
11+
12+
/** ReplaceAllObjectsWithTransformationResponse */
13+
public class ReplaceAllObjectsWithTransformationResponse {
14+
15+
@JsonProperty("copyOperationResponse")
16+
private UpdatedAtResponse copyOperationResponse;
17+
18+
@JsonProperty("watchResponses")
19+
private List<WatchResponse> watchResponses = new ArrayList<>();
20+
21+
@JsonProperty("moveOperationResponse")
22+
private UpdatedAtResponse moveOperationResponse;
23+
24+
public ReplaceAllObjectsWithTransformationResponse setCopyOperationResponse(UpdatedAtResponse copyOperationResponse) {
25+
this.copyOperationResponse = copyOperationResponse;
26+
return this;
27+
}
28+
29+
/** Get copyOperationResponse */
30+
@javax.annotation.Nonnull
31+
public UpdatedAtResponse getCopyOperationResponse() {
32+
return copyOperationResponse;
33+
}
34+
35+
public ReplaceAllObjectsWithTransformationResponse setWatchResponses(List<WatchResponse> watchResponses) {
36+
this.watchResponses = watchResponses;
37+
return this;
38+
}
39+
40+
public ReplaceAllObjectsWithTransformationResponse addWatchResponses(WatchResponse watchResponsesItem) {
41+
this.watchResponses.add(watchResponsesItem);
42+
return this;
43+
}
44+
45+
/** The response of the `push` request(s). */
46+
@javax.annotation.Nonnull
47+
public List<WatchResponse> getWatchResponses() {
48+
return watchResponses;
49+
}
50+
51+
public ReplaceAllObjectsWithTransformationResponse setMoveOperationResponse(UpdatedAtResponse moveOperationResponse) {
52+
this.moveOperationResponse = moveOperationResponse;
53+
return this;
54+
}
55+
56+
/** Get moveOperationResponse */
57+
@javax.annotation.Nonnull
58+
public UpdatedAtResponse getMoveOperationResponse() {
59+
return moveOperationResponse;
60+
}
61+
62+
@Override
63+
public boolean equals(Object o) {
64+
if (this == o) {
65+
return true;
66+
}
67+
if (o == null || getClass() != o.getClass()) {
68+
return false;
69+
}
70+
ReplaceAllObjectsWithTransformationResponse replaceAllObjectsWithTransformationResponse =
71+
(ReplaceAllObjectsWithTransformationResponse) o;
72+
return (
73+
Objects.equals(this.copyOperationResponse, replaceAllObjectsWithTransformationResponse.copyOperationResponse) &&
74+
Objects.equals(this.watchResponses, replaceAllObjectsWithTransformationResponse.watchResponses) &&
75+
Objects.equals(this.moveOperationResponse, replaceAllObjectsWithTransformationResponse.moveOperationResponse)
76+
);
77+
}
78+
79+
@Override
80+
public int hashCode() {
81+
return Objects.hash(copyOperationResponse, watchResponses, moveOperationResponse);
82+
}
83+
84+
@Override
85+
public String toString() {
86+
StringBuilder sb = new StringBuilder();
87+
sb.append("class ReplaceAllObjectsWithTransformationResponse {\n");
88+
sb.append(" copyOperationResponse: ").append(toIndentedString(copyOperationResponse)).append("\n");
89+
sb.append(" watchResponses: ").append(toIndentedString(watchResponses)).append("\n");
90+
sb.append(" moveOperationResponse: ").append(toIndentedString(moveOperationResponse)).append("\n");
91+
sb.append("}");
92+
return sb.toString();
93+
}
94+
95+
/**
96+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
97+
*/
98+
private String toIndentedString(Object o) {
99+
if (o == null) {
100+
return "null";
101+
}
102+
return o.toString().replace("\n", "\n ");
103+
}
104+
}

0 commit comments

Comments
 (0)