-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_fp_integration.go
924 lines (789 loc) · 23.3 KB
/
model_fp_integration.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
/*
Flowpipe
Flowpipe is workflow and pipelines for DevSecOps.
API version: 0.1.0
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package flowpipeapi
import (
"encoding/json"
)
// checks if the FpIntegration type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &FpIntegration{}
// FpIntegration struct for FpIntegration
type FpIntegration struct {
Bcc []string `json:"bcc,omitempty"`
Cc []string `json:"cc,omitempty"`
Channel *string `json:"channel,omitempty"`
Description *string `json:"description,omitempty"`
EndLineNumber *int32 `json:"end_line_number,omitempty"`
FileName *string `json:"file_name,omitempty"`
From *string `json:"from,omitempty"`
Name *string `json:"name,omitempty"`
SigningSecret *string `json:"signing_secret,omitempty"`
// email
SmtpHost *string `json:"smtp_host,omitempty"`
SmtpPassword *string `json:"smtp_password,omitempty"`
SmtpPort *int32 `json:"smtp_port,omitempty"`
SmtpTls *string `json:"smtp_tls,omitempty"`
SmtpUsername *string `json:"smtp_username,omitempty"`
SmtpsPort *int32 `json:"smtps_port,omitempty"`
StartLineNumber *int32 `json:"start_line_number,omitempty"`
Subject *string `json:"subject,omitempty"`
Title *string `json:"title,omitempty"`
To []string `json:"to,omitempty"`
// slack
Token *string `json:"token,omitempty"`
Type *string `json:"type,omitempty"`
Url *string `json:"url,omitempty"`
// slack & msteams
WebhookUrl *string `json:"webhook_url,omitempty"`
}
func (o FpIntegration) GetResourceType() string {
return "FpIntegration"
}
// NewFpIntegration instantiates a new FpIntegration 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 NewFpIntegration() *FpIntegration {
this := FpIntegration{}
return &this
}
// NewFpIntegrationWithDefaults instantiates a new FpIntegration 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 NewFpIntegrationWithDefaults() *FpIntegration {
this := FpIntegration{}
return &this
}
// GetBcc returns the Bcc field value if set, zero value otherwise.
func (o *FpIntegration) GetBcc() []string {
if o == nil || IsNil(o.Bcc) {
var ret []string
return ret
}
return o.Bcc
}
// GetBccOk returns a tuple with the Bcc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetBccOk() ([]string, bool) {
if o == nil || IsNil(o.Bcc) {
return nil, false
}
return o.Bcc, true
}
// HasBcc returns a boolean if a field has been set.
func (o *FpIntegration) HasBcc() bool {
if o != nil && !IsNil(o.Bcc) {
return true
}
return false
}
// SetBcc gets a reference to the given []string and assigns it to the Bcc field.
func (o *FpIntegration) SetBcc(v []string) {
o.Bcc = v
}
// GetCc returns the Cc field value if set, zero value otherwise.
func (o *FpIntegration) GetCc() []string {
if o == nil || IsNil(o.Cc) {
var ret []string
return ret
}
return o.Cc
}
// GetCcOk returns a tuple with the Cc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetCcOk() ([]string, bool) {
if o == nil || IsNil(o.Cc) {
return nil, false
}
return o.Cc, true
}
// HasCc returns a boolean if a field has been set.
func (o *FpIntegration) HasCc() bool {
if o != nil && !IsNil(o.Cc) {
return true
}
return false
}
// SetCc gets a reference to the given []string and assigns it to the Cc field.
func (o *FpIntegration) SetCc(v []string) {
o.Cc = v
}
// GetChannel returns the Channel field value if set, zero value otherwise.
func (o *FpIntegration) GetChannel() string {
if o == nil || IsNil(o.Channel) {
var ret string
return ret
}
return *o.Channel
}
// GetChannelOk returns a tuple with the Channel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetChannelOk() (*string, bool) {
if o == nil || IsNil(o.Channel) {
return nil, false
}
return o.Channel, true
}
// HasChannel returns a boolean if a field has been set.
func (o *FpIntegration) HasChannel() bool {
if o != nil && !IsNil(o.Channel) {
return true
}
return false
}
// SetChannel gets a reference to the given string and assigns it to the Channel field.
func (o *FpIntegration) SetChannel(v string) {
o.Channel = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *FpIntegration) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *FpIntegration) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *FpIntegration) SetDescription(v string) {
o.Description = &v
}
// GetEndLineNumber returns the EndLineNumber field value if set, zero value otherwise.
func (o *FpIntegration) GetEndLineNumber() int32 {
if o == nil || IsNil(o.EndLineNumber) {
var ret int32
return ret
}
return *o.EndLineNumber
}
// GetEndLineNumberOk returns a tuple with the EndLineNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetEndLineNumberOk() (*int32, bool) {
if o == nil || IsNil(o.EndLineNumber) {
return nil, false
}
return o.EndLineNumber, true
}
// HasEndLineNumber returns a boolean if a field has been set.
func (o *FpIntegration) HasEndLineNumber() bool {
if o != nil && !IsNil(o.EndLineNumber) {
return true
}
return false
}
// SetEndLineNumber gets a reference to the given int32 and assigns it to the EndLineNumber field.
func (o *FpIntegration) SetEndLineNumber(v int32) {
o.EndLineNumber = &v
}
// GetFileName returns the FileName field value if set, zero value otherwise.
func (o *FpIntegration) GetFileName() string {
if o == nil || IsNil(o.FileName) {
var ret string
return ret
}
return *o.FileName
}
// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetFileNameOk() (*string, bool) {
if o == nil || IsNil(o.FileName) {
return nil, false
}
return o.FileName, true
}
// HasFileName returns a boolean if a field has been set.
func (o *FpIntegration) HasFileName() bool {
if o != nil && !IsNil(o.FileName) {
return true
}
return false
}
// SetFileName gets a reference to the given string and assigns it to the FileName field.
func (o *FpIntegration) SetFileName(v string) {
o.FileName = &v
}
// GetFrom returns the From field value if set, zero value otherwise.
func (o *FpIntegration) GetFrom() string {
if o == nil || IsNil(o.From) {
var ret string
return ret
}
return *o.From
}
// GetFromOk returns a tuple with the From field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetFromOk() (*string, bool) {
if o == nil || IsNil(o.From) {
return nil, false
}
return o.From, true
}
// HasFrom returns a boolean if a field has been set.
func (o *FpIntegration) HasFrom() bool {
if o != nil && !IsNil(o.From) {
return true
}
return false
}
// SetFrom gets a reference to the given string and assigns it to the From field.
func (o *FpIntegration) SetFrom(v string) {
o.From = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *FpIntegration) GetName() string {
if o == nil || IsNil(o.Name) {
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 *FpIntegration) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *FpIntegration) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *FpIntegration) SetName(v string) {
o.Name = &v
}
// GetSigningSecret returns the SigningSecret field value if set, zero value otherwise.
func (o *FpIntegration) GetSigningSecret() string {
if o == nil || IsNil(o.SigningSecret) {
var ret string
return ret
}
return *o.SigningSecret
}
// GetSigningSecretOk returns a tuple with the SigningSecret field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetSigningSecretOk() (*string, bool) {
if o == nil || IsNil(o.SigningSecret) {
return nil, false
}
return o.SigningSecret, true
}
// HasSigningSecret returns a boolean if a field has been set.
func (o *FpIntegration) HasSigningSecret() bool {
if o != nil && !IsNil(o.SigningSecret) {
return true
}
return false
}
// SetSigningSecret gets a reference to the given string and assigns it to the SigningSecret field.
func (o *FpIntegration) SetSigningSecret(v string) {
o.SigningSecret = &v
}
// GetSmtpHost returns the SmtpHost field value if set, zero value otherwise.
func (o *FpIntegration) GetSmtpHost() string {
if o == nil || IsNil(o.SmtpHost) {
var ret string
return ret
}
return *o.SmtpHost
}
// GetSmtpHostOk returns a tuple with the SmtpHost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetSmtpHostOk() (*string, bool) {
if o == nil || IsNil(o.SmtpHost) {
return nil, false
}
return o.SmtpHost, true
}
// HasSmtpHost returns a boolean if a field has been set.
func (o *FpIntegration) HasSmtpHost() bool {
if o != nil && !IsNil(o.SmtpHost) {
return true
}
return false
}
// SetSmtpHost gets a reference to the given string and assigns it to the SmtpHost field.
func (o *FpIntegration) SetSmtpHost(v string) {
o.SmtpHost = &v
}
// GetSmtpPassword returns the SmtpPassword field value if set, zero value otherwise.
func (o *FpIntegration) GetSmtpPassword() string {
if o == nil || IsNil(o.SmtpPassword) {
var ret string
return ret
}
return *o.SmtpPassword
}
// GetSmtpPasswordOk returns a tuple with the SmtpPassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetSmtpPasswordOk() (*string, bool) {
if o == nil || IsNil(o.SmtpPassword) {
return nil, false
}
return o.SmtpPassword, true
}
// HasSmtpPassword returns a boolean if a field has been set.
func (o *FpIntegration) HasSmtpPassword() bool {
if o != nil && !IsNil(o.SmtpPassword) {
return true
}
return false
}
// SetSmtpPassword gets a reference to the given string and assigns it to the SmtpPassword field.
func (o *FpIntegration) SetSmtpPassword(v string) {
o.SmtpPassword = &v
}
// GetSmtpPort returns the SmtpPort field value if set, zero value otherwise.
func (o *FpIntegration) GetSmtpPort() int32 {
if o == nil || IsNil(o.SmtpPort) {
var ret int32
return ret
}
return *o.SmtpPort
}
// GetSmtpPortOk returns a tuple with the SmtpPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetSmtpPortOk() (*int32, bool) {
if o == nil || IsNil(o.SmtpPort) {
return nil, false
}
return o.SmtpPort, true
}
// HasSmtpPort returns a boolean if a field has been set.
func (o *FpIntegration) HasSmtpPort() bool {
if o != nil && !IsNil(o.SmtpPort) {
return true
}
return false
}
// SetSmtpPort gets a reference to the given int32 and assigns it to the SmtpPort field.
func (o *FpIntegration) SetSmtpPort(v int32) {
o.SmtpPort = &v
}
// GetSmtpTls returns the SmtpTls field value if set, zero value otherwise.
func (o *FpIntegration) GetSmtpTls() string {
if o == nil || IsNil(o.SmtpTls) {
var ret string
return ret
}
return *o.SmtpTls
}
// GetSmtpTlsOk returns a tuple with the SmtpTls field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetSmtpTlsOk() (*string, bool) {
if o == nil || IsNil(o.SmtpTls) {
return nil, false
}
return o.SmtpTls, true
}
// HasSmtpTls returns a boolean if a field has been set.
func (o *FpIntegration) HasSmtpTls() bool {
if o != nil && !IsNil(o.SmtpTls) {
return true
}
return false
}
// SetSmtpTls gets a reference to the given string and assigns it to the SmtpTls field.
func (o *FpIntegration) SetSmtpTls(v string) {
o.SmtpTls = &v
}
// GetSmtpUsername returns the SmtpUsername field value if set, zero value otherwise.
func (o *FpIntegration) GetSmtpUsername() string {
if o == nil || IsNil(o.SmtpUsername) {
var ret string
return ret
}
return *o.SmtpUsername
}
// GetSmtpUsernameOk returns a tuple with the SmtpUsername field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetSmtpUsernameOk() (*string, bool) {
if o == nil || IsNil(o.SmtpUsername) {
return nil, false
}
return o.SmtpUsername, true
}
// HasSmtpUsername returns a boolean if a field has been set.
func (o *FpIntegration) HasSmtpUsername() bool {
if o != nil && !IsNil(o.SmtpUsername) {
return true
}
return false
}
// SetSmtpUsername gets a reference to the given string and assigns it to the SmtpUsername field.
func (o *FpIntegration) SetSmtpUsername(v string) {
o.SmtpUsername = &v
}
// GetSmtpsPort returns the SmtpsPort field value if set, zero value otherwise.
func (o *FpIntegration) GetSmtpsPort() int32 {
if o == nil || IsNil(o.SmtpsPort) {
var ret int32
return ret
}
return *o.SmtpsPort
}
// GetSmtpsPortOk returns a tuple with the SmtpsPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetSmtpsPortOk() (*int32, bool) {
if o == nil || IsNil(o.SmtpsPort) {
return nil, false
}
return o.SmtpsPort, true
}
// HasSmtpsPort returns a boolean if a field has been set.
func (o *FpIntegration) HasSmtpsPort() bool {
if o != nil && !IsNil(o.SmtpsPort) {
return true
}
return false
}
// SetSmtpsPort gets a reference to the given int32 and assigns it to the SmtpsPort field.
func (o *FpIntegration) SetSmtpsPort(v int32) {
o.SmtpsPort = &v
}
// GetStartLineNumber returns the StartLineNumber field value if set, zero value otherwise.
func (o *FpIntegration) GetStartLineNumber() int32 {
if o == nil || IsNil(o.StartLineNumber) {
var ret int32
return ret
}
return *o.StartLineNumber
}
// GetStartLineNumberOk returns a tuple with the StartLineNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetStartLineNumberOk() (*int32, bool) {
if o == nil || IsNil(o.StartLineNumber) {
return nil, false
}
return o.StartLineNumber, true
}
// HasStartLineNumber returns a boolean if a field has been set.
func (o *FpIntegration) HasStartLineNumber() bool {
if o != nil && !IsNil(o.StartLineNumber) {
return true
}
return false
}
// SetStartLineNumber gets a reference to the given int32 and assigns it to the StartLineNumber field.
func (o *FpIntegration) SetStartLineNumber(v int32) {
o.StartLineNumber = &v
}
// GetSubject returns the Subject field value if set, zero value otherwise.
func (o *FpIntegration) GetSubject() string {
if o == nil || IsNil(o.Subject) {
var ret string
return ret
}
return *o.Subject
}
// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetSubjectOk() (*string, bool) {
if o == nil || IsNil(o.Subject) {
return nil, false
}
return o.Subject, true
}
// HasSubject returns a boolean if a field has been set.
func (o *FpIntegration) HasSubject() bool {
if o != nil && !IsNil(o.Subject) {
return true
}
return false
}
// SetSubject gets a reference to the given string and assigns it to the Subject field.
func (o *FpIntegration) SetSubject(v string) {
o.Subject = &v
}
// GetTitle returns the Title field value if set, zero value otherwise.
func (o *FpIntegration) GetTitle() string {
if o == nil || IsNil(o.Title) {
var ret string
return ret
}
return *o.Title
}
// GetTitleOk returns a tuple with the Title field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetTitleOk() (*string, bool) {
if o == nil || IsNil(o.Title) {
return nil, false
}
return o.Title, true
}
// HasTitle returns a boolean if a field has been set.
func (o *FpIntegration) HasTitle() bool {
if o != nil && !IsNil(o.Title) {
return true
}
return false
}
// SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *FpIntegration) SetTitle(v string) {
o.Title = &v
}
// GetTo returns the To field value if set, zero value otherwise.
func (o *FpIntegration) GetTo() []string {
if o == nil || IsNil(o.To) {
var ret []string
return ret
}
return o.To
}
// GetToOk returns a tuple with the To field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetToOk() ([]string, bool) {
if o == nil || IsNil(o.To) {
return nil, false
}
return o.To, true
}
// HasTo returns a boolean if a field has been set.
func (o *FpIntegration) HasTo() bool {
if o != nil && !IsNil(o.To) {
return true
}
return false
}
// SetTo gets a reference to the given []string and assigns it to the To field.
func (o *FpIntegration) SetTo(v []string) {
o.To = v
}
// GetToken returns the Token field value if set, zero value otherwise.
func (o *FpIntegration) GetToken() string {
if o == nil || IsNil(o.Token) {
var ret string
return ret
}
return *o.Token
}
// GetTokenOk returns a tuple with the Token field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetTokenOk() (*string, bool) {
if o == nil || IsNil(o.Token) {
return nil, false
}
return o.Token, true
}
// HasToken returns a boolean if a field has been set.
func (o *FpIntegration) HasToken() bool {
if o != nil && !IsNil(o.Token) {
return true
}
return false
}
// SetToken gets a reference to the given string and assigns it to the Token field.
func (o *FpIntegration) SetToken(v string) {
o.Token = &v
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *FpIntegration) GetType() string {
if o == nil || IsNil(o.Type) {
var ret string
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetTypeOk() (*string, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *FpIntegration) HasType() bool {
if o != nil && !IsNil(o.Type) {
return true
}
return false
}
// SetType gets a reference to the given string and assigns it to the Type field.
func (o *FpIntegration) SetType(v string) {
o.Type = &v
}
// GetUrl returns the Url field value if set, zero value otherwise.
func (o *FpIntegration) GetUrl() string {
if o == nil || IsNil(o.Url) {
var ret string
return ret
}
return *o.Url
}
// GetUrlOk returns a tuple with the Url field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetUrlOk() (*string, bool) {
if o == nil || IsNil(o.Url) {
return nil, false
}
return o.Url, true
}
// HasUrl returns a boolean if a field has been set.
func (o *FpIntegration) HasUrl() bool {
if o != nil && !IsNil(o.Url) {
return true
}
return false
}
// SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *FpIntegration) SetUrl(v string) {
o.Url = &v
}
// GetWebhookUrl returns the WebhookUrl field value if set, zero value otherwise.
func (o *FpIntegration) GetWebhookUrl() string {
if o == nil || IsNil(o.WebhookUrl) {
var ret string
return ret
}
return *o.WebhookUrl
}
// GetWebhookUrlOk returns a tuple with the WebhookUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FpIntegration) GetWebhookUrlOk() (*string, bool) {
if o == nil || IsNil(o.WebhookUrl) {
return nil, false
}
return o.WebhookUrl, true
}
// HasWebhookUrl returns a boolean if a field has been set.
func (o *FpIntegration) HasWebhookUrl() bool {
if o != nil && !IsNil(o.WebhookUrl) {
return true
}
return false
}
// SetWebhookUrl gets a reference to the given string and assigns it to the WebhookUrl field.
func (o *FpIntegration) SetWebhookUrl(v string) {
o.WebhookUrl = &v
}
func (o FpIntegration) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o FpIntegration) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Bcc) {
toSerialize["bcc"] = o.Bcc
}
if !IsNil(o.Cc) {
toSerialize["cc"] = o.Cc
}
if !IsNil(o.Channel) {
toSerialize["channel"] = o.Channel
}
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
if !IsNil(o.EndLineNumber) {
toSerialize["end_line_number"] = o.EndLineNumber
}
if !IsNil(o.FileName) {
toSerialize["file_name"] = o.FileName
}
if !IsNil(o.From) {
toSerialize["from"] = o.From
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.SigningSecret) {
toSerialize["signing_secret"] = o.SigningSecret
}
if !IsNil(o.SmtpHost) {
toSerialize["smtp_host"] = o.SmtpHost
}
if !IsNil(o.SmtpPassword) {
toSerialize["smtp_password"] = o.SmtpPassword
}
if !IsNil(o.SmtpPort) {
toSerialize["smtp_port"] = o.SmtpPort
}
if !IsNil(o.SmtpTls) {
toSerialize["smtp_tls"] = o.SmtpTls
}
if !IsNil(o.SmtpUsername) {
toSerialize["smtp_username"] = o.SmtpUsername
}
if !IsNil(o.SmtpsPort) {
toSerialize["smtps_port"] = o.SmtpsPort
}
if !IsNil(o.StartLineNumber) {
toSerialize["start_line_number"] = o.StartLineNumber
}
if !IsNil(o.Subject) {
toSerialize["subject"] = o.Subject
}
if !IsNil(o.Title) {
toSerialize["title"] = o.Title
}
if !IsNil(o.To) {
toSerialize["to"] = o.To
}
if !IsNil(o.Token) {
toSerialize["token"] = o.Token
}
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
if !IsNil(o.Url) {
toSerialize["url"] = o.Url
}
if !IsNil(o.WebhookUrl) {
toSerialize["webhook_url"] = o.WebhookUrl
}
return toSerialize, nil
}
type NullableFpIntegration struct {
value *FpIntegration
isSet bool
}
func (v NullableFpIntegration) Get() *FpIntegration {
return v.value
}
func (v *NullableFpIntegration) Set(val *FpIntegration) {
v.value = val
v.isSet = true
}
func (v NullableFpIntegration) IsSet() bool {
return v.isSet
}
func (v *NullableFpIntegration) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFpIntegration(val *FpIntegration) *NullableFpIntegration {
return &NullableFpIntegration{value: val, isSet: true}
}
func (v NullableFpIntegration) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableFpIntegration) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}