This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_scheduled_communication_time_1.go
199 lines (165 loc) · 6.28 KB
/
model_scheduled_communication_time_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
/*
Nnwdaf_EventsSubscription
Nnwdaf_EventsSubscription Service API. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.3.0-alpha.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Nnwdaf_EventsSubscription
import (
"encoding/json"
)
// checks if the ScheduledCommunicationTime1 type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ScheduledCommunicationTime1{}
// ScheduledCommunicationTime1 Identifies time and day of the week when the UE is available for communication.
type ScheduledCommunicationTime1 struct {
// Identifies the day(s) of the week. If absent, it indicates every day of the week.
DaysOfWeek []int32 `json:"daysOfWeek,omitempty"`
// String with format partial-time or full-time as defined in clause 5.6 of IETF RFC 3339. Examples, 20:15:00, 20:15:00-08:00 (for 8 hours behind UTC).
TimeOfDayStart *string `json:"timeOfDayStart,omitempty"`
// String with format partial-time or full-time as defined in clause 5.6 of IETF RFC 3339. Examples, 20:15:00, 20:15:00-08:00 (for 8 hours behind UTC).
TimeOfDayEnd *string `json:"timeOfDayEnd,omitempty"`
}
// NewScheduledCommunicationTime1 instantiates a new ScheduledCommunicationTime1 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 NewScheduledCommunicationTime1() *ScheduledCommunicationTime1 {
this := ScheduledCommunicationTime1{}
return &this
}
// NewScheduledCommunicationTime1WithDefaults instantiates a new ScheduledCommunicationTime1 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 NewScheduledCommunicationTime1WithDefaults() *ScheduledCommunicationTime1 {
this := ScheduledCommunicationTime1{}
return &this
}
// GetDaysOfWeek returns the DaysOfWeek field value if set, zero value otherwise.
func (o *ScheduledCommunicationTime1) GetDaysOfWeek() []int32 {
if o == nil || IsNil(o.DaysOfWeek) {
var ret []int32
return ret
}
return o.DaysOfWeek
}
// GetDaysOfWeekOk returns a tuple with the DaysOfWeek field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ScheduledCommunicationTime1) GetDaysOfWeekOk() ([]int32, bool) {
if o == nil || IsNil(o.DaysOfWeek) {
return nil, false
}
return o.DaysOfWeek, true
}
// HasDaysOfWeek returns a boolean if a field has been set.
func (o *ScheduledCommunicationTime1) HasDaysOfWeek() bool {
if o != nil && !IsNil(o.DaysOfWeek) {
return true
}
return false
}
// SetDaysOfWeek gets a reference to the given []int32 and assigns it to the DaysOfWeek field.
func (o *ScheduledCommunicationTime1) SetDaysOfWeek(v []int32) {
o.DaysOfWeek = v
}
// GetTimeOfDayStart returns the TimeOfDayStart field value if set, zero value otherwise.
func (o *ScheduledCommunicationTime1) GetTimeOfDayStart() string {
if o == nil || IsNil(o.TimeOfDayStart) {
var ret string
return ret
}
return *o.TimeOfDayStart
}
// GetTimeOfDayStartOk returns a tuple with the TimeOfDayStart field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ScheduledCommunicationTime1) GetTimeOfDayStartOk() (*string, bool) {
if o == nil || IsNil(o.TimeOfDayStart) {
return nil, false
}
return o.TimeOfDayStart, true
}
// HasTimeOfDayStart returns a boolean if a field has been set.
func (o *ScheduledCommunicationTime1) HasTimeOfDayStart() bool {
if o != nil && !IsNil(o.TimeOfDayStart) {
return true
}
return false
}
// SetTimeOfDayStart gets a reference to the given string and assigns it to the TimeOfDayStart field.
func (o *ScheduledCommunicationTime1) SetTimeOfDayStart(v string) {
o.TimeOfDayStart = &v
}
// GetTimeOfDayEnd returns the TimeOfDayEnd field value if set, zero value otherwise.
func (o *ScheduledCommunicationTime1) GetTimeOfDayEnd() string {
if o == nil || IsNil(o.TimeOfDayEnd) {
var ret string
return ret
}
return *o.TimeOfDayEnd
}
// GetTimeOfDayEndOk returns a tuple with the TimeOfDayEnd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ScheduledCommunicationTime1) GetTimeOfDayEndOk() (*string, bool) {
if o == nil || IsNil(o.TimeOfDayEnd) {
return nil, false
}
return o.TimeOfDayEnd, true
}
// HasTimeOfDayEnd returns a boolean if a field has been set.
func (o *ScheduledCommunicationTime1) HasTimeOfDayEnd() bool {
if o != nil && !IsNil(o.TimeOfDayEnd) {
return true
}
return false
}
// SetTimeOfDayEnd gets a reference to the given string and assigns it to the TimeOfDayEnd field.
func (o *ScheduledCommunicationTime1) SetTimeOfDayEnd(v string) {
o.TimeOfDayEnd = &v
}
func (o ScheduledCommunicationTime1) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ScheduledCommunicationTime1) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.DaysOfWeek) {
toSerialize["daysOfWeek"] = o.DaysOfWeek
}
if !IsNil(o.TimeOfDayStart) {
toSerialize["timeOfDayStart"] = o.TimeOfDayStart
}
if !IsNil(o.TimeOfDayEnd) {
toSerialize["timeOfDayEnd"] = o.TimeOfDayEnd
}
return toSerialize, nil
}
type NullableScheduledCommunicationTime1 struct {
value *ScheduledCommunicationTime1
isSet bool
}
func (v NullableScheduledCommunicationTime1) Get() *ScheduledCommunicationTime1 {
return v.value
}
func (v *NullableScheduledCommunicationTime1) Set(val *ScheduledCommunicationTime1) {
v.value = val
v.isSet = true
}
func (v NullableScheduledCommunicationTime1) IsSet() bool {
return v.isSet
}
func (v *NullableScheduledCommunicationTime1) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableScheduledCommunicationTime1(val *ScheduledCommunicationTime1) *NullableScheduledCommunicationTime1 {
return &NullableScheduledCommunicationTime1{value: val, isSet: true}
}
func (v NullableScheduledCommunicationTime1) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableScheduledCommunicationTime1) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}