This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_ims_service_profile.go
187 lines (154 loc) · 5.6 KB
/
model_ims_service_profile.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
/*
Nhss_imsSDM
Nhss Subscriber Data Management Service for IMS. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.0-alpha.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Nhss_imsSDM
import (
"encoding/json"
)
// checks if the ImsServiceProfile type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ImsServiceProfile{}
// ImsServiceProfile IMS Service Profile of the UE, containing the list of Public Identifiers and optionally a list of IFCs
type ImsServiceProfile struct {
PublicIdentifierList []PublicIdentifier `json:"publicIdentifierList"`
Ifcs *Ifcs `json:"ifcs,omitempty"`
CnServiceAuthorization *CoreNetworkServiceAuthorization `json:"cnServiceAuthorization,omitempty"`
}
// NewImsServiceProfile instantiates a new ImsServiceProfile 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 NewImsServiceProfile(publicIdentifierList []PublicIdentifier) *ImsServiceProfile {
this := ImsServiceProfile{}
this.PublicIdentifierList = publicIdentifierList
return &this
}
// NewImsServiceProfileWithDefaults instantiates a new ImsServiceProfile 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 NewImsServiceProfileWithDefaults() *ImsServiceProfile {
this := ImsServiceProfile{}
return &this
}
// GetPublicIdentifierList returns the PublicIdentifierList field value
func (o *ImsServiceProfile) GetPublicIdentifierList() []PublicIdentifier {
if o == nil {
var ret []PublicIdentifier
return ret
}
return o.PublicIdentifierList
}
// GetPublicIdentifierListOk returns a tuple with the PublicIdentifierList field value
// and a boolean to check if the value has been set.
func (o *ImsServiceProfile) GetPublicIdentifierListOk() ([]PublicIdentifier, bool) {
if o == nil {
return nil, false
}
return o.PublicIdentifierList, true
}
// SetPublicIdentifierList sets field value
func (o *ImsServiceProfile) SetPublicIdentifierList(v []PublicIdentifier) {
o.PublicIdentifierList = v
}
// GetIfcs returns the Ifcs field value if set, zero value otherwise.
func (o *ImsServiceProfile) GetIfcs() Ifcs {
if o == nil || IsNil(o.Ifcs) {
var ret Ifcs
return ret
}
return *o.Ifcs
}
// GetIfcsOk returns a tuple with the Ifcs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ImsServiceProfile) GetIfcsOk() (*Ifcs, bool) {
if o == nil || IsNil(o.Ifcs) {
return nil, false
}
return o.Ifcs, true
}
// HasIfcs returns a boolean if a field has been set.
func (o *ImsServiceProfile) HasIfcs() bool {
if o != nil && !IsNil(o.Ifcs) {
return true
}
return false
}
// SetIfcs gets a reference to the given Ifcs and assigns it to the Ifcs field.
func (o *ImsServiceProfile) SetIfcs(v Ifcs) {
o.Ifcs = &v
}
// GetCnServiceAuthorization returns the CnServiceAuthorization field value if set, zero value otherwise.
func (o *ImsServiceProfile) GetCnServiceAuthorization() CoreNetworkServiceAuthorization {
if o == nil || IsNil(o.CnServiceAuthorization) {
var ret CoreNetworkServiceAuthorization
return ret
}
return *o.CnServiceAuthorization
}
// GetCnServiceAuthorizationOk returns a tuple with the CnServiceAuthorization field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ImsServiceProfile) GetCnServiceAuthorizationOk() (*CoreNetworkServiceAuthorization, bool) {
if o == nil || IsNil(o.CnServiceAuthorization) {
return nil, false
}
return o.CnServiceAuthorization, true
}
// HasCnServiceAuthorization returns a boolean if a field has been set.
func (o *ImsServiceProfile) HasCnServiceAuthorization() bool {
if o != nil && !IsNil(o.CnServiceAuthorization) {
return true
}
return false
}
// SetCnServiceAuthorization gets a reference to the given CoreNetworkServiceAuthorization and assigns it to the CnServiceAuthorization field.
func (o *ImsServiceProfile) SetCnServiceAuthorization(v CoreNetworkServiceAuthorization) {
o.CnServiceAuthorization = &v
}
func (o ImsServiceProfile) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ImsServiceProfile) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["publicIdentifierList"] = o.PublicIdentifierList
if !IsNil(o.Ifcs) {
toSerialize["ifcs"] = o.Ifcs
}
if !IsNil(o.CnServiceAuthorization) {
toSerialize["cnServiceAuthorization"] = o.CnServiceAuthorization
}
return toSerialize, nil
}
type NullableImsServiceProfile struct {
value *ImsServiceProfile
isSet bool
}
func (v NullableImsServiceProfile) Get() *ImsServiceProfile {
return v.value
}
func (v *NullableImsServiceProfile) Set(val *ImsServiceProfile) {
v.value = val
v.isSet = true
}
func (v NullableImsServiceProfile) IsSet() bool {
return v.isSet
}
func (v *NullableImsServiceProfile) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableImsServiceProfile(val *ImsServiceProfile) *NullableImsServiceProfile {
return &NullableImsServiceProfile{value: val, isSet: true}
}
func (v NullableImsServiceProfile) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableImsServiceProfile) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}