-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCreateABotRequest.java
More file actions
369 lines (295 loc) · 12 KB
/
CreateABotRequest.java
File metadata and controls
369 lines (295 loc) · 12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
/*
* Sendbird Platform SDK
* Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com)
*
* The version of the OpenAPI document: 1.0.0
* Contact: support@sendbird.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.sendbird.client.JSON;
/**
* CreateABotRequest
*/
@JsonPropertyOrder({
CreateABotRequest.JSON_PROPERTY_BOT_CALLBACK_URL,
CreateABotRequest.JSON_PROPERTY_BOT_NICKNAME,
CreateABotRequest.JSON_PROPERTY_BOT_PROFILE_URL,
CreateABotRequest.JSON_PROPERTY_BOT_TYPE,
CreateABotRequest.JSON_PROPERTY_BOT_USERID,
CreateABotRequest.JSON_PROPERTY_IS_PRIVACY_MODE,
CreateABotRequest.JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE,
CreateABotRequest.JSON_PROPERTY_ENABLE_MARK_AS_READ,
CreateABotRequest.JSON_PROPERTY_SHOW_MEMBER
})
@JsonTypeName("createABot_request")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-07T12:17:09.099818+09:00[Asia/Seoul]")
public class CreateABotRequest {
public static final String JSON_PROPERTY_BOT_CALLBACK_URL = "bot_callback_url";
private String botCallbackUrl;
public static final String JSON_PROPERTY_BOT_NICKNAME = "bot_nickname";
private String botNickname;
public static final String JSON_PROPERTY_BOT_PROFILE_URL = "bot_profile_url";
private String botProfileUrl;
public static final String JSON_PROPERTY_BOT_TYPE = "bot_type";
private String botType;
public static final String JSON_PROPERTY_BOT_USERID = "bot_userid";
private String botUserid;
public static final String JSON_PROPERTY_IS_PRIVACY_MODE = "is_privacy_mode";
private Boolean isPrivacyMode;
public static final String JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE = "channel_invitation_preference";
private Integer channelInvitationPreference;
public static final String JSON_PROPERTY_ENABLE_MARK_AS_READ = "enable_mark_as_read";
private Boolean enableMarkAsRead;
public static final String JSON_PROPERTY_SHOW_MEMBER = "show_member";
private Boolean showMember;
public CreateABotRequest() {
}
public CreateABotRequest botCallbackUrl(String botCallbackUrl) {
this.botCallbackUrl = botCallbackUrl;
return this;
}
/**
* Get botCallbackUrl
* @return botCallbackUrl
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOT_CALLBACK_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getBotCallbackUrl() {
return botCallbackUrl;
}
@JsonProperty(JSON_PROPERTY_BOT_CALLBACK_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setBotCallbackUrl(String botCallbackUrl) {
this.botCallbackUrl = botCallbackUrl;
}
public CreateABotRequest botNickname(String botNickname) {
this.botNickname = botNickname;
return this;
}
/**
* Specifies the bot's nickname. The length is limited to 80 characters.
* @return botNickname
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Specifies the bot's nickname. The length is limited to 80 characters.")
@JsonProperty(JSON_PROPERTY_BOT_NICKNAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getBotNickname() {
return botNickname;
}
@JsonProperty(JSON_PROPERTY_BOT_NICKNAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setBotNickname(String botNickname) {
this.botNickname = botNickname;
}
public CreateABotRequest botProfileUrl(String botProfileUrl) {
this.botProfileUrl = botProfileUrl;
return this;
}
/**
* Get botProfileUrl
* @return botProfileUrl
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOT_PROFILE_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getBotProfileUrl() {
return botProfileUrl;
}
@JsonProperty(JSON_PROPERTY_BOT_PROFILE_URL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setBotProfileUrl(String botProfileUrl) {
this.botProfileUrl = botProfileUrl;
}
public CreateABotRequest botType(String botType) {
this.botType = botType;
return this;
}
/**
* Get botType
* @return botType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOT_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getBotType() {
return botType;
}
@JsonProperty(JSON_PROPERTY_BOT_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setBotType(String botType) {
this.botType = botType;
}
public CreateABotRequest botUserid(String botUserid) {
this.botUserid = botUserid;
return this;
}
/**
* Specifies the unique ID of a bot. The length is limited to 80 characters.
* @return botUserid
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Specifies the unique ID of a bot. The length is limited to 80 characters.")
@JsonProperty(JSON_PROPERTY_BOT_USERID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getBotUserid() {
return botUserid;
}
@JsonProperty(JSON_PROPERTY_BOT_USERID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setBotUserid(String botUserid) {
this.botUserid = botUserid;
}
public CreateABotRequest isPrivacyMode(Boolean isPrivacyMode) {
this.isPrivacyMode = isPrivacyMode;
return this;
}
/**
* Determines whether to forward all or specific messages to the bot in channels where the bot is a member. If set to true, only messages starting with a \"/\" or mentioning the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. This property can help protect the privacy of users' chat logs by configuring the bot to only receive messages addressed to the bot.
* @return isPrivacyMode
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Determines whether to forward all or specific messages to the bot in channels where the bot is a member. If set to true, only messages starting with a \"/\" or mentioning the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. This property can help protect the privacy of users' chat logs by configuring the bot to only receive messages addressed to the bot.")
@JsonProperty(JSON_PROPERTY_IS_PRIVACY_MODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsPrivacyMode() {
return isPrivacyMode;
}
@JsonProperty(JSON_PROPERTY_IS_PRIVACY_MODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsPrivacyMode(Boolean isPrivacyMode) {
this.isPrivacyMode = isPrivacyMode;
}
public CreateABotRequest channelInvitationPreference(Integer channelInvitationPreference) {
this.channelInvitationPreference = channelInvitationPreference;
return this;
}
/**
* Get channelInvitationPreference
* @return channelInvitationPreference
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getChannelInvitationPreference() {
return channelInvitationPreference;
}
@JsonProperty(JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setChannelInvitationPreference(Integer channelInvitationPreference) {
this.channelInvitationPreference = channelInvitationPreference;
}
public CreateABotRequest enableMarkAsRead(Boolean enableMarkAsRead) {
this.enableMarkAsRead = enableMarkAsRead;
return this;
}
/**
* Get enableMarkAsRead
* @return enableMarkAsRead
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENABLE_MARK_AS_READ)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getEnableMarkAsRead() {
return enableMarkAsRead;
}
@JsonProperty(JSON_PROPERTY_ENABLE_MARK_AS_READ)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnableMarkAsRead(Boolean enableMarkAsRead) {
this.enableMarkAsRead = enableMarkAsRead;
}
public CreateABotRequest showMember(Boolean showMember) {
this.showMember = showMember;
return this;
}
/**
* Get showMember
* @return showMember
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SHOW_MEMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShowMember() {
return showMember;
}
@JsonProperty(JSON_PROPERTY_SHOW_MEMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShowMember(Boolean showMember) {
this.showMember = showMember;
}
/**
* Return true if this createABot_request object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateABotRequest createABotRequest = (CreateABotRequest) o;
return Objects.equals(this.botCallbackUrl, createABotRequest.botCallbackUrl) &&
Objects.equals(this.botNickname, createABotRequest.botNickname) &&
Objects.equals(this.botProfileUrl, createABotRequest.botProfileUrl) &&
Objects.equals(this.botType, createABotRequest.botType) &&
Objects.equals(this.botUserid, createABotRequest.botUserid) &&
Objects.equals(this.isPrivacyMode, createABotRequest.isPrivacyMode) &&
Objects.equals(this.channelInvitationPreference, createABotRequest.channelInvitationPreference) &&
Objects.equals(this.enableMarkAsRead, createABotRequest.enableMarkAsRead) &&
Objects.equals(this.showMember, createABotRequest.showMember);
}
@Override
public int hashCode() {
return Objects.hash(botCallbackUrl, botNickname, botProfileUrl, botType, botUserid, isPrivacyMode, channelInvitationPreference, enableMarkAsRead, showMember);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateABotRequest {\n");
sb.append(" botCallbackUrl: ").append(toIndentedString(botCallbackUrl)).append("\n");
sb.append(" botNickname: ").append(toIndentedString(botNickname)).append("\n");
sb.append(" botProfileUrl: ").append(toIndentedString(botProfileUrl)).append("\n");
sb.append(" botType: ").append(toIndentedString(botType)).append("\n");
sb.append(" botUserid: ").append(toIndentedString(botUserid)).append("\n");
sb.append(" isPrivacyMode: ").append(toIndentedString(isPrivacyMode)).append("\n");
sb.append(" channelInvitationPreference: ").append(toIndentedString(channelInvitationPreference)).append("\n");
sb.append(" enableMarkAsRead: ").append(toIndentedString(enableMarkAsRead)).append("\n");
sb.append(" showMember: ").append(toIndentedString(showMember)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}