This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_consent_revoc_notif.go
143 lines (116 loc) · 4.04 KB
/
model_consent_revoc_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
/*
EES UE Location Information_API
API for EES UE Location Information. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.0-alpha.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Eees_UELocation
import (
"encoding/json"
)
// checks if the ConsentRevocNotif type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ConsentRevocNotif{}
// ConsentRevocNotif Represents the user consent revocation information conveyed in a user consent revocation notification.
type ConsentRevocNotif struct {
// Contains the identifier of the subscription to which the notification is related.
SubscriptionId string `json:"subscriptionId"`
ConsentsRevoked []ConsentRevoked `json:"consentsRevoked"`
}
// NewConsentRevocNotif instantiates a new ConsentRevocNotif 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 NewConsentRevocNotif(subscriptionId string, consentsRevoked []ConsentRevoked) *ConsentRevocNotif {
this := ConsentRevocNotif{}
this.SubscriptionId = subscriptionId
this.ConsentsRevoked = consentsRevoked
return &this
}
// NewConsentRevocNotifWithDefaults instantiates a new ConsentRevocNotif 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 NewConsentRevocNotifWithDefaults() *ConsentRevocNotif {
this := ConsentRevocNotif{}
return &this
}
// GetSubscriptionId returns the SubscriptionId field value
func (o *ConsentRevocNotif) GetSubscriptionId() string {
if o == nil {
var ret string
return ret
}
return o.SubscriptionId
}
// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value
// and a boolean to check if the value has been set.
func (o *ConsentRevocNotif) GetSubscriptionIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SubscriptionId, true
}
// SetSubscriptionId sets field value
func (o *ConsentRevocNotif) SetSubscriptionId(v string) {
o.SubscriptionId = v
}
// GetConsentsRevoked returns the ConsentsRevoked field value
func (o *ConsentRevocNotif) GetConsentsRevoked() []ConsentRevoked {
if o == nil {
var ret []ConsentRevoked
return ret
}
return o.ConsentsRevoked
}
// GetConsentsRevokedOk returns a tuple with the ConsentsRevoked field value
// and a boolean to check if the value has been set.
func (o *ConsentRevocNotif) GetConsentsRevokedOk() ([]ConsentRevoked, bool) {
if o == nil {
return nil, false
}
return o.ConsentsRevoked, true
}
// SetConsentsRevoked sets field value
func (o *ConsentRevocNotif) SetConsentsRevoked(v []ConsentRevoked) {
o.ConsentsRevoked = v
}
func (o ConsentRevocNotif) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ConsentRevocNotif) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["subscriptionId"] = o.SubscriptionId
toSerialize["consentsRevoked"] = o.ConsentsRevoked
return toSerialize, nil
}
type NullableConsentRevocNotif struct {
value *ConsentRevocNotif
isSet bool
}
func (v NullableConsentRevocNotif) Get() *ConsentRevocNotif {
return v.value
}
func (v *NullableConsentRevocNotif) Set(val *ConsentRevocNotif) {
v.value = val
v.isSet = true
}
func (v NullableConsentRevocNotif) IsSet() bool {
return v.isSet
}
func (v *NullableConsentRevocNotif) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableConsentRevocNotif(val *ConsentRevocNotif) *NullableConsentRevocNotif {
return &NullableConsentRevocNotif{value: val, isSet: true}
}
func (v NullableConsentRevocNotif) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableConsentRevocNotif) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}