1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_scheduled_communication_time.go 6.19 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
EES EAS Registration_API
API for EAS Registration. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Eees_EASRegistration
import (
"encoding/json"
)
// checks if the ScheduledCommunicationTime type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ScheduledCommunicationTime{}
// ScheduledCommunicationTime Represents an offered scheduled communication time.
type ScheduledCommunicationTime 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"`
}
// NewScheduledCommunicationTime instantiates a new ScheduledCommunicationTime 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 NewScheduledCommunicationTime() *ScheduledCommunicationTime {
this := ScheduledCommunicationTime{}
return &this
}
// NewScheduledCommunicationTimeWithDefaults instantiates a new ScheduledCommunicationTime 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 NewScheduledCommunicationTimeWithDefaults() *ScheduledCommunicationTime {
this := ScheduledCommunicationTime{}
return &this
}
// GetDaysOfWeek returns the DaysOfWeek field value if set, zero value otherwise.
func (o *ScheduledCommunicationTime) 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 *ScheduledCommunicationTime) 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 *ScheduledCommunicationTime) 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 *ScheduledCommunicationTime) SetDaysOfWeek(v []int32) {
o.DaysOfWeek = v
}
// GetTimeOfDayStart returns the TimeOfDayStart field value if set, zero value otherwise.
func (o *ScheduledCommunicationTime) 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 *ScheduledCommunicationTime) 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 *ScheduledCommunicationTime) 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 *ScheduledCommunicationTime) SetTimeOfDayStart(v string) {
o.TimeOfDayStart = &v
}
// GetTimeOfDayEnd returns the TimeOfDayEnd field value if set, zero value otherwise.
func (o *ScheduledCommunicationTime) 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 *ScheduledCommunicationTime) 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 *ScheduledCommunicationTime) 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 *ScheduledCommunicationTime) SetTimeOfDayEnd(v string) {
o.TimeOfDayEnd = &v
}
func (o ScheduledCommunicationTime) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ScheduledCommunicationTime) 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 NullableScheduledCommunicationTime struct {
value *ScheduledCommunicationTime
isSet bool
}
func (v NullableScheduledCommunicationTime) Get() *ScheduledCommunicationTime {
return v.value
}
func (v *NullableScheduledCommunicationTime) Set(val *ScheduledCommunicationTime) {
v.value = val
v.isSet = true
}
func (v NullableScheduledCommunicationTime) IsSet() bool {
return v.isSet
}
func (v *NullableScheduledCommunicationTime) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableScheduledCommunicationTime(val *ScheduledCommunicationTime) *NullableScheduledCommunicationTime {
return &NullableScheduledCommunicationTime{value: val, isSet: true}
}
func (v NullableScheduledCommunicationTime) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableScheduledCommunicationTime) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助