-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathSyntheticsTestRequest.java
More file actions
1119 lines (972 loc) · 34.2 KB
/
SyntheticsTestRequest.java
File metadata and controls
1119 lines (972 loc) · 34.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
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2019-Present Datadog, Inc.
*/
package com.datadog.api.client.v1.model;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/** Object describing the Synthetic test request. */
@JsonPropertyOrder({
SyntheticsTestRequest.JSON_PROPERTY_ALLOW_INSECURE,
SyntheticsTestRequest.JSON_PROPERTY_BASIC_AUTH,
SyntheticsTestRequest.JSON_PROPERTY_BODY,
SyntheticsTestRequest.JSON_PROPERTY_BODY_TYPE,
SyntheticsTestRequest.JSON_PROPERTY_CALL_TYPE,
SyntheticsTestRequest.JSON_PROPERTY_CERTIFICATE,
SyntheticsTestRequest.JSON_PROPERTY_CERTIFICATE_DOMAINS,
SyntheticsTestRequest.JSON_PROPERTY_CHECK_CERTIFICATE_REVOCATION,
SyntheticsTestRequest.JSON_PROPERTY_COMPRESSED_JSON_DESCRIPTOR,
SyntheticsTestRequest.JSON_PROPERTY_COMPRESSED_PROTO_FILE,
SyntheticsTestRequest.JSON_PROPERTY_DNS_SERVER,
SyntheticsTestRequest.JSON_PROPERTY_DNS_SERVER_PORT,
SyntheticsTestRequest.JSON_PROPERTY_FILES,
SyntheticsTestRequest.JSON_PROPERTY_FOLLOW_REDIRECTS,
SyntheticsTestRequest.JSON_PROPERTY_FORM,
SyntheticsTestRequest.JSON_PROPERTY_HEADERS,
SyntheticsTestRequest.JSON_PROPERTY_HOST,
SyntheticsTestRequest.JSON_PROPERTY_HTTP_VERSION,
SyntheticsTestRequest.JSON_PROPERTY_IS_MESSAGE_BASE64_ENCODED,
SyntheticsTestRequest.JSON_PROPERTY_MESSAGE,
SyntheticsTestRequest.JSON_PROPERTY_METADATA,
SyntheticsTestRequest.JSON_PROPERTY_METHOD,
SyntheticsTestRequest.JSON_PROPERTY_NO_SAVING_RESPONSE_BODY,
SyntheticsTestRequest.JSON_PROPERTY_NUMBER_OF_PACKETS,
SyntheticsTestRequest.JSON_PROPERTY_PERSIST_COOKIES,
SyntheticsTestRequest.JSON_PROPERTY_PORT,
SyntheticsTestRequest.JSON_PROPERTY_PROXY,
SyntheticsTestRequest.JSON_PROPERTY_QUERY,
SyntheticsTestRequest.JSON_PROPERTY_SERVERNAME,
SyntheticsTestRequest.JSON_PROPERTY_SERVICE,
SyntheticsTestRequest.JSON_PROPERTY_SHOULD_TRACK_HOPS,
SyntheticsTestRequest.JSON_PROPERTY_TIMEOUT,
SyntheticsTestRequest.JSON_PROPERTY_URL
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SyntheticsTestRequest {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_ALLOW_INSECURE = "allow_insecure";
private Boolean allowInsecure;
public static final String JSON_PROPERTY_BASIC_AUTH = "basicAuth";
private SyntheticsBasicAuth basicAuth;
public static final String JSON_PROPERTY_BODY = "body";
private String body;
public static final String JSON_PROPERTY_BODY_TYPE = "bodyType";
private SyntheticsTestRequestBodyType bodyType;
public static final String JSON_PROPERTY_CALL_TYPE = "callType";
private SyntheticsTestCallType callType;
public static final String JSON_PROPERTY_CERTIFICATE = "certificate";
private SyntheticsTestRequestCertificate certificate;
public static final String JSON_PROPERTY_CERTIFICATE_DOMAINS = "certificateDomains";
private List<String> certificateDomains = null;
public static final String JSON_PROPERTY_CHECK_CERTIFICATE_REVOCATION =
"checkCertificateRevocation";
private Boolean checkCertificateRevocation;
public static final String JSON_PROPERTY_COMPRESSED_JSON_DESCRIPTOR = "compressedJsonDescriptor";
private String compressedJsonDescriptor;
public static final String JSON_PROPERTY_COMPRESSED_PROTO_FILE = "compressedProtoFile";
private String compressedProtoFile;
public static final String JSON_PROPERTY_DNS_SERVER = "dnsServer";
private String dnsServer;
public static final String JSON_PROPERTY_DNS_SERVER_PORT = "dnsServerPort";
private SyntheticsTestRequestDNSServerPort dnsServerPort;
public static final String JSON_PROPERTY_FILES = "files";
private List<SyntheticsTestRequestBodyFile> files = null;
public static final String JSON_PROPERTY_FOLLOW_REDIRECTS = "follow_redirects";
private Boolean followRedirects;
public static final String JSON_PROPERTY_FORM = "form";
private Map<String, String> form = null;
public static final String JSON_PROPERTY_HEADERS = "headers";
private Map<String, String> headers = null;
public static final String JSON_PROPERTY_HOST = "host";
private String host;
public static final String JSON_PROPERTY_HTTP_VERSION = "httpVersion";
private SyntheticsTestOptionsHTTPVersion httpVersion;
public static final String JSON_PROPERTY_IS_MESSAGE_BASE64_ENCODED = "isMessageBase64Encoded";
private Boolean isMessageBase64Encoded;
public static final String JSON_PROPERTY_MESSAGE = "message";
private String message;
public static final String JSON_PROPERTY_METADATA = "metadata";
private Map<String, String> metadata = null;
public static final String JSON_PROPERTY_METHOD = "method";
private String method;
public static final String JSON_PROPERTY_NO_SAVING_RESPONSE_BODY = "noSavingResponseBody";
private Boolean noSavingResponseBody;
public static final String JSON_PROPERTY_NUMBER_OF_PACKETS = "numberOfPackets";
private Integer numberOfPackets;
public static final String JSON_PROPERTY_PERSIST_COOKIES = "persistCookies";
private Boolean persistCookies;
public static final String JSON_PROPERTY_PORT = "port";
private SyntheticsTestRequestPort port;
public static final String JSON_PROPERTY_PROXY = "proxy";
private SyntheticsTestRequestProxy proxy;
public static final String JSON_PROPERTY_QUERY = "query";
private Object query;
public static final String JSON_PROPERTY_SERVERNAME = "servername";
private String servername;
public static final String JSON_PROPERTY_SERVICE = "service";
private String service;
public static final String JSON_PROPERTY_SHOULD_TRACK_HOPS = "shouldTrackHops";
private Boolean shouldTrackHops;
public static final String JSON_PROPERTY_TIMEOUT = "timeout";
private Double timeout;
public static final String JSON_PROPERTY_URL = "url";
private String url;
public SyntheticsTestRequest allowInsecure(Boolean allowInsecure) {
this.allowInsecure = allowInsecure;
return this;
}
/**
* Allows loading insecure content for an HTTP request in a multistep test step.
*
* @return allowInsecure
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ALLOW_INSECURE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAllowInsecure() {
return allowInsecure;
}
public void setAllowInsecure(Boolean allowInsecure) {
this.allowInsecure = allowInsecure;
}
public SyntheticsTestRequest basicAuth(SyntheticsBasicAuth basicAuth) {
this.basicAuth = basicAuth;
this.unparsed |= basicAuth.unparsed;
return this;
}
/**
* Object to handle basic authentication when performing the test.
*
* @return basicAuth
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BASIC_AUTH)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SyntheticsBasicAuth getBasicAuth() {
return basicAuth;
}
public void setBasicAuth(SyntheticsBasicAuth basicAuth) {
this.basicAuth = basicAuth;
}
public SyntheticsTestRequest body(String body) {
this.body = body;
return this;
}
/**
* Body to include in the test.
*
* @return body
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BODY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public SyntheticsTestRequest bodyType(SyntheticsTestRequestBodyType bodyType) {
this.bodyType = bodyType;
this.unparsed |= !bodyType.isValid();
return this;
}
/**
* Type of the request body.
*
* @return bodyType
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BODY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SyntheticsTestRequestBodyType getBodyType() {
return bodyType;
}
public void setBodyType(SyntheticsTestRequestBodyType bodyType) {
if (!bodyType.isValid()) {
this.unparsed = true;
}
this.bodyType = bodyType;
}
public SyntheticsTestRequest callType(SyntheticsTestCallType callType) {
this.callType = callType;
this.unparsed |= !callType.isValid();
return this;
}
/**
* The type of gRPC call to perform.
*
* @return callType
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CALL_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SyntheticsTestCallType getCallType() {
return callType;
}
public void setCallType(SyntheticsTestCallType callType) {
if (!callType.isValid()) {
this.unparsed = true;
}
this.callType = callType;
}
public SyntheticsTestRequest certificate(SyntheticsTestRequestCertificate certificate) {
this.certificate = certificate;
this.unparsed |= certificate.unparsed;
return this;
}
/**
* Client certificate to use when performing the test request.
*
* @return certificate
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CERTIFICATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SyntheticsTestRequestCertificate getCertificate() {
return certificate;
}
public void setCertificate(SyntheticsTestRequestCertificate certificate) {
this.certificate = certificate;
}
public SyntheticsTestRequest certificateDomains(List<String> certificateDomains) {
this.certificateDomains = certificateDomains;
return this;
}
public SyntheticsTestRequest addCertificateDomainsItem(String certificateDomainsItem) {
if (this.certificateDomains == null) {
this.certificateDomains = new ArrayList<>();
}
this.certificateDomains.add(certificateDomainsItem);
return this;
}
/**
* By default, the client certificate is applied on the domain of the starting URL for browser
* tests. If you want your client certificate to be applied on other domains instead, add them in
* <code>certificateDomains</code>.
*
* @return certificateDomains
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CERTIFICATE_DOMAINS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getCertificateDomains() {
return certificateDomains;
}
public void setCertificateDomains(List<String> certificateDomains) {
this.certificateDomains = certificateDomains;
}
public SyntheticsTestRequest checkCertificateRevocation(Boolean checkCertificateRevocation) {
this.checkCertificateRevocation = checkCertificateRevocation;
return this;
}
/**
* Check for certificate revocation.
*
* @return checkCertificateRevocation
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CHECK_CERTIFICATE_REVOCATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getCheckCertificateRevocation() {
return checkCertificateRevocation;
}
public void setCheckCertificateRevocation(Boolean checkCertificateRevocation) {
this.checkCertificateRevocation = checkCertificateRevocation;
}
public SyntheticsTestRequest compressedJsonDescriptor(String compressedJsonDescriptor) {
this.compressedJsonDescriptor = compressedJsonDescriptor;
return this;
}
/**
* A protobuf JSON descriptor that needs to be gzipped first then base64 encoded.
*
* @return compressedJsonDescriptor
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COMPRESSED_JSON_DESCRIPTOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCompressedJsonDescriptor() {
return compressedJsonDescriptor;
}
public void setCompressedJsonDescriptor(String compressedJsonDescriptor) {
this.compressedJsonDescriptor = compressedJsonDescriptor;
}
public SyntheticsTestRequest compressedProtoFile(String compressedProtoFile) {
this.compressedProtoFile = compressedProtoFile;
return this;
}
/**
* A protobuf file that needs to be gzipped first then base64 encoded.
*
* @return compressedProtoFile
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COMPRESSED_PROTO_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCompressedProtoFile() {
return compressedProtoFile;
}
public void setCompressedProtoFile(String compressedProtoFile) {
this.compressedProtoFile = compressedProtoFile;
}
public SyntheticsTestRequest dnsServer(String dnsServer) {
this.dnsServer = dnsServer;
return this;
}
/**
* DNS server to use for DNS tests.
*
* @return dnsServer
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DNS_SERVER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDnsServer() {
return dnsServer;
}
public void setDnsServer(String dnsServer) {
this.dnsServer = dnsServer;
}
public SyntheticsTestRequest dnsServerPort(SyntheticsTestRequestDNSServerPort dnsServerPort) {
this.dnsServerPort = dnsServerPort;
this.unparsed |= dnsServerPort.unparsed;
return this;
}
/**
* DNS server port to use for DNS tests.
*
* @return dnsServerPort
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DNS_SERVER_PORT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SyntheticsTestRequestDNSServerPort getDnsServerPort() {
return dnsServerPort;
}
public void setDnsServerPort(SyntheticsTestRequestDNSServerPort dnsServerPort) {
this.dnsServerPort = dnsServerPort;
}
public SyntheticsTestRequest files(List<SyntheticsTestRequestBodyFile> files) {
this.files = files;
for (SyntheticsTestRequestBodyFile item : files) {
this.unparsed |= item.unparsed;
}
return this;
}
public SyntheticsTestRequest addFilesItem(SyntheticsTestRequestBodyFile filesItem) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(filesItem);
this.unparsed |= filesItem.unparsed;
return this;
}
/**
* Files to be used as part of the request in the test. Only valid if <code>bodyType</code> is
* <code>multipart/form-data</code>.
*
* @return files
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<SyntheticsTestRequestBodyFile> getFiles() {
return files;
}
public void setFiles(List<SyntheticsTestRequestBodyFile> files) {
this.files = files;
}
public SyntheticsTestRequest followRedirects(Boolean followRedirects) {
this.followRedirects = followRedirects;
return this;
}
/**
* Specifies whether or not the request follows redirects.
*
* @return followRedirects
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FOLLOW_REDIRECTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getFollowRedirects() {
return followRedirects;
}
public void setFollowRedirects(Boolean followRedirects) {
this.followRedirects = followRedirects;
}
public SyntheticsTestRequest form(Map<String, String> form) {
this.form = form;
return this;
}
public SyntheticsTestRequest putFormItem(String key, String formItem) {
if (this.form == null) {
this.form = new HashMap<>();
}
this.form.put(key, formItem);
return this;
}
/**
* Form to be used as part of the request in the test. Only valid if <code>bodyType</code> is
* <code>multipart/form-data</code>.
*
* @return form
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FORM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, String> getForm() {
return form;
}
public void setForm(Map<String, String> form) {
this.form = form;
}
public SyntheticsTestRequest headers(Map<String, String> headers) {
this.headers = headers;
return this;
}
public SyntheticsTestRequest putHeadersItem(String key, String headersItem) {
if (this.headers == null) {
this.headers = new HashMap<>();
}
this.headers.put(key, headersItem);
return this;
}
/**
* Headers to include when performing the test.
*
* @return headers
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_HEADERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, String> getHeaders() {
return headers;
}
public void setHeaders(Map<String, String> headers) {
this.headers = headers;
}
public SyntheticsTestRequest host(String host) {
this.host = host;
return this;
}
/**
* Host name to perform the test with.
*
* @return host
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_HOST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public SyntheticsTestRequest httpVersion(SyntheticsTestOptionsHTTPVersion httpVersion) {
this.httpVersion = httpVersion;
this.unparsed |= !httpVersion.isValid();
return this;
}
/**
* HTTP version to use for a Synthetic test.
*
* @return httpVersion
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_HTTP_VERSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SyntheticsTestOptionsHTTPVersion getHttpVersion() {
return httpVersion;
}
public void setHttpVersion(SyntheticsTestOptionsHTTPVersion httpVersion) {
if (!httpVersion.isValid()) {
this.unparsed = true;
}
this.httpVersion = httpVersion;
}
public SyntheticsTestRequest isMessageBase64Encoded(Boolean isMessageBase64Encoded) {
this.isMessageBase64Encoded = isMessageBase64Encoded;
return this;
}
/**
* Whether the message is base64 encoded.
*
* @return isMessageBase64Encoded
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IS_MESSAGE_BASE64_ENCODED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsMessageBase64Encoded() {
return isMessageBase64Encoded;
}
public void setIsMessageBase64Encoded(Boolean isMessageBase64Encoded) {
this.isMessageBase64Encoded = isMessageBase64Encoded;
}
public SyntheticsTestRequest message(String message) {
this.message = message;
return this;
}
/**
* Message to send for UDP or WebSocket tests.
*
* @return message
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public SyntheticsTestRequest metadata(Map<String, String> metadata) {
this.metadata = metadata;
return this;
}
public SyntheticsTestRequest putMetadataItem(String key, String metadataItem) {
if (this.metadata == null) {
this.metadata = new HashMap<>();
}
this.metadata.put(key, metadataItem);
return this;
}
/**
* Metadata to include when performing the gRPC test.
*
* @return metadata
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, String> getMetadata() {
return metadata;
}
public void setMetadata(Map<String, String> metadata) {
this.metadata = metadata;
}
public SyntheticsTestRequest method(String method) {
this.method = method;
return this;
}
/**
* Either the HTTP method/verb to use or a gRPC method available on the service set in the <code>
* service</code> field. Required if <code>subtype</code> is <code>HTTP</code> or if <code>subtype
* </code> is <code>grpc</code> and <code>callType</code> is <code>unary</code>.
*
* @return method
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_METHOD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public SyntheticsTestRequest noSavingResponseBody(Boolean noSavingResponseBody) {
this.noSavingResponseBody = noSavingResponseBody;
return this;
}
/**
* Determines whether or not to save the response body.
*
* @return noSavingResponseBody
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_NO_SAVING_RESPONSE_BODY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getNoSavingResponseBody() {
return noSavingResponseBody;
}
public void setNoSavingResponseBody(Boolean noSavingResponseBody) {
this.noSavingResponseBody = noSavingResponseBody;
}
public SyntheticsTestRequest numberOfPackets(Integer numberOfPackets) {
this.numberOfPackets = numberOfPackets;
return this;
}
/**
* Number of pings to use per test. minimum: 0 maximum: 10
*
* @return numberOfPackets
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_NUMBER_OF_PACKETS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getNumberOfPackets() {
return numberOfPackets;
}
public void setNumberOfPackets(Integer numberOfPackets) {
this.numberOfPackets = numberOfPackets;
}
public SyntheticsTestRequest persistCookies(Boolean persistCookies) {
this.persistCookies = persistCookies;
return this;
}
/**
* Persist cookies across redirects.
*
* @return persistCookies
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PERSIST_COOKIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getPersistCookies() {
return persistCookies;
}
public void setPersistCookies(Boolean persistCookies) {
this.persistCookies = persistCookies;
}
public SyntheticsTestRequest port(SyntheticsTestRequestPort port) {
this.port = port;
this.unparsed |= port.unparsed;
return this;
}
/**
* Port to use when performing the test.
*
* @return port
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PORT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SyntheticsTestRequestPort getPort() {
return port;
}
public void setPort(SyntheticsTestRequestPort port) {
this.port = port;
}
public SyntheticsTestRequest proxy(SyntheticsTestRequestProxy proxy) {
this.proxy = proxy;
this.unparsed |= proxy.unparsed;
return this;
}
/**
* The proxy to perform the test.
*
* @return proxy
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PROXY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SyntheticsTestRequestProxy getProxy() {
return proxy;
}
public void setProxy(SyntheticsTestRequestProxy proxy) {
this.proxy = proxy;
}
public SyntheticsTestRequest query(Object query) {
this.query = query;
return this;
}
/**
* Query to use for the test.
*
* @return query
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_QUERY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getQuery() {
return query;
}
public void setQuery(Object query) {
this.query = query;
}
public SyntheticsTestRequest servername(String servername) {
this.servername = servername;
return this;
}
/**
* For SSL tests, it specifies on which server you want to initiate the TLS handshake, allowing
* the server to present one of multiple possible certificates on the same IP address and TCP port
* number.
*
* @return servername
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SERVERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getServername() {
return servername;
}
public void setServername(String servername) {
this.servername = servername;
}
public SyntheticsTestRequest service(String service) {
this.service = service;
return this;
}
/**
* The gRPC service on which you want to perform the gRPC call.
*
* @return service
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SERVICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getService() {
return service;
}
public void setService(String service) {
this.service = service;
}
public SyntheticsTestRequest shouldTrackHops(Boolean shouldTrackHops) {
this.shouldTrackHops = shouldTrackHops;
return this;
}
/**
* Turns on a traceroute probe to discover all gateways along the path to the host destination.
*
* @return shouldTrackHops
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SHOULD_TRACK_HOPS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShouldTrackHops() {
return shouldTrackHops;
}
public void setShouldTrackHops(Boolean shouldTrackHops) {
this.shouldTrackHops = shouldTrackHops;
}
public SyntheticsTestRequest timeout(Double timeout) {
this.timeout = timeout;
return this;
}
/**
* Timeout in seconds for the test.
*
* @return timeout
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TIMEOUT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Double getTimeout() {
return timeout;
}
public void setTimeout(Double timeout) {
this.timeout = timeout;
}
public SyntheticsTestRequest url(String url) {
this.url = url;
return this;
}
/**
* URL to perform the test with.
*
* @return url
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
*/
private Map<String, Object> additionalProperties;
/**
* Set the additional (undeclared) property with the specified name and value. If the property
* does not already exist, create it otherwise replace it.
*
* @param key The arbitrary key to set
* @param value The associated value
* @return SyntheticsTestRequest
*/
@JsonAnySetter
public SyntheticsTestRequest putAdditionalProperty(String key, Object value) {
if (this.additionalProperties == null) {
this.additionalProperties = new HashMap<String, Object>();
}
this.additionalProperties.put(key, value);
return this;
}
/**
* Return the additional (undeclared) property.
*
* @return The additional properties
*/
@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return additionalProperties;
}
/**
* Return the additional (undeclared) property with the specified name.
*
* @param key The arbitrary key to get
* @return The specific additional property for the given key
*/
public Object getAdditionalProperty(String key) {
if (this.additionalProperties == null) {
return null;
}
return this.additionalProperties.get(key);
}
/** Return true if this SyntheticsTestRequest object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SyntheticsTestRequest syntheticsTestRequest = (SyntheticsTestRequest) o;
return Objects.equals(this.allowInsecure, syntheticsTestRequest.allowInsecure)
&& Objects.equals(this.basicAuth, syntheticsTestRequest.basicAuth)
&& Objects.equals(this.body, syntheticsTestRequest.body)
&& Objects.equals(this.bodyType, syntheticsTestRequest.bodyType)
&& Objects.equals(this.callType, syntheticsTestRequest.callType)
&& Objects.equals(this.certificate, syntheticsTestRequest.certificate)
&& Objects.equals(this.certificateDomains, syntheticsTestRequest.certificateDomains)
&& Objects.equals(
this.checkCertificateRevocation, syntheticsTestRequest.checkCertificateRevocation)
&& Objects.equals(
this.compressedJsonDescriptor, syntheticsTestRequest.compressedJsonDescriptor)
&& Objects.equals(this.compressedProtoFile, syntheticsTestRequest.compressedProtoFile)
&& Objects.equals(this.dnsServer, syntheticsTestRequest.dnsServer)
&& Objects.equals(this.dnsServerPort, syntheticsTestRequest.dnsServerPort)
&& Objects.equals(this.files, syntheticsTestRequest.files)
&& Objects.equals(this.followRedirects, syntheticsTestRequest.followRedirects)
&& Objects.equals(this.form, syntheticsTestRequest.form)
&& Objects.equals(this.headers, syntheticsTestRequest.headers)
&& Objects.equals(this.host, syntheticsTestRequest.host)
&& Objects.equals(this.httpVersion, syntheticsTestRequest.httpVersion)
&& Objects.equals(this.isMessageBase64Encoded, syntheticsTestRequest.isMessageBase64Encoded)
&& Objects.equals(this.message, syntheticsTestRequest.message)