This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_mbs_sess_auth_data.go
182 lines (150 loc) · 5.51 KB
/
model_mbs_sess_auth_data.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
/*
3gpp-mbs-session
API for MBS Session Management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_MBSSession
import (
"encoding/json"
)
// checks if the MbsSessAuthData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MbsSessAuthData{}
// MbsSessAuthData Represents the MBS Session Authorization data.
type MbsSessAuthData struct {
// string containing a local identifier followed by \"@\" and a domain identifier. Both the local identifier and the domain identifier shall be encoded as strings that do not contain any \"@\" characters. See Clauses 4.6.2 and 4.6.3 of 3GPP TS 23.682 for more information.
ExtGroupId string `json:"extGroupId"`
// Represents the list of the GPSI(s) of the member UE(s) constituting the multicast MBS group. Any value of type can be used as a key of the map.
GpsisList *map[string]string `json:"gpsisList,omitempty"`
MbsSessionIdList NullableModel5MbsAuthorizationInfo `json:"mbsSessionIdList"`
}
// NewMbsSessAuthData instantiates a new MbsSessAuthData 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 NewMbsSessAuthData(extGroupId string, mbsSessionIdList NullableModel5MbsAuthorizationInfo) *MbsSessAuthData {
this := MbsSessAuthData{}
this.ExtGroupId = extGroupId
this.MbsSessionIdList = mbsSessionIdList
return &this
}
// NewMbsSessAuthDataWithDefaults instantiates a new MbsSessAuthData 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 NewMbsSessAuthDataWithDefaults() *MbsSessAuthData {
this := MbsSessAuthData{}
return &this
}
// GetExtGroupId returns the ExtGroupId field value
func (o *MbsSessAuthData) GetExtGroupId() string {
if o == nil {
var ret string
return ret
}
return o.ExtGroupId
}
// GetExtGroupIdOk returns a tuple with the ExtGroupId field value
// and a boolean to check if the value has been set.
func (o *MbsSessAuthData) GetExtGroupIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ExtGroupId, true
}
// SetExtGroupId sets field value
func (o *MbsSessAuthData) SetExtGroupId(v string) {
o.ExtGroupId = v
}
// GetGpsisList returns the GpsisList field value if set, zero value otherwise.
func (o *MbsSessAuthData) GetGpsisList() map[string]string {
if o == nil || IsNil(o.GpsisList) {
var ret map[string]string
return ret
}
return *o.GpsisList
}
// GetGpsisListOk returns a tuple with the GpsisList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSessAuthData) GetGpsisListOk() (*map[string]string, bool) {
if o == nil || IsNil(o.GpsisList) {
return nil, false
}
return o.GpsisList, true
}
// HasGpsisList returns a boolean if a field has been set.
func (o *MbsSessAuthData) HasGpsisList() bool {
if o != nil && !IsNil(o.GpsisList) {
return true
}
return false
}
// SetGpsisList gets a reference to the given map[string]string and assigns it to the GpsisList field.
func (o *MbsSessAuthData) SetGpsisList(v map[string]string) {
o.GpsisList = &v
}
// GetMbsSessionIdList returns the MbsSessionIdList field value
// If the value is explicit nil, the zero value for Model5MbsAuthorizationInfo will be returned
func (o *MbsSessAuthData) GetMbsSessionIdList() Model5MbsAuthorizationInfo {
if o == nil || o.MbsSessionIdList.Get() == nil {
var ret Model5MbsAuthorizationInfo
return ret
}
return *o.MbsSessionIdList.Get()
}
// GetMbsSessionIdListOk returns a tuple with the MbsSessionIdList field value
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MbsSessAuthData) GetMbsSessionIdListOk() (*Model5MbsAuthorizationInfo, bool) {
if o == nil {
return nil, false
}
return o.MbsSessionIdList.Get(), o.MbsSessionIdList.IsSet()
}
// SetMbsSessionIdList sets field value
func (o *MbsSessAuthData) SetMbsSessionIdList(v Model5MbsAuthorizationInfo) {
o.MbsSessionIdList.Set(&v)
}
func (o MbsSessAuthData) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MbsSessAuthData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["extGroupId"] = o.ExtGroupId
if !IsNil(o.GpsisList) {
toSerialize["gpsisList"] = o.GpsisList
}
toSerialize["mbsSessionIdList"] = o.MbsSessionIdList.Get()
return toSerialize, nil
}
type NullableMbsSessAuthData struct {
value *MbsSessAuthData
isSet bool
}
func (v NullableMbsSessAuthData) Get() *MbsSessAuthData {
return v.value
}
func (v *NullableMbsSessAuthData) Set(val *MbsSessAuthData) {
v.value = val
v.isSet = true
}
func (v NullableMbsSessAuthData) IsSet() bool {
return v.isSet
}
func (v *NullableMbsSessAuthData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMbsSessAuthData(val *MbsSessAuthData) *NullableMbsSessAuthData {
return &NullableMbsSessAuthData{value: val, isSet: true}
}
func (v NullableMbsSessAuthData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMbsSessAuthData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}