1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_mbs_user_data_ing_session_patch.go 5.32 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
3gpp-mbs-ud-ingest
API for MBS User Data Ingest Session. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_MBSUserDataIngestSession
import (
"encoding/json"
)
// checks if the MBSUserDataIngSessionPatch type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MBSUserDataIngSessionPatch{}
// MBSUserDataIngSessionPatch Represents the requested modifications to an MBS User Data Ingest Session Status Subscription.
type MBSUserDataIngSessionPatch struct {
// Contains the requested modifications to one or more MBS Distribution Session(s) composing the MBS User Data Ingest Session. The key of the map shall be any unique string encoded value.
MbsDisSessInfos map[string]MBSDistributionSessionInfo `json:"mbsDisSessInfos,omitempty"`
ActPeriods []TimeWindow `json:"actPeriods,omitempty"`
}
// NewMBSUserDataIngSessionPatch instantiates a new MBSUserDataIngSessionPatch 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 NewMBSUserDataIngSessionPatch() *MBSUserDataIngSessionPatch {
this := MBSUserDataIngSessionPatch{}
return &this
}
// NewMBSUserDataIngSessionPatchWithDefaults instantiates a new MBSUserDataIngSessionPatch 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 NewMBSUserDataIngSessionPatchWithDefaults() *MBSUserDataIngSessionPatch {
this := MBSUserDataIngSessionPatch{}
return &this
}
// GetMbsDisSessInfos returns the MbsDisSessInfos field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MBSUserDataIngSessionPatch) GetMbsDisSessInfos() map[string]MBSDistributionSessionInfo {
if o == nil {
var ret map[string]MBSDistributionSessionInfo
return ret
}
return o.MbsDisSessInfos
}
// GetMbsDisSessInfosOk returns a tuple with the MbsDisSessInfos field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MBSUserDataIngSessionPatch) GetMbsDisSessInfosOk() (*map[string]MBSDistributionSessionInfo, bool) {
if o == nil || IsNil(o.MbsDisSessInfos) {
return nil, false
}
return &o.MbsDisSessInfos, true
}
// HasMbsDisSessInfos returns a boolean if a field has been set.
func (o *MBSUserDataIngSessionPatch) HasMbsDisSessInfos() bool {
if o != nil && IsNil(o.MbsDisSessInfos) {
return true
}
return false
}
// SetMbsDisSessInfos gets a reference to the given map[string]MBSDistributionSessionInfo and assigns it to the MbsDisSessInfos field.
func (o *MBSUserDataIngSessionPatch) SetMbsDisSessInfos(v map[string]MBSDistributionSessionInfo) {
o.MbsDisSessInfos = v
}
// GetActPeriods returns the ActPeriods field value if set, zero value otherwise.
func (o *MBSUserDataIngSessionPatch) GetActPeriods() []TimeWindow {
if o == nil || IsNil(o.ActPeriods) {
var ret []TimeWindow
return ret
}
return o.ActPeriods
}
// GetActPeriodsOk returns a tuple with the ActPeriods field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MBSUserDataIngSessionPatch) GetActPeriodsOk() ([]TimeWindow, bool) {
if o == nil || IsNil(o.ActPeriods) {
return nil, false
}
return o.ActPeriods, true
}
// HasActPeriods returns a boolean if a field has been set.
func (o *MBSUserDataIngSessionPatch) HasActPeriods() bool {
if o != nil && !IsNil(o.ActPeriods) {
return true
}
return false
}
// SetActPeriods gets a reference to the given []TimeWindow and assigns it to the ActPeriods field.
func (o *MBSUserDataIngSessionPatch) SetActPeriods(v []TimeWindow) {
o.ActPeriods = v
}
func (o MBSUserDataIngSessionPatch) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MBSUserDataIngSessionPatch) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.MbsDisSessInfos != nil {
toSerialize["mbsDisSessInfos"] = o.MbsDisSessInfos
}
if !IsNil(o.ActPeriods) {
toSerialize["actPeriods"] = o.ActPeriods
}
return toSerialize, nil
}
type NullableMBSUserDataIngSessionPatch struct {
value *MBSUserDataIngSessionPatch
isSet bool
}
func (v NullableMBSUserDataIngSessionPatch) Get() *MBSUserDataIngSessionPatch {
return v.value
}
func (v *NullableMBSUserDataIngSessionPatch) Set(val *MBSUserDataIngSessionPatch) {
v.value = val
v.isSet = true
}
func (v NullableMBSUserDataIngSessionPatch) IsSet() bool {
return v.isSet
}
func (v *NullableMBSUserDataIngSessionPatch) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMBSUserDataIngSessionPatch(val *MBSUserDataIngSessionPatch) *NullableMBSUserDataIngSessionPatch {
return &NullableMBSUserDataIngSessionPatch{value: val, isSet: true}
}
func (v NullableMBSUserDataIngSessionPatch) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMBSUserDataIngSessionPatch) 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

搜索帮助