This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_ip_end_point_1.go
268 lines (224 loc) · 6.97 KB
/
model_ip_end_point_1.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
/*
3GPP 5GC NRM
OAS 3.0.1 specification of the 5GC NRM © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 18.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_5GcNrm
import (
"encoding/json"
)
// checks if the IpEndPoint1 type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &IpEndPoint1{}
// IpEndPoint1 struct for IpEndPoint1
type IpEndPoint1 struct {
Ipv4Address *string `json:"ipv4Address,omitempty"`
Ipv6Address *Ipv6Addr `json:"ipv6Address,omitempty"`
Ipv6Prefix *Ipv6Prefix `json:"ipv6Prefix,omitempty"`
Transport *TransportProtocol `json:"transport,omitempty"`
Port *int32 `json:"port,omitempty"`
}
// NewIpEndPoint1 instantiates a new IpEndPoint1 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 NewIpEndPoint1() *IpEndPoint1 {
this := IpEndPoint1{}
return &this
}
// NewIpEndPoint1WithDefaults instantiates a new IpEndPoint1 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 NewIpEndPoint1WithDefaults() *IpEndPoint1 {
this := IpEndPoint1{}
return &this
}
// GetIpv4Address returns the Ipv4Address field value if set, zero value otherwise.
func (o *IpEndPoint1) GetIpv4Address() string {
if o == nil || IsNil(o.Ipv4Address) {
var ret string
return ret
}
return *o.Ipv4Address
}
// GetIpv4AddressOk returns a tuple with the Ipv4Address field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpEndPoint1) GetIpv4AddressOk() (*string, bool) {
if o == nil || IsNil(o.Ipv4Address) {
return nil, false
}
return o.Ipv4Address, true
}
// HasIpv4Address returns a boolean if a field has been set.
func (o *IpEndPoint1) HasIpv4Address() bool {
if o != nil && !IsNil(o.Ipv4Address) {
return true
}
return false
}
// SetIpv4Address gets a reference to the given string and assigns it to the Ipv4Address field.
func (o *IpEndPoint1) SetIpv4Address(v string) {
o.Ipv4Address = &v
}
// GetIpv6Address returns the Ipv6Address field value if set, zero value otherwise.
func (o *IpEndPoint1) GetIpv6Address() Ipv6Addr {
if o == nil || IsNil(o.Ipv6Address) {
var ret Ipv6Addr
return ret
}
return *o.Ipv6Address
}
// GetIpv6AddressOk returns a tuple with the Ipv6Address field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpEndPoint1) GetIpv6AddressOk() (*Ipv6Addr, bool) {
if o == nil || IsNil(o.Ipv6Address) {
return nil, false
}
return o.Ipv6Address, true
}
// HasIpv6Address returns a boolean if a field has been set.
func (o *IpEndPoint1) HasIpv6Address() bool {
if o != nil && !IsNil(o.Ipv6Address) {
return true
}
return false
}
// SetIpv6Address gets a reference to the given Ipv6Addr and assigns it to the Ipv6Address field.
func (o *IpEndPoint1) SetIpv6Address(v Ipv6Addr) {
o.Ipv6Address = &v
}
// GetIpv6Prefix returns the Ipv6Prefix field value if set, zero value otherwise.
func (o *IpEndPoint1) GetIpv6Prefix() Ipv6Prefix {
if o == nil || IsNil(o.Ipv6Prefix) {
var ret Ipv6Prefix
return ret
}
return *o.Ipv6Prefix
}
// GetIpv6PrefixOk returns a tuple with the Ipv6Prefix field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpEndPoint1) GetIpv6PrefixOk() (*Ipv6Prefix, bool) {
if o == nil || IsNil(o.Ipv6Prefix) {
return nil, false
}
return o.Ipv6Prefix, true
}
// HasIpv6Prefix returns a boolean if a field has been set.
func (o *IpEndPoint1) HasIpv6Prefix() bool {
if o != nil && !IsNil(o.Ipv6Prefix) {
return true
}
return false
}
// SetIpv6Prefix gets a reference to the given Ipv6Prefix and assigns it to the Ipv6Prefix field.
func (o *IpEndPoint1) SetIpv6Prefix(v Ipv6Prefix) {
o.Ipv6Prefix = &v
}
// GetTransport returns the Transport field value if set, zero value otherwise.
func (o *IpEndPoint1) GetTransport() TransportProtocol {
if o == nil || IsNil(o.Transport) {
var ret TransportProtocol
return ret
}
return *o.Transport
}
// GetTransportOk returns a tuple with the Transport field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpEndPoint1) GetTransportOk() (*TransportProtocol, bool) {
if o == nil || IsNil(o.Transport) {
return nil, false
}
return o.Transport, true
}
// HasTransport returns a boolean if a field has been set.
func (o *IpEndPoint1) HasTransport() bool {
if o != nil && !IsNil(o.Transport) {
return true
}
return false
}
// SetTransport gets a reference to the given TransportProtocol and assigns it to the Transport field.
func (o *IpEndPoint1) SetTransport(v TransportProtocol) {
o.Transport = &v
}
// GetPort returns the Port field value if set, zero value otherwise.
func (o *IpEndPoint1) GetPort() int32 {
if o == nil || IsNil(o.Port) {
var ret int32
return ret
}
return *o.Port
}
// GetPortOk returns a tuple with the Port field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpEndPoint1) GetPortOk() (*int32, bool) {
if o == nil || IsNil(o.Port) {
return nil, false
}
return o.Port, true
}
// HasPort returns a boolean if a field has been set.
func (o *IpEndPoint1) HasPort() bool {
if o != nil && !IsNil(o.Port) {
return true
}
return false
}
// SetPort gets a reference to the given int32 and assigns it to the Port field.
func (o *IpEndPoint1) SetPort(v int32) {
o.Port = &v
}
func (o IpEndPoint1) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o IpEndPoint1) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Ipv4Address) {
toSerialize["ipv4Address"] = o.Ipv4Address
}
if !IsNil(o.Ipv6Address) {
toSerialize["ipv6Address"] = o.Ipv6Address
}
if !IsNil(o.Ipv6Prefix) {
toSerialize["ipv6Prefix"] = o.Ipv6Prefix
}
if !IsNil(o.Transport) {
toSerialize["transport"] = o.Transport
}
if !IsNil(o.Port) {
toSerialize["port"] = o.Port
}
return toSerialize, nil
}
type NullableIpEndPoint1 struct {
value *IpEndPoint1
isSet bool
}
func (v NullableIpEndPoint1) Get() *IpEndPoint1 {
return v.value
}
func (v *NullableIpEndPoint1) Set(val *IpEndPoint1) {
v.value = val
v.isSet = true
}
func (v NullableIpEndPoint1) IsSet() bool {
return v.isSet
}
func (v *NullableIpEndPoint1) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIpEndPoint1(val *IpEndPoint1) *NullableIpEndPoint1 {
return &NullableIpEndPoint1{value: val, isSet: true}
}
func (v NullableIpEndPoint1) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIpEndPoint1) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}