/
model_backend_response.go
1943 lines (1686 loc) · 62.9 KB
/
model_backend_response.go
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
// Package fastly is an API client library for interacting with most facets of the Fastly API.
package fastly
/*
Fastly API
Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/)
API version: 1.0.0
Contact: oss@fastly.com
*/
// This code is auto-generated; DO NOT EDIT.
import (
"encoding/json"
"time"
)
// BackendResponse struct for BackendResponse
type BackendResponse struct {
// A hostname, IPv4, or IPv6 address for the backend. This is the preferred way to specify the location of your backend.
Address *string `json:"address,omitempty"`
// Whether or not this backend should be automatically load balanced. If true, all backends with this setting that don't have a `request_condition` will be selected based on their `weight`.
AutoLoadbalance *bool `json:"auto_loadbalance,omitempty"`
// Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`.
BetweenBytesTimeout *int32 `json:"between_bytes_timeout,omitempty"`
// Unused.
ClientCert NullableString `json:"client_cert,omitempty"`
// A freeform descriptive note.
Comment NullableString `json:"comment,omitempty"`
// Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.connect_timeout`.
ConnectTimeout *int32 `json:"connect_timeout,omitempty"`
// Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic `503` response will be presented instead. May be set at runtime using `bereq.first_byte_timeout`.
FirstByteTimeout *int32 `json:"first_byte_timeout,omitempty"`
// The name of the healthcheck to use with this backend.
Healthcheck NullableString `json:"healthcheck,omitempty"`
// The hostname of the backend. May be used as an alternative to `address` to set the backend location.
Hostname NullableString `json:"hostname,omitempty"`
// IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
Ipv4 NullableString `json:"ipv4,omitempty"`
// IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
Ipv6 NullableString `json:"ipv6,omitempty"`
// How long in seconds to keep a persistent connection to the backend between requests.
KeepaliveTime NullableInt32 `json:"keepalive_time,omitempty"`
// Maximum number of concurrent connections this backend will accept.
MaxConn *int32 `json:"max_conn,omitempty"`
// Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
MaxTLSVersion NullableString `json:"max_tls_version,omitempty"`
// Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
MinTLSVersion NullableString `json:"min_tls_version,omitempty"`
// The name of the backend.
Name *string `json:"name,omitempty"`
// If set, will replace the client-supplied HTTP `Host` header on connections to this backend. Applied after VCL has been processed, so this setting will take precedence over changing `bereq.http.Host` in VCL.
OverrideHost NullableString `json:"override_host,omitempty"`
// Port on which the backend server is listening for connections from Fastly. Setting `port` to 80 or 443 will also set `use_ssl` automatically (to false and true respectively), unless explicitly overridden by setting `use_ssl` in the same request.
Port *int32 `json:"port,omitempty"`
// Name of a Condition, which if satisfied, will select this backend during a request. If set, will override any `auto_loadbalance` setting. By default, the first backend added to a service is selected for all requests.
RequestCondition *string `json:"request_condition,omitempty"`
// Value that when shared across backends will enable those backends to share the same health check.
ShareKey NullableString `json:"share_key,omitempty"`
// Identifier of the POP to use as a [shield](https://docs.fastly.com/en/guides/shielding).
Shield NullableString `json:"shield,omitempty"`
// CA certificate attached to origin.
SslCaCert NullableString `json:"ssl_ca_cert,omitempty"`
// Overrides `ssl_hostname`, but only for cert verification. Does not affect SNI at all.
SslCertHostname NullableString `json:"ssl_cert_hostname,omitempty"`
// Be strict on checking SSL certs.
SslCheckCert NullableBool `json:"ssl_check_cert,omitempty"`
// List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
SslCiphers NullableString `json:"ssl_ciphers,omitempty"`
// Client certificate attached to origin.
SslClientCert NullableString `json:"ssl_client_cert,omitempty"`
// Client key attached to origin.
SslClientKey NullableString `json:"ssl_client_key,omitempty"`
// Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.
// Deprecated
SslHostname NullableString `json:"ssl_hostname,omitempty"`
// Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.
SslSniHostname NullableString `json:"ssl_sni_hostname,omitempty"`
// Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.
TcpKeepaliveEnable *bool `json:"tcp_keepalive_enable,omitempty"`
// Interval in seconds between subsequent keepalive probes.
TcpKeepaliveInterval NullableInt32 `json:"tcp_keepalive_interval,omitempty"`
// Number of unacknowledged probes to send before considering the connection dead.
TcpKeepaliveProbes NullableInt32 `json:"tcp_keepalive_probes,omitempty"`
// Interval in seconds between the last data packet sent and the first keepalive probe.
TcpKeepaliveTime NullableInt32 `json:"tcp_keepalive_time,omitempty"`
// Whether or not to require TLS for connections to this backend.
UseSsl *bool `json:"use_ssl,omitempty"`
// Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true.
Weight *int32 `json:"weight,omitempty"`
// Date and time in ISO 8601 format.
CreatedAt NullableTime `json:"created_at,omitempty"`
// Date and time in ISO 8601 format.
DeletedAt NullableTime `json:"deleted_at,omitempty"`
// Date and time in ISO 8601 format.
UpdatedAt NullableTime `json:"updated_at,omitempty"`
ServiceID *string `json:"service_id,omitempty"`
Version *int32 `json:"version,omitempty"`
// Indicates whether the version of the service this backend is attached to accepts edits.
Locked *bool `json:"locked,omitempty"`
AdditionalProperties map[string]any
}
type _BackendResponse BackendResponse
// NewBackendResponse instantiates a new BackendResponse object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewBackendResponse() *BackendResponse {
this := BackendResponse{}
var sslCheckCert bool = true
this.SslCheckCert = *NewNullableBool(&sslCheckCert)
return &this
}
// NewBackendResponseWithDefaults instantiates a new BackendResponse object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewBackendResponseWithDefaults() *BackendResponse {
this := BackendResponse{}
var sslCheckCert bool = true
this.SslCheckCert = *NewNullableBool(&sslCheckCert)
return &this
}
// GetAddress returns the Address field value if set, zero value otherwise.
func (o *BackendResponse) GetAddress() string {
if o == nil || o.Address == nil {
var ret string
return ret
}
return *o.Address
}
// GetAddressOk returns a tuple with the Address field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackendResponse) GetAddressOk() (*string, bool) {
if o == nil || o.Address == nil {
return nil, false
}
return o.Address, true
}
// HasAddress returns a boolean if a field has been set.
func (o *BackendResponse) HasAddress() bool {
if o != nil && o.Address != nil {
return true
}
return false
}
// SetAddress gets a reference to the given string and assigns it to the Address field.
func (o *BackendResponse) SetAddress(v string) {
o.Address = &v
}
// GetAutoLoadbalance returns the AutoLoadbalance field value if set, zero value otherwise.
func (o *BackendResponse) GetAutoLoadbalance() bool {
if o == nil || o.AutoLoadbalance == nil {
var ret bool
return ret
}
return *o.AutoLoadbalance
}
// GetAutoLoadbalanceOk returns a tuple with the AutoLoadbalance field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackendResponse) GetAutoLoadbalanceOk() (*bool, bool) {
if o == nil || o.AutoLoadbalance == nil {
return nil, false
}
return o.AutoLoadbalance, true
}
// HasAutoLoadbalance returns a boolean if a field has been set.
func (o *BackendResponse) HasAutoLoadbalance() bool {
if o != nil && o.AutoLoadbalance != nil {
return true
}
return false
}
// SetAutoLoadbalance gets a reference to the given bool and assigns it to the AutoLoadbalance field.
func (o *BackendResponse) SetAutoLoadbalance(v bool) {
o.AutoLoadbalance = &v
}
// GetBetweenBytesTimeout returns the BetweenBytesTimeout field value if set, zero value otherwise.
func (o *BackendResponse) GetBetweenBytesTimeout() int32 {
if o == nil || o.BetweenBytesTimeout == nil {
var ret int32
return ret
}
return *o.BetweenBytesTimeout
}
// GetBetweenBytesTimeoutOk returns a tuple with the BetweenBytesTimeout field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackendResponse) GetBetweenBytesTimeoutOk() (*int32, bool) {
if o == nil || o.BetweenBytesTimeout == nil {
return nil, false
}
return o.BetweenBytesTimeout, true
}
// HasBetweenBytesTimeout returns a boolean if a field has been set.
func (o *BackendResponse) HasBetweenBytesTimeout() bool {
if o != nil && o.BetweenBytesTimeout != nil {
return true
}
return false
}
// SetBetweenBytesTimeout gets a reference to the given int32 and assigns it to the BetweenBytesTimeout field.
func (o *BackendResponse) SetBetweenBytesTimeout(v int32) {
o.BetweenBytesTimeout = &v
}
// GetClientCert returns the ClientCert field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetClientCert() string {
if o == nil || o.ClientCert.Get() == nil {
var ret string
return ret
}
return *o.ClientCert.Get()
}
// GetClientCertOk returns a tuple with the ClientCert field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetClientCertOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ClientCert.Get(), o.ClientCert.IsSet()
}
// HasClientCert returns a boolean if a field has been set.
func (o *BackendResponse) HasClientCert() bool {
if o != nil && o.ClientCert.IsSet() {
return true
}
return false
}
// SetClientCert gets a reference to the given NullableString and assigns it to the ClientCert field.
func (o *BackendResponse) SetClientCert(v string) {
o.ClientCert.Set(&v)
}
// SetClientCertNil sets the value for ClientCert to be an explicit nil
func (o *BackendResponse) SetClientCertNil() {
o.ClientCert.Set(nil)
}
// UnsetClientCert ensures that no value is present for ClientCert, not even an explicit nil
func (o *BackendResponse) UnsetClientCert() {
o.ClientCert.Unset()
}
// GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetComment() string {
if o == nil || o.Comment.Get() == nil {
var ret string
return ret
}
return *o.Comment.Get()
}
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetCommentOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Comment.Get(), o.Comment.IsSet()
}
// HasComment returns a boolean if a field has been set.
func (o *BackendResponse) HasComment() bool {
if o != nil && o.Comment.IsSet() {
return true
}
return false
}
// SetComment gets a reference to the given NullableString and assigns it to the Comment field.
func (o *BackendResponse) SetComment(v string) {
o.Comment.Set(&v)
}
// SetCommentNil sets the value for Comment to be an explicit nil
func (o *BackendResponse) SetCommentNil() {
o.Comment.Set(nil)
}
// UnsetComment ensures that no value is present for Comment, not even an explicit nil
func (o *BackendResponse) UnsetComment() {
o.Comment.Unset()
}
// GetConnectTimeout returns the ConnectTimeout field value if set, zero value otherwise.
func (o *BackendResponse) GetConnectTimeout() int32 {
if o == nil || o.ConnectTimeout == nil {
var ret int32
return ret
}
return *o.ConnectTimeout
}
// GetConnectTimeoutOk returns a tuple with the ConnectTimeout field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackendResponse) GetConnectTimeoutOk() (*int32, bool) {
if o == nil || o.ConnectTimeout == nil {
return nil, false
}
return o.ConnectTimeout, true
}
// HasConnectTimeout returns a boolean if a field has been set.
func (o *BackendResponse) HasConnectTimeout() bool {
if o != nil && o.ConnectTimeout != nil {
return true
}
return false
}
// SetConnectTimeout gets a reference to the given int32 and assigns it to the ConnectTimeout field.
func (o *BackendResponse) SetConnectTimeout(v int32) {
o.ConnectTimeout = &v
}
// GetFirstByteTimeout returns the FirstByteTimeout field value if set, zero value otherwise.
func (o *BackendResponse) GetFirstByteTimeout() int32 {
if o == nil || o.FirstByteTimeout == nil {
var ret int32
return ret
}
return *o.FirstByteTimeout
}
// GetFirstByteTimeoutOk returns a tuple with the FirstByteTimeout field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackendResponse) GetFirstByteTimeoutOk() (*int32, bool) {
if o == nil || o.FirstByteTimeout == nil {
return nil, false
}
return o.FirstByteTimeout, true
}
// HasFirstByteTimeout returns a boolean if a field has been set.
func (o *BackendResponse) HasFirstByteTimeout() bool {
if o != nil && o.FirstByteTimeout != nil {
return true
}
return false
}
// SetFirstByteTimeout gets a reference to the given int32 and assigns it to the FirstByteTimeout field.
func (o *BackendResponse) SetFirstByteTimeout(v int32) {
o.FirstByteTimeout = &v
}
// GetHealthcheck returns the Healthcheck field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetHealthcheck() string {
if o == nil || o.Healthcheck.Get() == nil {
var ret string
return ret
}
return *o.Healthcheck.Get()
}
// GetHealthcheckOk returns a tuple with the Healthcheck field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetHealthcheckOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Healthcheck.Get(), o.Healthcheck.IsSet()
}
// HasHealthcheck returns a boolean if a field has been set.
func (o *BackendResponse) HasHealthcheck() bool {
if o != nil && o.Healthcheck.IsSet() {
return true
}
return false
}
// SetHealthcheck gets a reference to the given NullableString and assigns it to the Healthcheck field.
func (o *BackendResponse) SetHealthcheck(v string) {
o.Healthcheck.Set(&v)
}
// SetHealthcheckNil sets the value for Healthcheck to be an explicit nil
func (o *BackendResponse) SetHealthcheckNil() {
o.Healthcheck.Set(nil)
}
// UnsetHealthcheck ensures that no value is present for Healthcheck, not even an explicit nil
func (o *BackendResponse) UnsetHealthcheck() {
o.Healthcheck.Unset()
}
// GetHostname returns the Hostname field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetHostname() string {
if o == nil || o.Hostname.Get() == nil {
var ret string
return ret
}
return *o.Hostname.Get()
}
// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetHostnameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Hostname.Get(), o.Hostname.IsSet()
}
// HasHostname returns a boolean if a field has been set.
func (o *BackendResponse) HasHostname() bool {
if o != nil && o.Hostname.IsSet() {
return true
}
return false
}
// SetHostname gets a reference to the given NullableString and assigns it to the Hostname field.
func (o *BackendResponse) SetHostname(v string) {
o.Hostname.Set(&v)
}
// SetHostnameNil sets the value for Hostname to be an explicit nil
func (o *BackendResponse) SetHostnameNil() {
o.Hostname.Set(nil)
}
// UnsetHostname ensures that no value is present for Hostname, not even an explicit nil
func (o *BackendResponse) UnsetHostname() {
o.Hostname.Unset()
}
// GetIpv4 returns the Ipv4 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetIpv4() string {
if o == nil || o.Ipv4.Get() == nil {
var ret string
return ret
}
return *o.Ipv4.Get()
}
// GetIpv4Ok returns a tuple with the Ipv4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetIpv4Ok() (*string, bool) {
if o == nil {
return nil, false
}
return o.Ipv4.Get(), o.Ipv4.IsSet()
}
// HasIpv4 returns a boolean if a field has been set.
func (o *BackendResponse) HasIpv4() bool {
if o != nil && o.Ipv4.IsSet() {
return true
}
return false
}
// SetIpv4 gets a reference to the given NullableString and assigns it to the Ipv4 field.
func (o *BackendResponse) SetIpv4(v string) {
o.Ipv4.Set(&v)
}
// SetIpv4Nil sets the value for Ipv4 to be an explicit nil
func (o *BackendResponse) SetIpv4Nil() {
o.Ipv4.Set(nil)
}
// UnsetIpv4 ensures that no value is present for Ipv4, not even an explicit nil
func (o *BackendResponse) UnsetIpv4() {
o.Ipv4.Unset()
}
// GetIpv6 returns the Ipv6 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetIpv6() string {
if o == nil || o.Ipv6.Get() == nil {
var ret string
return ret
}
return *o.Ipv6.Get()
}
// GetIpv6Ok returns a tuple with the Ipv6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetIpv6Ok() (*string, bool) {
if o == nil {
return nil, false
}
return o.Ipv6.Get(), o.Ipv6.IsSet()
}
// HasIpv6 returns a boolean if a field has been set.
func (o *BackendResponse) HasIpv6() bool {
if o != nil && o.Ipv6.IsSet() {
return true
}
return false
}
// SetIpv6 gets a reference to the given NullableString and assigns it to the Ipv6 field.
func (o *BackendResponse) SetIpv6(v string) {
o.Ipv6.Set(&v)
}
// SetIpv6Nil sets the value for Ipv6 to be an explicit nil
func (o *BackendResponse) SetIpv6Nil() {
o.Ipv6.Set(nil)
}
// UnsetIpv6 ensures that no value is present for Ipv6, not even an explicit nil
func (o *BackendResponse) UnsetIpv6() {
o.Ipv6.Unset()
}
// GetKeepaliveTime returns the KeepaliveTime field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetKeepaliveTime() int32 {
if o == nil || o.KeepaliveTime.Get() == nil {
var ret int32
return ret
}
return *o.KeepaliveTime.Get()
}
// GetKeepaliveTimeOk returns a tuple with the KeepaliveTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetKeepaliveTimeOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.KeepaliveTime.Get(), o.KeepaliveTime.IsSet()
}
// HasKeepaliveTime returns a boolean if a field has been set.
func (o *BackendResponse) HasKeepaliveTime() bool {
if o != nil && o.KeepaliveTime.IsSet() {
return true
}
return false
}
// SetKeepaliveTime gets a reference to the given NullableInt32 and assigns it to the KeepaliveTime field.
func (o *BackendResponse) SetKeepaliveTime(v int32) {
o.KeepaliveTime.Set(&v)
}
// SetKeepaliveTimeNil sets the value for KeepaliveTime to be an explicit nil
func (o *BackendResponse) SetKeepaliveTimeNil() {
o.KeepaliveTime.Set(nil)
}
// UnsetKeepaliveTime ensures that no value is present for KeepaliveTime, not even an explicit nil
func (o *BackendResponse) UnsetKeepaliveTime() {
o.KeepaliveTime.Unset()
}
// GetMaxConn returns the MaxConn field value if set, zero value otherwise.
func (o *BackendResponse) GetMaxConn() int32 {
if o == nil || o.MaxConn == nil {
var ret int32
return ret
}
return *o.MaxConn
}
// GetMaxConnOk returns a tuple with the MaxConn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackendResponse) GetMaxConnOk() (*int32, bool) {
if o == nil || o.MaxConn == nil {
return nil, false
}
return o.MaxConn, true
}
// HasMaxConn returns a boolean if a field has been set.
func (o *BackendResponse) HasMaxConn() bool {
if o != nil && o.MaxConn != nil {
return true
}
return false
}
// SetMaxConn gets a reference to the given int32 and assigns it to the MaxConn field.
func (o *BackendResponse) SetMaxConn(v int32) {
o.MaxConn = &v
}
// GetMaxTLSVersion returns the MaxTLSVersion field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetMaxTLSVersion() string {
if o == nil || o.MaxTLSVersion.Get() == nil {
var ret string
return ret
}
return *o.MaxTLSVersion.Get()
}
// GetMaxTLSVersionOk returns a tuple with the MaxTLSVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetMaxTLSVersionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MaxTLSVersion.Get(), o.MaxTLSVersion.IsSet()
}
// HasMaxTLSVersion returns a boolean if a field has been set.
func (o *BackendResponse) HasMaxTLSVersion() bool {
if o != nil && o.MaxTLSVersion.IsSet() {
return true
}
return false
}
// SetMaxTLSVersion gets a reference to the given NullableString and assigns it to the MaxTLSVersion field.
func (o *BackendResponse) SetMaxTLSVersion(v string) {
o.MaxTLSVersion.Set(&v)
}
// SetMaxTLSVersionNil sets the value for MaxTLSVersion to be an explicit nil
func (o *BackendResponse) SetMaxTLSVersionNil() {
o.MaxTLSVersion.Set(nil)
}
// UnsetMaxTLSVersion ensures that no value is present for MaxTLSVersion, not even an explicit nil
func (o *BackendResponse) UnsetMaxTLSVersion() {
o.MaxTLSVersion.Unset()
}
// GetMinTLSVersion returns the MinTLSVersion field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetMinTLSVersion() string {
if o == nil || o.MinTLSVersion.Get() == nil {
var ret string
return ret
}
return *o.MinTLSVersion.Get()
}
// GetMinTLSVersionOk returns a tuple with the MinTLSVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetMinTLSVersionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MinTLSVersion.Get(), o.MinTLSVersion.IsSet()
}
// HasMinTLSVersion returns a boolean if a field has been set.
func (o *BackendResponse) HasMinTLSVersion() bool {
if o != nil && o.MinTLSVersion.IsSet() {
return true
}
return false
}
// SetMinTLSVersion gets a reference to the given NullableString and assigns it to the MinTLSVersion field.
func (o *BackendResponse) SetMinTLSVersion(v string) {
o.MinTLSVersion.Set(&v)
}
// SetMinTLSVersionNil sets the value for MinTLSVersion to be an explicit nil
func (o *BackendResponse) SetMinTLSVersionNil() {
o.MinTLSVersion.Set(nil)
}
// UnsetMinTLSVersion ensures that no value is present for MinTLSVersion, not even an explicit nil
func (o *BackendResponse) UnsetMinTLSVersion() {
o.MinTLSVersion.Unset()
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *BackendResponse) GetName() string {
if o == nil || o.Name == nil {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackendResponse) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *BackendResponse) HasName() bool {
if o != nil && o.Name != nil {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *BackendResponse) SetName(v string) {
o.Name = &v
}
// GetOverrideHost returns the OverrideHost field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetOverrideHost() string {
if o == nil || o.OverrideHost.Get() == nil {
var ret string
return ret
}
return *o.OverrideHost.Get()
}
// GetOverrideHostOk returns a tuple with the OverrideHost field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetOverrideHostOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.OverrideHost.Get(), o.OverrideHost.IsSet()
}
// HasOverrideHost returns a boolean if a field has been set.
func (o *BackendResponse) HasOverrideHost() bool {
if o != nil && o.OverrideHost.IsSet() {
return true
}
return false
}
// SetOverrideHost gets a reference to the given NullableString and assigns it to the OverrideHost field.
func (o *BackendResponse) SetOverrideHost(v string) {
o.OverrideHost.Set(&v)
}
// SetOverrideHostNil sets the value for OverrideHost to be an explicit nil
func (o *BackendResponse) SetOverrideHostNil() {
o.OverrideHost.Set(nil)
}
// UnsetOverrideHost ensures that no value is present for OverrideHost, not even an explicit nil
func (o *BackendResponse) UnsetOverrideHost() {
o.OverrideHost.Unset()
}
// GetPort returns the Port field value if set, zero value otherwise.
func (o *BackendResponse) GetPort() int32 {
if o == nil || o.Port == nil {
var ret int32
return ret
}
return *o.Port
}
// GetPortOk returns a tuple with the Port field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackendResponse) GetPortOk() (*int32, bool) {
if o == nil || o.Port == nil {
return nil, false
}
return o.Port, true
}
// HasPort returns a boolean if a field has been set.
func (o *BackendResponse) HasPort() bool {
if o != nil && o.Port != nil {
return true
}
return false
}
// SetPort gets a reference to the given int32 and assigns it to the Port field.
func (o *BackendResponse) SetPort(v int32) {
o.Port = &v
}
// GetRequestCondition returns the RequestCondition field value if set, zero value otherwise.
func (o *BackendResponse) GetRequestCondition() string {
if o == nil || o.RequestCondition == nil {
var ret string
return ret
}
return *o.RequestCondition
}
// GetRequestConditionOk returns a tuple with the RequestCondition field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackendResponse) GetRequestConditionOk() (*string, bool) {
if o == nil || o.RequestCondition == nil {
return nil, false
}
return o.RequestCondition, true
}
// HasRequestCondition returns a boolean if a field has been set.
func (o *BackendResponse) HasRequestCondition() bool {
if o != nil && o.RequestCondition != nil {
return true
}
return false
}
// SetRequestCondition gets a reference to the given string and assigns it to the RequestCondition field.
func (o *BackendResponse) SetRequestCondition(v string) {
o.RequestCondition = &v
}
// GetShareKey returns the ShareKey field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetShareKey() string {
if o == nil || o.ShareKey.Get() == nil {
var ret string
return ret
}
return *o.ShareKey.Get()
}
// GetShareKeyOk returns a tuple with the ShareKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetShareKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ShareKey.Get(), o.ShareKey.IsSet()
}
// HasShareKey returns a boolean if a field has been set.
func (o *BackendResponse) HasShareKey() bool {
if o != nil && o.ShareKey.IsSet() {
return true
}
return false
}
// SetShareKey gets a reference to the given NullableString and assigns it to the ShareKey field.
func (o *BackendResponse) SetShareKey(v string) {
o.ShareKey.Set(&v)
}
// SetShareKeyNil sets the value for ShareKey to be an explicit nil
func (o *BackendResponse) SetShareKeyNil() {
o.ShareKey.Set(nil)
}
// UnsetShareKey ensures that no value is present for ShareKey, not even an explicit nil
func (o *BackendResponse) UnsetShareKey() {
o.ShareKey.Unset()
}
// GetShield returns the Shield field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetShield() string {
if o == nil || o.Shield.Get() == nil {
var ret string
return ret
}
return *o.Shield.Get()
}
// GetShieldOk returns a tuple with the Shield field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetShieldOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Shield.Get(), o.Shield.IsSet()
}
// HasShield returns a boolean if a field has been set.
func (o *BackendResponse) HasShield() bool {
if o != nil && o.Shield.IsSet() {
return true
}
return false
}
// SetShield gets a reference to the given NullableString and assigns it to the Shield field.
func (o *BackendResponse) SetShield(v string) {
o.Shield.Set(&v)
}
// SetShieldNil sets the value for Shield to be an explicit nil
func (o *BackendResponse) SetShieldNil() {
o.Shield.Set(nil)
}
// UnsetShield ensures that no value is present for Shield, not even an explicit nil
func (o *BackendResponse) UnsetShield() {
o.Shield.Unset()
}
// GetSslCaCert returns the SslCaCert field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetSslCaCert() string {
if o == nil || o.SslCaCert.Get() == nil {
var ret string
return ret
}
return *o.SslCaCert.Get()
}
// GetSslCaCertOk returns a tuple with the SslCaCert field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetSslCaCertOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SslCaCert.Get(), o.SslCaCert.IsSet()
}
// HasSslCaCert returns a boolean if a field has been set.
func (o *BackendResponse) HasSslCaCert() bool {
if o != nil && o.SslCaCert.IsSet() {
return true
}
return false
}
// SetSslCaCert gets a reference to the given NullableString and assigns it to the SslCaCert field.
func (o *BackendResponse) SetSslCaCert(v string) {
o.SslCaCert.Set(&v)
}
// SetSslCaCertNil sets the value for SslCaCert to be an explicit nil
func (o *BackendResponse) SetSslCaCertNil() {
o.SslCaCert.Set(nil)
}
// UnsetSslCaCert ensures that no value is present for SslCaCert, not even an explicit nil
func (o *BackendResponse) UnsetSslCaCert() {
o.SslCaCert.Unset()
}
// GetSslCertHostname returns the SslCertHostname field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackendResponse) GetSslCertHostname() string {
if o == nil || o.SslCertHostname.Get() == nil {
var ret string
return ret
}
return *o.SslCertHostname.Get()
}
// GetSslCertHostnameOk returns a tuple with the SslCertHostname field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BackendResponse) GetSslCertHostnameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SslCertHostname.Get(), o.SslCertHostname.IsSet()
}
// HasSslCertHostname returns a boolean if a field has been set.
func (o *BackendResponse) HasSslCertHostname() bool {
if o != nil && o.SslCertHostname.IsSet() {
return true
}
return false
}
// SetSslCertHostname gets a reference to the given NullableString and assigns it to the SslCertHostname field.
func (o *BackendResponse) SetSslCertHostname(v string) {
o.SslCertHostname.Set(&v)
}
// SetSslCertHostnameNil sets the value for SslCertHostname to be an explicit nil
func (o *BackendResponse) SetSslCertHostnameNil() {
o.SslCertHostname.Set(nil)
}