This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_c2_comm_mode_switch_notif.go
206 lines (170 loc) · 6.02 KB
/
model_c2_comm_mode_switch_notif.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
/*
UAE Server C2 Operation Mode Management Service
UAE Server C2 Operation Mode Management Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_UAE_C2OperationModeManagement
import (
"encoding/json"
)
// checks if the C2CommModeSwitchNotif type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &C2CommModeSwitchNotif{}
// C2CommModeSwitchNotif Represents information on the targeted C2 Communication Mode switching for a UAS (i.e. pair of UAV and UAV-C).
type C2CommModeSwitchNotif struct {
// string providing an URI formatted according to IETF RFC 3986.
UaeServerId string `json:"uaeServerId"`
UasId UasId `json:"uasId"`
C2CommModeSwitchType C2CommModeSwitching `json:"c2CommModeSwitchType"`
SwitchingCause *C2SwitchingCause `json:"switchingCause,omitempty"`
}
// NewC2CommModeSwitchNotif instantiates a new C2CommModeSwitchNotif 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 NewC2CommModeSwitchNotif(uaeServerId string, uasId UasId, c2CommModeSwitchType C2CommModeSwitching) *C2CommModeSwitchNotif {
this := C2CommModeSwitchNotif{}
this.UaeServerId = uaeServerId
this.UasId = uasId
this.C2CommModeSwitchType = c2CommModeSwitchType
return &this
}
// NewC2CommModeSwitchNotifWithDefaults instantiates a new C2CommModeSwitchNotif 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 NewC2CommModeSwitchNotifWithDefaults() *C2CommModeSwitchNotif {
this := C2CommModeSwitchNotif{}
return &this
}
// GetUaeServerId returns the UaeServerId field value
func (o *C2CommModeSwitchNotif) GetUaeServerId() string {
if o == nil {
var ret string
return ret
}
return o.UaeServerId
}
// GetUaeServerIdOk returns a tuple with the UaeServerId field value
// and a boolean to check if the value has been set.
func (o *C2CommModeSwitchNotif) GetUaeServerIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.UaeServerId, true
}
// SetUaeServerId sets field value
func (o *C2CommModeSwitchNotif) SetUaeServerId(v string) {
o.UaeServerId = v
}
// GetUasId returns the UasId field value
func (o *C2CommModeSwitchNotif) GetUasId() UasId {
if o == nil {
var ret UasId
return ret
}
return o.UasId
}
// GetUasIdOk returns a tuple with the UasId field value
// and a boolean to check if the value has been set.
func (o *C2CommModeSwitchNotif) GetUasIdOk() (*UasId, bool) {
if o == nil {
return nil, false
}
return &o.UasId, true
}
// SetUasId sets field value
func (o *C2CommModeSwitchNotif) SetUasId(v UasId) {
o.UasId = v
}
// GetC2CommModeSwitchType returns the C2CommModeSwitchType field value
func (o *C2CommModeSwitchNotif) GetC2CommModeSwitchType() C2CommModeSwitching {
if o == nil {
var ret C2CommModeSwitching
return ret
}
return o.C2CommModeSwitchType
}
// GetC2CommModeSwitchTypeOk returns a tuple with the C2CommModeSwitchType field value
// and a boolean to check if the value has been set.
func (o *C2CommModeSwitchNotif) GetC2CommModeSwitchTypeOk() (*C2CommModeSwitching, bool) {
if o == nil {
return nil, false
}
return &o.C2CommModeSwitchType, true
}
// SetC2CommModeSwitchType sets field value
func (o *C2CommModeSwitchNotif) SetC2CommModeSwitchType(v C2CommModeSwitching) {
o.C2CommModeSwitchType = v
}
// GetSwitchingCause returns the SwitchingCause field value if set, zero value otherwise.
func (o *C2CommModeSwitchNotif) GetSwitchingCause() C2SwitchingCause {
if o == nil || IsNil(o.SwitchingCause) {
var ret C2SwitchingCause
return ret
}
return *o.SwitchingCause
}
// GetSwitchingCauseOk returns a tuple with the SwitchingCause field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *C2CommModeSwitchNotif) GetSwitchingCauseOk() (*C2SwitchingCause, bool) {
if o == nil || IsNil(o.SwitchingCause) {
return nil, false
}
return o.SwitchingCause, true
}
// HasSwitchingCause returns a boolean if a field has been set.
func (o *C2CommModeSwitchNotif) HasSwitchingCause() bool {
if o != nil && !IsNil(o.SwitchingCause) {
return true
}
return false
}
// SetSwitchingCause gets a reference to the given C2SwitchingCause and assigns it to the SwitchingCause field.
func (o *C2CommModeSwitchNotif) SetSwitchingCause(v C2SwitchingCause) {
o.SwitchingCause = &v
}
func (o C2CommModeSwitchNotif) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o C2CommModeSwitchNotif) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["uaeServerId"] = o.UaeServerId
toSerialize["uasId"] = o.UasId
toSerialize["c2CommModeSwitchType"] = o.C2CommModeSwitchType
if !IsNil(o.SwitchingCause) {
toSerialize["switchingCause"] = o.SwitchingCause
}
return toSerialize, nil
}
type NullableC2CommModeSwitchNotif struct {
value *C2CommModeSwitchNotif
isSet bool
}
func (v NullableC2CommModeSwitchNotif) Get() *C2CommModeSwitchNotif {
return v.value
}
func (v *NullableC2CommModeSwitchNotif) Set(val *C2CommModeSwitchNotif) {
v.value = val
v.isSet = true
}
func (v NullableC2CommModeSwitchNotif) IsSet() bool {
return v.isSet
}
func (v *NullableC2CommModeSwitchNotif) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableC2CommModeSwitchNotif(val *C2CommModeSwitchNotif) *NullableC2CommModeSwitchNotif {
return &NullableC2CommModeSwitchNotif{value: val, isSet: true}
}
func (v NullableC2CommModeSwitchNotif) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableC2CommModeSwitchNotif) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}