1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_mbs_session_event_report_list.go 5.62 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
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"
"fmt"
)
// checks if the MbsSessionEventReportList type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MbsSessionEventReportList{}
// MbsSessionEventReportList MBS session event report list
type MbsSessionEventReportList struct {
EventReportList []MbsSessionEventReport `json:"eventReportList"`
NotifyCorrelationId *string `json:"notifyCorrelationId,omitempty"`
}
type _MbsSessionEventReportList MbsSessionEventReportList
// NewMbsSessionEventReportList instantiates a new MbsSessionEventReportList 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 NewMbsSessionEventReportList(eventReportList []MbsSessionEventReport) *MbsSessionEventReportList {
this := MbsSessionEventReportList{}
this.EventReportList = eventReportList
return &this
}
// NewMbsSessionEventReportListWithDefaults instantiates a new MbsSessionEventReportList 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 NewMbsSessionEventReportListWithDefaults() *MbsSessionEventReportList {
this := MbsSessionEventReportList{}
return &this
}
// GetEventReportList returns the EventReportList field value
func (o *MbsSessionEventReportList) GetEventReportList() []MbsSessionEventReport {
if o == nil {
var ret []MbsSessionEventReport
return ret
}
return o.EventReportList
}
// GetEventReportListOk returns a tuple with the EventReportList field value
// and a boolean to check if the value has been set.
func (o *MbsSessionEventReportList) GetEventReportListOk() ([]MbsSessionEventReport, bool) {
if o == nil {
return nil, false
}
return o.EventReportList, true
}
// SetEventReportList sets field value
func (o *MbsSessionEventReportList) SetEventReportList(v []MbsSessionEventReport) {
o.EventReportList = v
}
// GetNotifyCorrelationId returns the NotifyCorrelationId field value if set, zero value otherwise.
func (o *MbsSessionEventReportList) GetNotifyCorrelationId() string {
if o == nil || IsNil(o.NotifyCorrelationId) {
var ret string
return ret
}
return *o.NotifyCorrelationId
}
// GetNotifyCorrelationIdOk returns a tuple with the NotifyCorrelationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSessionEventReportList) GetNotifyCorrelationIdOk() (*string, bool) {
if o == nil || IsNil(o.NotifyCorrelationId) {
return nil, false
}
return o.NotifyCorrelationId, true
}
// HasNotifyCorrelationId returns a boolean if a field has been set.
func (o *MbsSessionEventReportList) HasNotifyCorrelationId() bool {
if o != nil && !IsNil(o.NotifyCorrelationId) {
return true
}
return false
}
// SetNotifyCorrelationId gets a reference to the given string and assigns it to the NotifyCorrelationId field.
func (o *MbsSessionEventReportList) SetNotifyCorrelationId(v string) {
o.NotifyCorrelationId = &v
}
func (o MbsSessionEventReportList) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MbsSessionEventReportList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["eventReportList"] = o.EventReportList
if !IsNil(o.NotifyCorrelationId) {
toSerialize["notifyCorrelationId"] = o.NotifyCorrelationId
}
return toSerialize, nil
}
func (o *MbsSessionEventReportList) UnmarshalJSON(bytes []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"eventReportList",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(bytes, &allProperties)
if err != nil {
return err
}
for _, requiredProperty := range requiredProperties {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varMbsSessionEventReportList := _MbsSessionEventReportList{}
err = json.Unmarshal(bytes, &varMbsSessionEventReportList)
if err != nil {
return err
}
*o = MbsSessionEventReportList(varMbsSessionEventReportList)
return err
}
type NullableMbsSessionEventReportList struct {
value *MbsSessionEventReportList
isSet bool
}
func (v NullableMbsSessionEventReportList) Get() *MbsSessionEventReportList {
return v.value
}
func (v *NullableMbsSessionEventReportList) Set(val *MbsSessionEventReportList) {
v.value = val
v.isSet = true
}
func (v NullableMbsSessionEventReportList) IsSet() bool {
return v.isSet
}
func (v *NullableMbsSessionEventReportList) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMbsSessionEventReportList(val *MbsSessionEventReportList) *NullableMbsSessionEventReportList {
return &NullableMbsSessionEventReportList{value: val, isSet: true}
}
func (v NullableMbsSessionEventReportList) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMbsSessionEventReportList) 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

搜索帮助