forked from Dynatrace/dynatrace-configuration-as-code-core
/
model_process_group_instance_from_relationships.go
196 lines (162 loc) · 6.64 KB
/
model_process_group_instance_from_relationships.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
/*
Dynatrace Environment API
Documentation of the Dynatrace Environment API v1. To read about use cases and examples, see [Dynatrace Documentation](https://dt-url.net/xc03k3c). Notes about compatibility: * Operations marked as early adopter or preview may be changed in non-compatible ways, although we try to avoid this. * We may add new enum constants without incrementing the API version; thus, clients need to handle unknown enum constants gracefully.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package environment
import (
"encoding/json"
)
// checks if the ProcessGroupInstanceFromRelationships type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ProcessGroupInstanceFromRelationships{}
// ProcessGroupInstanceFromRelationships struct for ProcessGroupInstanceFromRelationships
type ProcessGroupInstanceFromRelationships struct {
IsInstanceOf []string `json:"isInstanceOf,omitempty"`
IsNetworkClientOf []string `json:"isNetworkClientOf,omitempty"`
IsProcessOf []string `json:"isProcessOf,omitempty"`
}
// NewProcessGroupInstanceFromRelationships instantiates a new ProcessGroupInstanceFromRelationships 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 NewProcessGroupInstanceFromRelationships() *ProcessGroupInstanceFromRelationships {
this := ProcessGroupInstanceFromRelationships{}
return &this
}
// NewProcessGroupInstanceFromRelationshipsWithDefaults instantiates a new ProcessGroupInstanceFromRelationships 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 NewProcessGroupInstanceFromRelationshipsWithDefaults() *ProcessGroupInstanceFromRelationships {
this := ProcessGroupInstanceFromRelationships{}
return &this
}
// GetIsInstanceOf returns the IsInstanceOf field value if set, zero value otherwise.
func (o *ProcessGroupInstanceFromRelationships) GetIsInstanceOf() []string {
if o == nil || IsNil(o.IsInstanceOf) {
var ret []string
return ret
}
return o.IsInstanceOf
}
// GetIsInstanceOfOk returns a tuple with the IsInstanceOf field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroupInstanceFromRelationships) GetIsInstanceOfOk() ([]string, bool) {
if o == nil || IsNil(o.IsInstanceOf) {
return nil, false
}
return o.IsInstanceOf, true
}
// HasIsInstanceOf returns a boolean if a field has been set.
func (o *ProcessGroupInstanceFromRelationships) HasIsInstanceOf() bool {
if o != nil && !IsNil(o.IsInstanceOf) {
return true
}
return false
}
// SetIsInstanceOf gets a reference to the given []string and assigns it to the IsInstanceOf field.
func (o *ProcessGroupInstanceFromRelationships) SetIsInstanceOf(v []string) {
o.IsInstanceOf = v
}
// GetIsNetworkClientOf returns the IsNetworkClientOf field value if set, zero value otherwise.
func (o *ProcessGroupInstanceFromRelationships) GetIsNetworkClientOf() []string {
if o == nil || IsNil(o.IsNetworkClientOf) {
var ret []string
return ret
}
return o.IsNetworkClientOf
}
// GetIsNetworkClientOfOk returns a tuple with the IsNetworkClientOf field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroupInstanceFromRelationships) GetIsNetworkClientOfOk() ([]string, bool) {
if o == nil || IsNil(o.IsNetworkClientOf) {
return nil, false
}
return o.IsNetworkClientOf, true
}
// HasIsNetworkClientOf returns a boolean if a field has been set.
func (o *ProcessGroupInstanceFromRelationships) HasIsNetworkClientOf() bool {
if o != nil && !IsNil(o.IsNetworkClientOf) {
return true
}
return false
}
// SetIsNetworkClientOf gets a reference to the given []string and assigns it to the IsNetworkClientOf field.
func (o *ProcessGroupInstanceFromRelationships) SetIsNetworkClientOf(v []string) {
o.IsNetworkClientOf = v
}
// GetIsProcessOf returns the IsProcessOf field value if set, zero value otherwise.
func (o *ProcessGroupInstanceFromRelationships) GetIsProcessOf() []string {
if o == nil || IsNil(o.IsProcessOf) {
var ret []string
return ret
}
return o.IsProcessOf
}
// GetIsProcessOfOk returns a tuple with the IsProcessOf field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroupInstanceFromRelationships) GetIsProcessOfOk() ([]string, bool) {
if o == nil || IsNil(o.IsProcessOf) {
return nil, false
}
return o.IsProcessOf, true
}
// HasIsProcessOf returns a boolean if a field has been set.
func (o *ProcessGroupInstanceFromRelationships) HasIsProcessOf() bool {
if o != nil && !IsNil(o.IsProcessOf) {
return true
}
return false
}
// SetIsProcessOf gets a reference to the given []string and assigns it to the IsProcessOf field.
func (o *ProcessGroupInstanceFromRelationships) SetIsProcessOf(v []string) {
o.IsProcessOf = v
}
func (o ProcessGroupInstanceFromRelationships) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ProcessGroupInstanceFromRelationships) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.IsInstanceOf) {
toSerialize["isInstanceOf"] = o.IsInstanceOf
}
if !IsNil(o.IsNetworkClientOf) {
toSerialize["isNetworkClientOf"] = o.IsNetworkClientOf
}
if !IsNil(o.IsProcessOf) {
toSerialize["isProcessOf"] = o.IsProcessOf
}
return toSerialize, nil
}
type NullableProcessGroupInstanceFromRelationships struct {
value *ProcessGroupInstanceFromRelationships
isSet bool
}
func (v NullableProcessGroupInstanceFromRelationships) Get() *ProcessGroupInstanceFromRelationships {
return v.value
}
func (v *NullableProcessGroupInstanceFromRelationships) Set(val *ProcessGroupInstanceFromRelationships) {
v.value = val
v.isSet = true
}
func (v NullableProcessGroupInstanceFromRelationships) IsSet() bool {
return v.isSet
}
func (v *NullableProcessGroupInstanceFromRelationships) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableProcessGroupInstanceFromRelationships(val *ProcessGroupInstanceFromRelationships) *NullableProcessGroupInstanceFromRelationships {
return &NullableProcessGroupInstanceFromRelationships{value: val, isSet: true}
}
func (v NullableProcessGroupInstanceFromRelationships) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableProcessGroupInstanceFromRelationships) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}