/
model_component_difference_dto.go
276 lines (230 loc) · 8.33 KB
/
model_component_difference_dto.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
/*
NiFi Rest API
The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
API version: 2.0.0
Contact: dev@nifi.apache.org
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package nifiapi
import (
"encoding/json"
)
// checks if the ComponentDifferenceDTO type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ComponentDifferenceDTO{}
// ComponentDifferenceDTO struct for ComponentDifferenceDTO
type ComponentDifferenceDTO struct {
// The type of component
ComponentType *string `json:"componentType,omitempty"`
// The ID of the component
ComponentId *string `json:"componentId,omitempty"`
// The name of the component
ComponentName *string `json:"componentName,omitempty"`
// The ID of the Process Group that the component belongs to
ProcessGroupId *string `json:"processGroupId,omitempty"`
// The differences in the component between the two flows
Differences []DifferenceDTO `json:"differences,omitempty"`
}
// NewComponentDifferenceDTO instantiates a new ComponentDifferenceDTO 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 NewComponentDifferenceDTO() *ComponentDifferenceDTO {
this := ComponentDifferenceDTO{}
return &this
}
// NewComponentDifferenceDTOWithDefaults instantiates a new ComponentDifferenceDTO 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 NewComponentDifferenceDTOWithDefaults() *ComponentDifferenceDTO {
this := ComponentDifferenceDTO{}
return &this
}
// GetComponentType returns the ComponentType field value if set, zero value otherwise.
func (o *ComponentDifferenceDTO) GetComponentType() string {
if o == nil || IsNil(o.ComponentType) {
var ret string
return ret
}
return *o.ComponentType
}
// GetComponentTypeOk returns a tuple with the ComponentType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComponentDifferenceDTO) GetComponentTypeOk() (*string, bool) {
if o == nil || IsNil(o.ComponentType) {
return nil, false
}
return o.ComponentType, true
}
// HasComponentType returns a boolean if a field has been set.
func (o *ComponentDifferenceDTO) HasComponentType() bool {
if o != nil && !IsNil(o.ComponentType) {
return true
}
return false
}
// SetComponentType gets a reference to the given string and assigns it to the ComponentType field.
func (o *ComponentDifferenceDTO) SetComponentType(v string) {
o.ComponentType = &v
}
// GetComponentId returns the ComponentId field value if set, zero value otherwise.
func (o *ComponentDifferenceDTO) GetComponentId() string {
if o == nil || IsNil(o.ComponentId) {
var ret string
return ret
}
return *o.ComponentId
}
// GetComponentIdOk returns a tuple with the ComponentId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComponentDifferenceDTO) GetComponentIdOk() (*string, bool) {
if o == nil || IsNil(o.ComponentId) {
return nil, false
}
return o.ComponentId, true
}
// HasComponentId returns a boolean if a field has been set.
func (o *ComponentDifferenceDTO) HasComponentId() bool {
if o != nil && !IsNil(o.ComponentId) {
return true
}
return false
}
// SetComponentId gets a reference to the given string and assigns it to the ComponentId field.
func (o *ComponentDifferenceDTO) SetComponentId(v string) {
o.ComponentId = &v
}
// GetComponentName returns the ComponentName field value if set, zero value otherwise.
func (o *ComponentDifferenceDTO) GetComponentName() string {
if o == nil || IsNil(o.ComponentName) {
var ret string
return ret
}
return *o.ComponentName
}
// GetComponentNameOk returns a tuple with the ComponentName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComponentDifferenceDTO) GetComponentNameOk() (*string, bool) {
if o == nil || IsNil(o.ComponentName) {
return nil, false
}
return o.ComponentName, true
}
// HasComponentName returns a boolean if a field has been set.
func (o *ComponentDifferenceDTO) HasComponentName() bool {
if o != nil && !IsNil(o.ComponentName) {
return true
}
return false
}
// SetComponentName gets a reference to the given string and assigns it to the ComponentName field.
func (o *ComponentDifferenceDTO) SetComponentName(v string) {
o.ComponentName = &v
}
// GetProcessGroupId returns the ProcessGroupId field value if set, zero value otherwise.
func (o *ComponentDifferenceDTO) GetProcessGroupId() string {
if o == nil || IsNil(o.ProcessGroupId) {
var ret string
return ret
}
return *o.ProcessGroupId
}
// GetProcessGroupIdOk returns a tuple with the ProcessGroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComponentDifferenceDTO) GetProcessGroupIdOk() (*string, bool) {
if o == nil || IsNil(o.ProcessGroupId) {
return nil, false
}
return o.ProcessGroupId, true
}
// HasProcessGroupId returns a boolean if a field has been set.
func (o *ComponentDifferenceDTO) HasProcessGroupId() bool {
if o != nil && !IsNil(o.ProcessGroupId) {
return true
}
return false
}
// SetProcessGroupId gets a reference to the given string and assigns it to the ProcessGroupId field.
func (o *ComponentDifferenceDTO) SetProcessGroupId(v string) {
o.ProcessGroupId = &v
}
// GetDifferences returns the Differences field value if set, zero value otherwise.
func (o *ComponentDifferenceDTO) GetDifferences() []DifferenceDTO {
if o == nil || IsNil(o.Differences) {
var ret []DifferenceDTO
return ret
}
return o.Differences
}
// GetDifferencesOk returns a tuple with the Differences field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComponentDifferenceDTO) GetDifferencesOk() ([]DifferenceDTO, bool) {
if o == nil || IsNil(o.Differences) {
return nil, false
}
return o.Differences, true
}
// HasDifferences returns a boolean if a field has been set.
func (o *ComponentDifferenceDTO) HasDifferences() bool {
if o != nil && !IsNil(o.Differences) {
return true
}
return false
}
// SetDifferences gets a reference to the given []DifferenceDTO and assigns it to the Differences field.
func (o *ComponentDifferenceDTO) SetDifferences(v []DifferenceDTO) {
o.Differences = v
}
func (o ComponentDifferenceDTO) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ComponentDifferenceDTO) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ComponentType) {
toSerialize["componentType"] = o.ComponentType
}
if !IsNil(o.ComponentId) {
toSerialize["componentId"] = o.ComponentId
}
if !IsNil(o.ComponentName) {
toSerialize["componentName"] = o.ComponentName
}
if !IsNil(o.ProcessGroupId) {
toSerialize["processGroupId"] = o.ProcessGroupId
}
if !IsNil(o.Differences) {
toSerialize["differences"] = o.Differences
}
return toSerialize, nil
}
type NullableComponentDifferenceDTO struct {
value *ComponentDifferenceDTO
isSet bool
}
func (v NullableComponentDifferenceDTO) Get() *ComponentDifferenceDTO {
return v.value
}
func (v *NullableComponentDifferenceDTO) Set(val *ComponentDifferenceDTO) {
v.value = val
v.isSet = true
}
func (v NullableComponentDifferenceDTO) IsSet() bool {
return v.isSet
}
func (v *NullableComponentDifferenceDTO) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableComponentDifferenceDTO(val *ComponentDifferenceDTO) *NullableComponentDifferenceDTO {
return &NullableComponentDifferenceDTO{value: val, isSet: true}
}
func (v NullableComponentDifferenceDTO) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableComponentDifferenceDTO) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}