代码拉取完成,页面将自动刷新
/*
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)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。