-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_modconfig_step_for_each.go
219 lines (181 loc) · 5.59 KB
/
model_modconfig_step_for_each.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
/*
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 ModconfigStepForEach type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ModconfigStepForEach{}
// ModconfigStepForEach struct for ModconfigStepForEach
type ModconfigStepForEach struct {
ForEachStep *bool `json:"for_each_step,omitempty"`
Key string `json:"key"`
Output *ModconfigOutput `json:"output,omitempty"`
TotalCount int32 `json:"total_count"`
}
func (o ModconfigStepForEach) GetResourceType() string {
return "ModconfigStepForEach"
}
// NewModconfigStepForEach instantiates a new ModconfigStepForEach 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 NewModconfigStepForEach(key string, totalCount int32) *ModconfigStepForEach {
this := ModconfigStepForEach{}
this.Key = key
this.TotalCount = totalCount
return &this
}
// NewModconfigStepForEachWithDefaults instantiates a new ModconfigStepForEach 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 NewModconfigStepForEachWithDefaults() *ModconfigStepForEach {
this := ModconfigStepForEach{}
return &this
}
// GetForEachStep returns the ForEachStep field value if set, zero value otherwise.
func (o *ModconfigStepForEach) GetForEachStep() bool {
if o == nil || IsNil(o.ForEachStep) {
var ret bool
return ret
}
return *o.ForEachStep
}
// GetForEachStepOk returns a tuple with the ForEachStep field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModconfigStepForEach) GetForEachStepOk() (*bool, bool) {
if o == nil || IsNil(o.ForEachStep) {
return nil, false
}
return o.ForEachStep, true
}
// HasForEachStep returns a boolean if a field has been set.
func (o *ModconfigStepForEach) HasForEachStep() bool {
if o != nil && !IsNil(o.ForEachStep) {
return true
}
return false
}
// SetForEachStep gets a reference to the given bool and assigns it to the ForEachStep field.
func (o *ModconfigStepForEach) SetForEachStep(v bool) {
o.ForEachStep = &v
}
// GetKey returns the Key field value
func (o *ModconfigStepForEach) GetKey() string {
if o == nil {
var ret string
return ret
}
return o.Key
}
// GetKeyOk returns a tuple with the Key field value
// and a boolean to check if the value has been set.
func (o *ModconfigStepForEach) GetKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Key, true
}
// SetKey sets field value
func (o *ModconfigStepForEach) SetKey(v string) {
o.Key = v
}
// GetOutput returns the Output field value if set, zero value otherwise.
func (o *ModconfigStepForEach) GetOutput() ModconfigOutput {
if o == nil || IsNil(o.Output) {
var ret ModconfigOutput
return ret
}
return *o.Output
}
// GetOutputOk returns a tuple with the Output field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModconfigStepForEach) GetOutputOk() (*ModconfigOutput, bool) {
if o == nil || IsNil(o.Output) {
return nil, false
}
return o.Output, true
}
// HasOutput returns a boolean if a field has been set.
func (o *ModconfigStepForEach) HasOutput() bool {
if o != nil && !IsNil(o.Output) {
return true
}
return false
}
// SetOutput gets a reference to the given ModconfigOutput and assigns it to the Output field.
func (o *ModconfigStepForEach) SetOutput(v ModconfigOutput) {
o.Output = &v
}
// GetTotalCount returns the TotalCount field value
func (o *ModconfigStepForEach) GetTotalCount() int32 {
if o == nil {
var ret int32
return ret
}
return o.TotalCount
}
// GetTotalCountOk returns a tuple with the TotalCount field value
// and a boolean to check if the value has been set.
func (o *ModconfigStepForEach) GetTotalCountOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.TotalCount, true
}
// SetTotalCount sets field value
func (o *ModconfigStepForEach) SetTotalCount(v int32) {
o.TotalCount = v
}
func (o ModconfigStepForEach) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ModconfigStepForEach) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ForEachStep) {
toSerialize["for_each_step"] = o.ForEachStep
}
toSerialize["key"] = o.Key
if !IsNil(o.Output) {
toSerialize["output"] = o.Output
}
toSerialize["total_count"] = o.TotalCount
return toSerialize, nil
}
type NullableModconfigStepForEach struct {
value *ModconfigStepForEach
isSet bool
}
func (v NullableModconfigStepForEach) Get() *ModconfigStepForEach {
return v.value
}
func (v *NullableModconfigStepForEach) Set(val *ModconfigStepForEach) {
v.value = val
v.isSet = true
}
func (v NullableModconfigStepForEach) IsSet() bool {
return v.isSet
}
func (v *NullableModconfigStepForEach) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableModconfigStepForEach(val *ModconfigStepForEach) *NullableModconfigStepForEach {
return &NullableModconfigStepForEach{value: val, isSet: true}
}
func (v NullableModconfigStepForEach) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableModconfigStepForEach) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}