-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_splunk_log_forwarding_config.go
332 lines (280 loc) · 9.81 KB
/
model_splunk_log_forwarding_config.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
/*
* Akeyless API
*
* The purpose of this application is to provide access to Akeyless API.
*
* API version: 2.0
* Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package akeyless
import (
"encoding/json"
)
// SplunkLogForwardingConfig struct for SplunkLogForwardingConfig
type SplunkLogForwardingConfig struct {
SplunkEnableTls *bool `json:"splunk_enable_tls,omitempty"`
SplunkIndex *string `json:"splunk_index,omitempty"`
SplunkSource *string `json:"splunk_source,omitempty"`
SplunkSourcetype *string `json:"splunk_sourcetype,omitempty"`
SplunkTlsCertificate *string `json:"splunk_tls_certificate,omitempty"`
SplunkToken *string `json:"splunk_token,omitempty"`
SplunkUrl *string `json:"splunk_url,omitempty"`
}
// NewSplunkLogForwardingConfig instantiates a new SplunkLogForwardingConfig 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 NewSplunkLogForwardingConfig() *SplunkLogForwardingConfig {
this := SplunkLogForwardingConfig{}
return &this
}
// NewSplunkLogForwardingConfigWithDefaults instantiates a new SplunkLogForwardingConfig 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 NewSplunkLogForwardingConfigWithDefaults() *SplunkLogForwardingConfig {
this := SplunkLogForwardingConfig{}
return &this
}
// GetSplunkEnableTls returns the SplunkEnableTls field value if set, zero value otherwise.
func (o *SplunkLogForwardingConfig) GetSplunkEnableTls() bool {
if o == nil || o.SplunkEnableTls == nil {
var ret bool
return ret
}
return *o.SplunkEnableTls
}
// GetSplunkEnableTlsOk returns a tuple with the SplunkEnableTls field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SplunkLogForwardingConfig) GetSplunkEnableTlsOk() (*bool, bool) {
if o == nil || o.SplunkEnableTls == nil {
return nil, false
}
return o.SplunkEnableTls, true
}
// HasSplunkEnableTls returns a boolean if a field has been set.
func (o *SplunkLogForwardingConfig) HasSplunkEnableTls() bool {
if o != nil && o.SplunkEnableTls != nil {
return true
}
return false
}
// SetSplunkEnableTls gets a reference to the given bool and assigns it to the SplunkEnableTls field.
func (o *SplunkLogForwardingConfig) SetSplunkEnableTls(v bool) {
o.SplunkEnableTls = &v
}
// GetSplunkIndex returns the SplunkIndex field value if set, zero value otherwise.
func (o *SplunkLogForwardingConfig) GetSplunkIndex() string {
if o == nil || o.SplunkIndex == nil {
var ret string
return ret
}
return *o.SplunkIndex
}
// GetSplunkIndexOk returns a tuple with the SplunkIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SplunkLogForwardingConfig) GetSplunkIndexOk() (*string, bool) {
if o == nil || o.SplunkIndex == nil {
return nil, false
}
return o.SplunkIndex, true
}
// HasSplunkIndex returns a boolean if a field has been set.
func (o *SplunkLogForwardingConfig) HasSplunkIndex() bool {
if o != nil && o.SplunkIndex != nil {
return true
}
return false
}
// SetSplunkIndex gets a reference to the given string and assigns it to the SplunkIndex field.
func (o *SplunkLogForwardingConfig) SetSplunkIndex(v string) {
o.SplunkIndex = &v
}
// GetSplunkSource returns the SplunkSource field value if set, zero value otherwise.
func (o *SplunkLogForwardingConfig) GetSplunkSource() string {
if o == nil || o.SplunkSource == nil {
var ret string
return ret
}
return *o.SplunkSource
}
// GetSplunkSourceOk returns a tuple with the SplunkSource field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SplunkLogForwardingConfig) GetSplunkSourceOk() (*string, bool) {
if o == nil || o.SplunkSource == nil {
return nil, false
}
return o.SplunkSource, true
}
// HasSplunkSource returns a boolean if a field has been set.
func (o *SplunkLogForwardingConfig) HasSplunkSource() bool {
if o != nil && o.SplunkSource != nil {
return true
}
return false
}
// SetSplunkSource gets a reference to the given string and assigns it to the SplunkSource field.
func (o *SplunkLogForwardingConfig) SetSplunkSource(v string) {
o.SplunkSource = &v
}
// GetSplunkSourcetype returns the SplunkSourcetype field value if set, zero value otherwise.
func (o *SplunkLogForwardingConfig) GetSplunkSourcetype() string {
if o == nil || o.SplunkSourcetype == nil {
var ret string
return ret
}
return *o.SplunkSourcetype
}
// GetSplunkSourcetypeOk returns a tuple with the SplunkSourcetype field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SplunkLogForwardingConfig) GetSplunkSourcetypeOk() (*string, bool) {
if o == nil || o.SplunkSourcetype == nil {
return nil, false
}
return o.SplunkSourcetype, true
}
// HasSplunkSourcetype returns a boolean if a field has been set.
func (o *SplunkLogForwardingConfig) HasSplunkSourcetype() bool {
if o != nil && o.SplunkSourcetype != nil {
return true
}
return false
}
// SetSplunkSourcetype gets a reference to the given string and assigns it to the SplunkSourcetype field.
func (o *SplunkLogForwardingConfig) SetSplunkSourcetype(v string) {
o.SplunkSourcetype = &v
}
// GetSplunkTlsCertificate returns the SplunkTlsCertificate field value if set, zero value otherwise.
func (o *SplunkLogForwardingConfig) GetSplunkTlsCertificate() string {
if o == nil || o.SplunkTlsCertificate == nil {
var ret string
return ret
}
return *o.SplunkTlsCertificate
}
// GetSplunkTlsCertificateOk returns a tuple with the SplunkTlsCertificate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SplunkLogForwardingConfig) GetSplunkTlsCertificateOk() (*string, bool) {
if o == nil || o.SplunkTlsCertificate == nil {
return nil, false
}
return o.SplunkTlsCertificate, true
}
// HasSplunkTlsCertificate returns a boolean if a field has been set.
func (o *SplunkLogForwardingConfig) HasSplunkTlsCertificate() bool {
if o != nil && o.SplunkTlsCertificate != nil {
return true
}
return false
}
// SetSplunkTlsCertificate gets a reference to the given string and assigns it to the SplunkTlsCertificate field.
func (o *SplunkLogForwardingConfig) SetSplunkTlsCertificate(v string) {
o.SplunkTlsCertificate = &v
}
// GetSplunkToken returns the SplunkToken field value if set, zero value otherwise.
func (o *SplunkLogForwardingConfig) GetSplunkToken() string {
if o == nil || o.SplunkToken == nil {
var ret string
return ret
}
return *o.SplunkToken
}
// GetSplunkTokenOk returns a tuple with the SplunkToken field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SplunkLogForwardingConfig) GetSplunkTokenOk() (*string, bool) {
if o == nil || o.SplunkToken == nil {
return nil, false
}
return o.SplunkToken, true
}
// HasSplunkToken returns a boolean if a field has been set.
func (o *SplunkLogForwardingConfig) HasSplunkToken() bool {
if o != nil && o.SplunkToken != nil {
return true
}
return false
}
// SetSplunkToken gets a reference to the given string and assigns it to the SplunkToken field.
func (o *SplunkLogForwardingConfig) SetSplunkToken(v string) {
o.SplunkToken = &v
}
// GetSplunkUrl returns the SplunkUrl field value if set, zero value otherwise.
func (o *SplunkLogForwardingConfig) GetSplunkUrl() string {
if o == nil || o.SplunkUrl == nil {
var ret string
return ret
}
return *o.SplunkUrl
}
// GetSplunkUrlOk returns a tuple with the SplunkUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SplunkLogForwardingConfig) GetSplunkUrlOk() (*string, bool) {
if o == nil || o.SplunkUrl == nil {
return nil, false
}
return o.SplunkUrl, true
}
// HasSplunkUrl returns a boolean if a field has been set.
func (o *SplunkLogForwardingConfig) HasSplunkUrl() bool {
if o != nil && o.SplunkUrl != nil {
return true
}
return false
}
// SetSplunkUrl gets a reference to the given string and assigns it to the SplunkUrl field.
func (o *SplunkLogForwardingConfig) SetSplunkUrl(v string) {
o.SplunkUrl = &v
}
func (o SplunkLogForwardingConfig) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.SplunkEnableTls != nil {
toSerialize["splunk_enable_tls"] = o.SplunkEnableTls
}
if o.SplunkIndex != nil {
toSerialize["splunk_index"] = o.SplunkIndex
}
if o.SplunkSource != nil {
toSerialize["splunk_source"] = o.SplunkSource
}
if o.SplunkSourcetype != nil {
toSerialize["splunk_sourcetype"] = o.SplunkSourcetype
}
if o.SplunkTlsCertificate != nil {
toSerialize["splunk_tls_certificate"] = o.SplunkTlsCertificate
}
if o.SplunkToken != nil {
toSerialize["splunk_token"] = o.SplunkToken
}
if o.SplunkUrl != nil {
toSerialize["splunk_url"] = o.SplunkUrl
}
return json.Marshal(toSerialize)
}
type NullableSplunkLogForwardingConfig struct {
value *SplunkLogForwardingConfig
isSet bool
}
func (v NullableSplunkLogForwardingConfig) Get() *SplunkLogForwardingConfig {
return v.value
}
func (v *NullableSplunkLogForwardingConfig) Set(val *SplunkLogForwardingConfig) {
v.value = val
v.isSet = true
}
func (v NullableSplunkLogForwardingConfig) IsSet() bool {
return v.isSet
}
func (v *NullableSplunkLogForwardingConfig) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSplunkLogForwardingConfig(val *SplunkLogForwardingConfig) *NullableSplunkLogForwardingConfig {
return &NullableSplunkLogForwardingConfig{value: val, isSet: true}
}
func (v NullableSplunkLogForwardingConfig) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSplunkLogForwardingConfig) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}