-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModelsProjectConfig.java
More file actions
659 lines (540 loc) · 25.8 KB
/
Copy pathModelsProjectConfig.java
File metadata and controls
659 lines (540 loc) · 25.8 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
654
655
656
657
658
/*
* 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.ConfigRequestIDHeaderProvider;
import com.getconvoy.models.DatastoreCircuitBreakerConfiguration;
import com.getconvoy.models.ModelsMetaEventConfiguration;
import com.getconvoy.models.ModelsRateLimitConfiguration;
import com.getconvoy.models.ModelsSSLConfiguration;
import com.getconvoy.models.ModelsSignatureConfiguration;
import com.getconvoy.models.ModelsStrategyConfiguration;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.getconvoy.client.ApiClient;
/**
* ModelsProjectConfig
*/
@JsonPropertyOrder({
ModelsProjectConfig.JSON_PROPERTY_ADD_EVENT_ID_TRACE_HEADERS,
ModelsProjectConfig.JSON_PROPERTY_ALLOW_UNMATCHED_DYNAMIC_URLS,
ModelsProjectConfig.JSON_PROPERTY_CIRCUIT_BREAKER,
ModelsProjectConfig.JSON_PROPERTY_DISABLE_ENDPOINT,
ModelsProjectConfig.JSON_PROPERTY_MAX_PAYLOAD_READ_SIZE,
ModelsProjectConfig.JSON_PROPERTY_META_EVENT,
ModelsProjectConfig.JSON_PROPERTY_MULTIPLE_ENDPOINT_SUBSCRIPTIONS,
ModelsProjectConfig.JSON_PROPERTY_RATELIMIT,
ModelsProjectConfig.JSON_PROPERTY_REPLAY_ATTACKS_PREVENTION_ENABLED,
ModelsProjectConfig.JSON_PROPERTY_REQUEST_ID_HEADER,
ModelsProjectConfig.JSON_PROPERTY_SEARCH_POLICY,
ModelsProjectConfig.JSON_PROPERTY_SIGNATURE,
ModelsProjectConfig.JSON_PROPERTY_SSL,
ModelsProjectConfig.JSON_PROPERTY_STRATEGY,
ModelsProjectConfig.JSON_PROPERTY_VERIFY_DYNAMIC_EVENTS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0")
public class ModelsProjectConfig {
public static final String JSON_PROPERTY_ADD_EVENT_ID_TRACE_HEADERS = "add_event_id_trace_headers";
@jakarta.annotation.Nullable
private Boolean addEventIdTraceHeaders;
public static final String JSON_PROPERTY_ALLOW_UNMATCHED_DYNAMIC_URLS = "allow_unmatched_dynamic_urls";
@jakarta.annotation.Nullable
private Boolean allowUnmatchedDynamicUrls;
public static final String JSON_PROPERTY_CIRCUIT_BREAKER = "circuit_breaker";
@jakarta.annotation.Nullable
private DatastoreCircuitBreakerConfiguration circuitBreaker;
public static final String JSON_PROPERTY_DISABLE_ENDPOINT = "disable_endpoint";
@jakarta.annotation.Nullable
private Boolean disableEndpoint;
public static final String JSON_PROPERTY_MAX_PAYLOAD_READ_SIZE = "max_payload_read_size";
@jakarta.annotation.Nullable
private Integer maxPayloadReadSize;
public static final String JSON_PROPERTY_META_EVENT = "meta_event";
@jakarta.annotation.Nullable
private ModelsMetaEventConfiguration metaEvent;
public static final String JSON_PROPERTY_MULTIPLE_ENDPOINT_SUBSCRIPTIONS = "multiple_endpoint_subscriptions";
@jakarta.annotation.Nullable
private Boolean multipleEndpointSubscriptions;
public static final String JSON_PROPERTY_RATELIMIT = "ratelimit";
@jakarta.annotation.Nullable
private ModelsRateLimitConfiguration ratelimit;
public static final String JSON_PROPERTY_REPLAY_ATTACKS_PREVENTION_ENABLED = "replay_attacks_prevention_enabled";
@jakarta.annotation.Nullable
private Boolean replayAttacksPreventionEnabled;
public static final String JSON_PROPERTY_REQUEST_ID_HEADER = "request_id_header";
@jakarta.annotation.Nullable
private ConfigRequestIDHeaderProvider requestIdHeader;
public static final String JSON_PROPERTY_SEARCH_POLICY = "search_policy";
@jakarta.annotation.Nullable
private String searchPolicy;
public static final String JSON_PROPERTY_SIGNATURE = "signature";
@jakarta.annotation.Nullable
private ModelsSignatureConfiguration signature;
public static final String JSON_PROPERTY_SSL = "ssl";
@jakarta.annotation.Nullable
private ModelsSSLConfiguration ssl;
public static final String JSON_PROPERTY_STRATEGY = "strategy";
@jakarta.annotation.Nullable
private ModelsStrategyConfiguration strategy;
public static final String JSON_PROPERTY_VERIFY_DYNAMIC_EVENTS = "verify_dynamic_events";
@jakarta.annotation.Nullable
private Boolean verifyDynamicEvents;
public ModelsProjectConfig() {
}
public ModelsProjectConfig addEventIdTraceHeaders(@jakarta.annotation.Nullable Boolean addEventIdTraceHeaders) {
this.addEventIdTraceHeaders = addEventIdTraceHeaders;
return this;
}
/**
* Controls of the Event ID and Event Delivery ID Headers are added to the request when events are dispatched to endpoints
* @return addEventIdTraceHeaders
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_ADD_EVENT_ID_TRACE_HEADERS, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAddEventIdTraceHeaders() {
return addEventIdTraceHeaders;
}
@JsonProperty(value = JSON_PROPERTY_ADD_EVENT_ID_TRACE_HEADERS, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAddEventIdTraceHeaders(@jakarta.annotation.Nullable Boolean addEventIdTraceHeaders) {
this.addEventIdTraceHeaders = addEventIdTraceHeaders;
}
public ModelsProjectConfig allowUnmatchedDynamicUrls(@jakarta.annotation.Nullable Boolean allowUnmatchedDynamicUrls) {
this.allowUnmatchedDynamicUrls = allowUnmatchedDynamicUrls;
return this;
}
/**
* AllowUnmatchedDynamicURLs lets a dynamic event URL that matches none of the project's endpoint URL templates auto-create an endpoint instead of failing. When false (the default), a project with templates configured rejects unmatched URLs.
* @return allowUnmatchedDynamicUrls
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_ALLOW_UNMATCHED_DYNAMIC_URLS, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAllowUnmatchedDynamicUrls() {
return allowUnmatchedDynamicUrls;
}
@JsonProperty(value = JSON_PROPERTY_ALLOW_UNMATCHED_DYNAMIC_URLS, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAllowUnmatchedDynamicUrls(@jakarta.annotation.Nullable Boolean allowUnmatchedDynamicUrls) {
this.allowUnmatchedDynamicUrls = allowUnmatchedDynamicUrls;
}
public ModelsProjectConfig circuitBreaker(@jakarta.annotation.Nullable DatastoreCircuitBreakerConfiguration circuitBreaker) {
this.circuitBreaker = circuitBreaker;
return this;
}
/**
* CircuitBreaker is used to configure the project's circuit breaker settings
* @return circuitBreaker
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_CIRCUIT_BREAKER, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DatastoreCircuitBreakerConfiguration getCircuitBreaker() {
return circuitBreaker;
}
@JsonProperty(value = JSON_PROPERTY_CIRCUIT_BREAKER, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCircuitBreaker(@jakarta.annotation.Nullable DatastoreCircuitBreakerConfiguration circuitBreaker) {
this.circuitBreaker = circuitBreaker;
}
public ModelsProjectConfig disableEndpoint(@jakarta.annotation.Nullable Boolean disableEndpoint) {
this.disableEndpoint = disableEndpoint;
return this;
}
/**
* Controls if the project will disable and endpoint after the retry threshold for an event is reached
* @return disableEndpoint
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_DISABLE_ENDPOINT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getDisableEndpoint() {
return disableEndpoint;
}
@JsonProperty(value = JSON_PROPERTY_DISABLE_ENDPOINT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDisableEndpoint(@jakarta.annotation.Nullable Boolean disableEndpoint) {
this.disableEndpoint = disableEndpoint;
}
public ModelsProjectConfig maxPayloadReadSize(@jakarta.annotation.Nullable Integer maxPayloadReadSize) {
this.maxPayloadReadSize = maxPayloadReadSize;
return this;
}
/**
* Specifies how many bytes and incoming project should read from the ingest request, and how many bytes an outgoing project should from the response of your endpoints Defaults to 50KB.
* @return maxPayloadReadSize
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_MAX_PAYLOAD_READ_SIZE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getMaxPayloadReadSize() {
return maxPayloadReadSize;
}
@JsonProperty(value = JSON_PROPERTY_MAX_PAYLOAD_READ_SIZE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMaxPayloadReadSize(@jakarta.annotation.Nullable Integer maxPayloadReadSize) {
this.maxPayloadReadSize = maxPayloadReadSize;
}
public ModelsProjectConfig metaEvent(@jakarta.annotation.Nullable ModelsMetaEventConfiguration metaEvent) {
this.metaEvent = metaEvent;
return this;
}
/**
* MetaEvent is used to configure the project's meta events
* @return metaEvent
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_META_EVENT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ModelsMetaEventConfiguration getMetaEvent() {
return metaEvent;
}
@JsonProperty(value = JSON_PROPERTY_META_EVENT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMetaEvent(@jakarta.annotation.Nullable ModelsMetaEventConfiguration metaEvent) {
this.metaEvent = metaEvent;
}
public ModelsProjectConfig multipleEndpointSubscriptions(@jakarta.annotation.Nullable Boolean multipleEndpointSubscriptions) {
this.multipleEndpointSubscriptions = multipleEndpointSubscriptions;
return this;
}
/**
* MultipleEndpointSubscriptions is used to configure if multiple subscriptions can be created for the endpoint in a project
* @return multipleEndpointSubscriptions
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_MULTIPLE_ENDPOINT_SUBSCRIPTIONS, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMultipleEndpointSubscriptions() {
return multipleEndpointSubscriptions;
}
@JsonProperty(value = JSON_PROPERTY_MULTIPLE_ENDPOINT_SUBSCRIPTIONS, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMultipleEndpointSubscriptions(@jakarta.annotation.Nullable Boolean multipleEndpointSubscriptions) {
this.multipleEndpointSubscriptions = multipleEndpointSubscriptions;
}
public ModelsProjectConfig ratelimit(@jakarta.annotation.Nullable ModelsRateLimitConfiguration ratelimit) {
this.ratelimit = ratelimit;
return this;
}
/**
* RateLimit is used to configure the projects rate limiting config values
* @return ratelimit
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_RATELIMIT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ModelsRateLimitConfiguration getRatelimit() {
return ratelimit;
}
@JsonProperty(value = JSON_PROPERTY_RATELIMIT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRatelimit(@jakarta.annotation.Nullable ModelsRateLimitConfiguration ratelimit) {
this.ratelimit = ratelimit;
}
public ModelsProjectConfig replayAttacksPreventionEnabled(@jakarta.annotation.Nullable Boolean replayAttacksPreventionEnabled) {
this.replayAttacksPreventionEnabled = replayAttacksPreventionEnabled;
return this;
}
/**
* Controls if your project will add a timestamp to it's webhook signature header to prevent a replay attack, See this blog post[https://getconvoy.io/blog/generating-stripe-like-webhook-signatures] for more]
* @return replayAttacksPreventionEnabled
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_REPLAY_ATTACKS_PREVENTION_ENABLED, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getReplayAttacksPreventionEnabled() {
return replayAttacksPreventionEnabled;
}
@JsonProperty(value = JSON_PROPERTY_REPLAY_ATTACKS_PREVENTION_ENABLED, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReplayAttacksPreventionEnabled(@jakarta.annotation.Nullable Boolean replayAttacksPreventionEnabled) {
this.replayAttacksPreventionEnabled = replayAttacksPreventionEnabled;
}
public ModelsProjectConfig requestIdHeader(@jakarta.annotation.Nullable ConfigRequestIDHeaderProvider requestIdHeader) {
this.requestIdHeader = requestIdHeader;
return this;
}
/**
* RequestIDHeader is the outbound header name for the stable request id sent on webhook deliveries.
* @return requestIdHeader
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_REQUEST_ID_HEADER, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ConfigRequestIDHeaderProvider getRequestIdHeader() {
return requestIdHeader;
}
@JsonProperty(value = JSON_PROPERTY_REQUEST_ID_HEADER, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRequestIdHeader(@jakarta.annotation.Nullable ConfigRequestIDHeaderProvider requestIdHeader) {
this.requestIdHeader = requestIdHeader;
}
public ModelsProjectConfig searchPolicy(@jakarta.annotation.Nullable String searchPolicy) {
this.searchPolicy = searchPolicy;
return this;
}
/**
* Specify the interval in hours for which the event tokenizer runs
* @return searchPolicy
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_SEARCH_POLICY, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSearchPolicy() {
return searchPolicy;
}
@JsonProperty(value = JSON_PROPERTY_SEARCH_POLICY, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSearchPolicy(@jakarta.annotation.Nullable String searchPolicy) {
this.searchPolicy = searchPolicy;
}
public ModelsProjectConfig signature(@jakarta.annotation.Nullable ModelsSignatureConfiguration signature) {
this.signature = signature;
return this;
}
/**
* Signature is used to configure the project's signature header versions
* @return signature
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_SIGNATURE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ModelsSignatureConfiguration getSignature() {
return signature;
}
@JsonProperty(value = JSON_PROPERTY_SIGNATURE, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSignature(@jakarta.annotation.Nullable ModelsSignatureConfiguration signature) {
this.signature = signature;
}
public ModelsProjectConfig ssl(@jakarta.annotation.Nullable ModelsSSLConfiguration ssl) {
this.ssl = ssl;
return this;
}
/**
* SSL is used to configure the project's endpoint ssl enforcement rules
* @return ssl
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_SSL, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ModelsSSLConfiguration getSsl() {
return ssl;
}
@JsonProperty(value = JSON_PROPERTY_SSL, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSsl(@jakarta.annotation.Nullable ModelsSSLConfiguration ssl) {
this.ssl = ssl;
}
public ModelsProjectConfig strategy(@jakarta.annotation.Nullable ModelsStrategyConfiguration strategy) {
this.strategy = strategy;
return this;
}
/**
* Strategy is used to configure the project's retry strategies for failing events.
* @return strategy
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_STRATEGY, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ModelsStrategyConfiguration getStrategy() {
return strategy;
}
@JsonProperty(value = JSON_PROPERTY_STRATEGY, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStrategy(@jakarta.annotation.Nullable ModelsStrategyConfiguration strategy) {
this.strategy = strategy;
}
public ModelsProjectConfig verifyDynamicEvents(@jakarta.annotation.Nullable Boolean verifyDynamicEvents) {
this.verifyDynamicEvents = verifyDynamicEvents;
return this;
}
/**
* VerifyDynamicEvents waits for dynamic endpoint/subscription resolve before acknowledging POST /events/dynamic. When false, the handler returns 201 after enqueue.
* @return verifyDynamicEvents
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_VERIFY_DYNAMIC_EVENTS, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getVerifyDynamicEvents() {
return verifyDynamicEvents;
}
@JsonProperty(value = JSON_PROPERTY_VERIFY_DYNAMIC_EVENTS, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setVerifyDynamicEvents(@jakarta.annotation.Nullable Boolean verifyDynamicEvents) {
this.verifyDynamicEvents = verifyDynamicEvents;
}
/**
* Return true if this models.ProjectConfig object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ModelsProjectConfig modelsProjectConfig = (ModelsProjectConfig) o;
return Objects.equals(this.addEventIdTraceHeaders, modelsProjectConfig.addEventIdTraceHeaders) &&
Objects.equals(this.allowUnmatchedDynamicUrls, modelsProjectConfig.allowUnmatchedDynamicUrls) &&
Objects.equals(this.circuitBreaker, modelsProjectConfig.circuitBreaker) &&
Objects.equals(this.disableEndpoint, modelsProjectConfig.disableEndpoint) &&
Objects.equals(this.maxPayloadReadSize, modelsProjectConfig.maxPayloadReadSize) &&
Objects.equals(this.metaEvent, modelsProjectConfig.metaEvent) &&
Objects.equals(this.multipleEndpointSubscriptions, modelsProjectConfig.multipleEndpointSubscriptions) &&
Objects.equals(this.ratelimit, modelsProjectConfig.ratelimit) &&
Objects.equals(this.replayAttacksPreventionEnabled, modelsProjectConfig.replayAttacksPreventionEnabled) &&
Objects.equals(this.requestIdHeader, modelsProjectConfig.requestIdHeader) &&
Objects.equals(this.searchPolicy, modelsProjectConfig.searchPolicy) &&
Objects.equals(this.signature, modelsProjectConfig.signature) &&
Objects.equals(this.ssl, modelsProjectConfig.ssl) &&
Objects.equals(this.strategy, modelsProjectConfig.strategy) &&
Objects.equals(this.verifyDynamicEvents, modelsProjectConfig.verifyDynamicEvents);
}
@Override
public int hashCode() {
return Objects.hash(addEventIdTraceHeaders, allowUnmatchedDynamicUrls, circuitBreaker, disableEndpoint, maxPayloadReadSize, metaEvent, multipleEndpointSubscriptions, ratelimit, replayAttacksPreventionEnabled, requestIdHeader, searchPolicy, signature, ssl, strategy, verifyDynamicEvents);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ModelsProjectConfig {\n");
sb.append(" addEventIdTraceHeaders: ").append(toIndentedString(addEventIdTraceHeaders)).append("\n");
sb.append(" allowUnmatchedDynamicUrls: ").append(toIndentedString(allowUnmatchedDynamicUrls)).append("\n");
sb.append(" circuitBreaker: ").append(toIndentedString(circuitBreaker)).append("\n");
sb.append(" disableEndpoint: ").append(toIndentedString(disableEndpoint)).append("\n");
sb.append(" maxPayloadReadSize: ").append(toIndentedString(maxPayloadReadSize)).append("\n");
sb.append(" metaEvent: ").append(toIndentedString(metaEvent)).append("\n");
sb.append(" multipleEndpointSubscriptions: ").append(toIndentedString(multipleEndpointSubscriptions)).append("\n");
sb.append(" ratelimit: ").append(toIndentedString(ratelimit)).append("\n");
sb.append(" replayAttacksPreventionEnabled: ").append(toIndentedString(replayAttacksPreventionEnabled)).append("\n");
sb.append(" requestIdHeader: ").append(toIndentedString(requestIdHeader)).append("\n");
sb.append(" searchPolicy: ").append(toIndentedString(searchPolicy)).append("\n");
sb.append(" signature: ").append(toIndentedString(signature)).append("\n");
sb.append(" ssl: ").append(toIndentedString(ssl)).append("\n");
sb.append(" strategy: ").append(toIndentedString(strategy)).append("\n");
sb.append(" verifyDynamicEvents: ").append(toIndentedString(verifyDynamicEvents)).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 `add_event_id_trace_headers` to the URL query string
if (getAddEventIdTraceHeaders() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sadd_event_id_trace_headers%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAddEventIdTraceHeaders()))));
}
// add `allow_unmatched_dynamic_urls` to the URL query string
if (getAllowUnmatchedDynamicUrls() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sallow_unmatched_dynamic_urls%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAllowUnmatchedDynamicUrls()))));
}
// add `circuit_breaker` to the URL query string
if (getCircuitBreaker() != null) {
joiner.add(getCircuitBreaker().toUrlQueryString(prefix + "circuit_breaker" + suffix));
}
// add `disable_endpoint` to the URL query string
if (getDisableEndpoint() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sdisable_endpoint%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDisableEndpoint()))));
}
// add `max_payload_read_size` to the URL query string
if (getMaxPayloadReadSize() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%smax_payload_read_size%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMaxPayloadReadSize()))));
}
// add `meta_event` to the URL query string
if (getMetaEvent() != null) {
joiner.add(getMetaEvent().toUrlQueryString(prefix + "meta_event" + suffix));
}
// add `multiple_endpoint_subscriptions` to the URL query string
if (getMultipleEndpointSubscriptions() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%smultiple_endpoint_subscriptions%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMultipleEndpointSubscriptions()))));
}
// add `ratelimit` to the URL query string
if (getRatelimit() != null) {
joiner.add(getRatelimit().toUrlQueryString(prefix + "ratelimit" + suffix));
}
// add `replay_attacks_prevention_enabled` to the URL query string
if (getReplayAttacksPreventionEnabled() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sreplay_attacks_prevention_enabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getReplayAttacksPreventionEnabled()))));
}
// add `request_id_header` to the URL query string
if (getRequestIdHeader() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%srequest_id_header%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRequestIdHeader()))));
}
// add `search_policy` to the URL query string
if (getSearchPolicy() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%ssearch_policy%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getSearchPolicy()))));
}
// add `signature` to the URL query string
if (getSignature() != null) {
joiner.add(getSignature().toUrlQueryString(prefix + "signature" + suffix));
}
// add `ssl` to the URL query string
if (getSsl() != null) {
joiner.add(getSsl().toUrlQueryString(prefix + "ssl" + suffix));
}
// add `strategy` to the URL query string
if (getStrategy() != null) {
joiner.add(getStrategy().toUrlQueryString(prefix + "strategy" + suffix));
}
// add `verify_dynamic_events` to the URL query string
if (getVerifyDynamicEvents() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sverify_dynamic_events%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getVerifyDynamicEvents()))));
}
return joiner.toString();
}
}