-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModelsUpdateEndpoint.java
More file actions
654 lines (535 loc) · 23.2 KB
/
Copy pathModelsUpdateEndpoint.java
File metadata and controls
654 lines (535 loc) · 23.2 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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
/*
* Convoy API Reference
* Convoy is a fast and secure webhooks proxy. This document contains datastore's API specification.
*
* The version of the OpenAPI document: 26.3.5
* Contact: support@getconvoy.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.getconvoy.models;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
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 com.getconvoy.models.ModelsEndpointAuthentication;
import com.getconvoy.models.ModelsMtlsClientCert;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.getconvoy.client.ApiClient;
/**
* ModelsUpdateEndpoint
*/
@JsonPropertyOrder({
ModelsUpdateEndpoint.JSON_PROPERTY_ADVANCED_SIGNATURES,
ModelsUpdateEndpoint.JSON_PROPERTY_AUTHENTICATION,
ModelsUpdateEndpoint.JSON_PROPERTY_CONTENT_TYPE,
ModelsUpdateEndpoint.JSON_PROPERTY_DESCRIPTION,
ModelsUpdateEndpoint.JSON_PROPERTY_HTTP_TIMEOUT,
ModelsUpdateEndpoint.JSON_PROPERTY_IS_DISABLED,
ModelsUpdateEndpoint.JSON_PROPERTY_MTLS_CLIENT_CERT,
ModelsUpdateEndpoint.JSON_PROPERTY_NAME,
ModelsUpdateEndpoint.JSON_PROPERTY_OWNER_ID,
ModelsUpdateEndpoint.JSON_PROPERTY_RATE_LIMIT,
ModelsUpdateEndpoint.JSON_PROPERTY_RATE_LIMIT_DURATION,
ModelsUpdateEndpoint.JSON_PROPERTY_SECRET,
ModelsUpdateEndpoint.JSON_PROPERTY_SLACK_WEBHOOK_URL,
ModelsUpdateEndpoint.JSON_PROPERTY_SUPPORT_EMAIL,
ModelsUpdateEndpoint.JSON_PROPERTY_URL
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0")
public class ModelsUpdateEndpoint {
public static final String JSON_PROPERTY_ADVANCED_SIGNATURES = "advanced_signatures";
@jakarta.annotation.Nullable
private Boolean advancedSignatures;
public static final String JSON_PROPERTY_AUTHENTICATION = "authentication";
@jakarta.annotation.Nullable
private ModelsEndpointAuthentication authentication;
public static final String JSON_PROPERTY_CONTENT_TYPE = "content_type";
@jakarta.annotation.Nullable
private String contentType;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
@jakarta.annotation.Nullable
private String description;
public static final String JSON_PROPERTY_HTTP_TIMEOUT = "http_timeout";
@jakarta.annotation.Nullable
private Integer httpTimeout;
public static final String JSON_PROPERTY_IS_DISABLED = "is_disabled";
@jakarta.annotation.Nullable
private Boolean isDisabled;
public static final String JSON_PROPERTY_MTLS_CLIENT_CERT = "mtls_client_cert";
@jakarta.annotation.Nullable
private ModelsMtlsClientCert mtlsClientCert;
public static final String JSON_PROPERTY_NAME = "name";
@jakarta.annotation.Nullable
private String name;
public static final String JSON_PROPERTY_OWNER_ID = "owner_id";
@jakarta.annotation.Nullable
private String ownerId;
public static final String JSON_PROPERTY_RATE_LIMIT = "rate_limit";
@jakarta.annotation.Nullable
private Integer rateLimit;
public static final String JSON_PROPERTY_RATE_LIMIT_DURATION = "rate_limit_duration";
@jakarta.annotation.Nullable
private Integer rateLimitDuration;
public static final String JSON_PROPERTY_SECRET = "secret";
@jakarta.annotation.Nullable
private String secret;
public static final String JSON_PROPERTY_SLACK_WEBHOOK_URL = "slack_webhook_url";
@jakarta.annotation.Nullable
private String slackWebhookUrl;
public static final String JSON_PROPERTY_SUPPORT_EMAIL = "support_email";
@jakarta.annotation.Nullable
private String supportEmail;
public static final String JSON_PROPERTY_URL = "url";
@jakarta.annotation.Nullable
private String url;
public ModelsUpdateEndpoint() {
}
public ModelsUpdateEndpoint advancedSignatures(@jakarta.annotation.Nullable Boolean advancedSignatures) {
this.advancedSignatures = advancedSignatures;
return this;
}
/**
* Convoy supports two [signature formats](https://getconvoy.io/docs/product-manual/signatures) -- simple or advanced. Only applies to outgoing projects; omit it to keep the current value. Incoming projects always use advanced signatures.
* @return advancedSignatures
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_ADVANCED_SIGNATURES, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAdvancedSignatures() {
return advancedSignatures;
}
@JsonProperty(value = JSON_PROPERTY_ADVANCED_SIGNATURES, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdvancedSignatures(@jakarta.annotation.Nullable Boolean advancedSignatures) {
this.advancedSignatures = advancedSignatures;
}
public ModelsUpdateEndpoint authentication(@jakarta.annotation.Nullable ModelsEndpointAuthentication authentication) {
this.authentication = authentication;
return this;
}
/**
* This is used to define any custom authentication required by the endpoint. This shouldn't be needed often because webhook endpoints usually should be exposed to the internet.
* @return authentication
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_AUTHENTICATION, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ModelsEndpointAuthentication getAuthentication() {
return authentication;
}
@JsonProperty(value = JSON_PROPERTY_AUTHENTICATION, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAuthentication(@jakarta.annotation.Nullable ModelsEndpointAuthentication authentication) {
this.authentication = authentication;
}
public ModelsUpdateEndpoint contentType(@jakarta.annotation.Nullable String contentType) {
this.contentType = contentType;
return this;
}
/**
* Content type for the endpoint. Defaults to application/json if not specified.
* @return contentType
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_CONTENT_TYPE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getContentType() {
return contentType;
}
@JsonProperty(value = JSON_PROPERTY_CONTENT_TYPE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setContentType(@jakarta.annotation.Nullable String contentType) {
this.contentType = contentType;
}
public ModelsUpdateEndpoint description(@jakarta.annotation.Nullable String description) {
this.description = description;
return this;
}
/**
* Human-readable description of the endpoint. Think of this as metadata describing the endpoint
* @return description
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_DESCRIPTION, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
@JsonProperty(value = JSON_PROPERTY_DESCRIPTION, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(@jakarta.annotation.Nullable String description) {
this.description = description;
}
public ModelsUpdateEndpoint httpTimeout(@jakarta.annotation.Nullable Integer httpTimeout) {
this.httpTimeout = httpTimeout;
return this;
}
/**
* Define endpoint http timeout in seconds.
* @return httpTimeout
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_HTTP_TIMEOUT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getHttpTimeout() {
return httpTimeout;
}
@JsonProperty(value = JSON_PROPERTY_HTTP_TIMEOUT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHttpTimeout(@jakarta.annotation.Nullable Integer httpTimeout) {
this.httpTimeout = httpTimeout;
}
public ModelsUpdateEndpoint isDisabled(@jakarta.annotation.Nullable Boolean isDisabled) {
this.isDisabled = isDisabled;
return this;
}
/**
* This is used to manually enable/disable the endpoint.
* @return isDisabled
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_IS_DISABLED, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsDisabled() {
return isDisabled;
}
@JsonProperty(value = JSON_PROPERTY_IS_DISABLED, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsDisabled(@jakarta.annotation.Nullable Boolean isDisabled) {
this.isDisabled = isDisabled;
}
public ModelsUpdateEndpoint mtlsClientCert(@jakarta.annotation.Nullable ModelsMtlsClientCert mtlsClientCert) {
this.mtlsClientCert = mtlsClientCert;
return this;
}
/**
* mTLS client certificate configuration for the endpoint
* @return mtlsClientCert
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_MTLS_CLIENT_CERT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ModelsMtlsClientCert getMtlsClientCert() {
return mtlsClientCert;
}
@JsonProperty(value = JSON_PROPERTY_MTLS_CLIENT_CERT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMtlsClientCert(@jakarta.annotation.Nullable ModelsMtlsClientCert mtlsClientCert) {
this.mtlsClientCert = mtlsClientCert;
}
public ModelsUpdateEndpoint name(@jakarta.annotation.Nullable String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_NAME, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
@JsonProperty(value = JSON_PROPERTY_NAME, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(@jakarta.annotation.Nullable String name) {
this.name = name;
}
public ModelsUpdateEndpoint ownerId(@jakarta.annotation.Nullable String ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* The OwnerID is used to group more than one endpoint together to achieve [fanout](https://getconvoy.io/docs/manual/endpoints#Endpoint%20Owner%20ID)
* @return ownerId
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_OWNER_ID, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getOwnerId() {
return ownerId;
}
@JsonProperty(value = JSON_PROPERTY_OWNER_ID, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOwnerId(@jakarta.annotation.Nullable String ownerId) {
this.ownerId = ownerId;
}
public ModelsUpdateEndpoint rateLimit(@jakarta.annotation.Nullable Integer rateLimit) {
this.rateLimit = rateLimit;
return this;
}
/**
* Rate limit is the total number of requests to be sent to an endpoint in the time duration specified in RateLimitDuration
* @return rateLimit
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_RATE_LIMIT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getRateLimit() {
return rateLimit;
}
@JsonProperty(value = JSON_PROPERTY_RATE_LIMIT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRateLimit(@jakarta.annotation.Nullable Integer rateLimit) {
this.rateLimit = rateLimit;
}
public ModelsUpdateEndpoint rateLimitDuration(@jakarta.annotation.Nullable Integer rateLimitDuration) {
this.rateLimitDuration = rateLimitDuration;
return this;
}
/**
* Rate limit duration specifies the time range for the rate limit.
* @return rateLimitDuration
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_RATE_LIMIT_DURATION, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getRateLimitDuration() {
return rateLimitDuration;
}
@JsonProperty(value = JSON_PROPERTY_RATE_LIMIT_DURATION, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRateLimitDuration(@jakarta.annotation.Nullable Integer rateLimitDuration) {
this.rateLimitDuration = rateLimitDuration;
}
public ModelsUpdateEndpoint secret(@jakarta.annotation.Nullable String secret) {
this.secret = secret;
return this;
}
/**
* Endpoint's webhook secret. If not provided, Convoy autogenerates one for the endpoint.
* @return secret
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_SECRET, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSecret() {
return secret;
}
@JsonProperty(value = JSON_PROPERTY_SECRET, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSecret(@jakarta.annotation.Nullable String secret) {
this.secret = secret;
}
public ModelsUpdateEndpoint slackWebhookUrl(@jakarta.annotation.Nullable String slackWebhookUrl) {
this.slackWebhookUrl = slackWebhookUrl;
return this;
}
/**
* Slack webhook URL is an alternative method to support email where endpoint developers can receive failure notifications on a slack channel.
* @return slackWebhookUrl
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_SLACK_WEBHOOK_URL, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSlackWebhookUrl() {
return slackWebhookUrl;
}
@JsonProperty(value = JSON_PROPERTY_SLACK_WEBHOOK_URL, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSlackWebhookUrl(@jakarta.annotation.Nullable String slackWebhookUrl) {
this.slackWebhookUrl = slackWebhookUrl;
}
public ModelsUpdateEndpoint supportEmail(@jakarta.annotation.Nullable String supportEmail) {
this.supportEmail = supportEmail;
return this;
}
/**
* Endpoint developers support email. This is used for communicating endpoint state changes. You should always turn this on when disabling endpoints are enabled.
* @return supportEmail
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_SUPPORT_EMAIL, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSupportEmail() {
return supportEmail;
}
@JsonProperty(value = JSON_PROPERTY_SUPPORT_EMAIL, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSupportEmail(@jakarta.annotation.Nullable String supportEmail) {
this.supportEmail = supportEmail;
}
public ModelsUpdateEndpoint url(@jakarta.annotation.Nullable String url) {
this.url = url;
return this;
}
/**
* URL is the endpoint's URL prefixed with https. non-https urls are currently not supported.
* @return url
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_URL, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUrl() {
return url;
}
@JsonProperty(value = JSON_PROPERTY_URL, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUrl(@jakarta.annotation.Nullable String url) {
this.url = url;
}
/**
* Return true if this models.UpdateEndpoint object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ModelsUpdateEndpoint modelsUpdateEndpoint = (ModelsUpdateEndpoint) o;
return Objects.equals(this.advancedSignatures, modelsUpdateEndpoint.advancedSignatures) &&
Objects.equals(this.authentication, modelsUpdateEndpoint.authentication) &&
Objects.equals(this.contentType, modelsUpdateEndpoint.contentType) &&
Objects.equals(this.description, modelsUpdateEndpoint.description) &&
Objects.equals(this.httpTimeout, modelsUpdateEndpoint.httpTimeout) &&
Objects.equals(this.isDisabled, modelsUpdateEndpoint.isDisabled) &&
Objects.equals(this.mtlsClientCert, modelsUpdateEndpoint.mtlsClientCert) &&
Objects.equals(this.name, modelsUpdateEndpoint.name) &&
Objects.equals(this.ownerId, modelsUpdateEndpoint.ownerId) &&
Objects.equals(this.rateLimit, modelsUpdateEndpoint.rateLimit) &&
Objects.equals(this.rateLimitDuration, modelsUpdateEndpoint.rateLimitDuration) &&
Objects.equals(this.secret, modelsUpdateEndpoint.secret) &&
Objects.equals(this.slackWebhookUrl, modelsUpdateEndpoint.slackWebhookUrl) &&
Objects.equals(this.supportEmail, modelsUpdateEndpoint.supportEmail) &&
Objects.equals(this.url, modelsUpdateEndpoint.url);
}
@Override
public int hashCode() {
return Objects.hash(advancedSignatures, authentication, contentType, description, httpTimeout, isDisabled, mtlsClientCert, name, ownerId, rateLimit, rateLimitDuration, secret, slackWebhookUrl, supportEmail, url);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ModelsUpdateEndpoint {\n");
sb.append(" advancedSignatures: ").append(toIndentedString(advancedSignatures)).append("\n");
sb.append(" authentication: ").append(toIndentedString(authentication)).append("\n");
sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" httpTimeout: ").append(toIndentedString(httpTimeout)).append("\n");
sb.append(" isDisabled: ").append(toIndentedString(isDisabled)).append("\n");
sb.append(" mtlsClientCert: ").append(toIndentedString(mtlsClientCert)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n");
sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n");
sb.append(" rateLimitDuration: ").append(toIndentedString(rateLimitDuration)).append("\n");
sb.append(" secret: ").append(toIndentedString(secret)).append("\n");
sb.append(" slackWebhookUrl: ").append(toIndentedString(slackWebhookUrl)).append("\n");
sb.append(" supportEmail: ").append(toIndentedString(supportEmail)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).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) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
/**
* Convert the instance into URL query string.
*
* @return URL query string
*/
public String toUrlQueryString() {
return toUrlQueryString(null);
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
String suffix = "";
String containerSuffix = "";
String containerPrefix = "";
if (prefix == null) {
// style=form, explode=true, e.g. /pet?name=cat&type=manx
prefix = "";
} else {
// deepObject style e.g. /pet?id[name]=cat&id[type]=manx
prefix = prefix + "[";
suffix = "]";
containerSuffix = "]";
containerPrefix = "[";
}
StringJoiner joiner = new StringJoiner("&");
// add `advanced_signatures` to the URL query string
if (getAdvancedSignatures() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sadvanced_signatures%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAdvancedSignatures()))));
}
// add `authentication` to the URL query string
if (getAuthentication() != null) {
joiner.add(getAuthentication().toUrlQueryString(prefix + "authentication" + suffix));
}
// add `content_type` to the URL query string
if (getContentType() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%scontent_type%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getContentType()))));
}
// add `description` to the URL query string
if (getDescription() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sdescription%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDescription()))));
}
// add `http_timeout` to the URL query string
if (getHttpTimeout() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%shttp_timeout%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getHttpTimeout()))));
}
// add `is_disabled` to the URL query string
if (getIsDisabled() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sis_disabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsDisabled()))));
}
// add `mtls_client_cert` to the URL query string
if (getMtlsClientCert() != null) {
joiner.add(getMtlsClientCert().toUrlQueryString(prefix + "mtls_client_cert" + suffix));
}
// add `name` to the URL query string
if (getName() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName()))));
}
// add `owner_id` to the URL query string
if (getOwnerId() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sowner_id%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOwnerId()))));
}
// add `rate_limit` to the URL query string
if (getRateLimit() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%srate_limit%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRateLimit()))));
}
// add `rate_limit_duration` to the URL query string
if (getRateLimitDuration() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%srate_limit_duration%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRateLimitDuration()))));
}
// add `secret` to the URL query string
if (getSecret() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%ssecret%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSecret()))));
}
// add `slack_webhook_url` to the URL query string
if (getSlackWebhookUrl() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sslack_webhook_url%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSlackWebhookUrl()))));
}
// add `support_email` to the URL query string
if (getSupportEmail() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%ssupport_email%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSupportEmail()))));
}
// add `url` to the URL query string
if (getUrl() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%surl%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getUrl()))));
}
return joiner.toString();
}
}