1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_mbs_service_info.go 7.27 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"
"fmt"
)
// checks if the MbsServiceInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MbsServiceInfo{}
// MbsServiceInfo Represent MBS Service Information.
type MbsServiceInfo struct {
MbsMediaComps map[string]MbsMediaComp `json:"mbsMediaComps"`
MbsSdfResPrio *ReservPriority `json:"mbsSdfResPrio,omitempty"`
// Contains an AF application identifier.
AfAppId *string `json:"afAppId,omitempty"`
// String representing a bit rate; the prefixes follow the standard symbols from The International System of Units, and represent x1000 multipliers, with the exception that prefix \"K\" is used to represent the standard symbol \"k\".
MbsSessionAmbr *string `json:"mbsSessionAmbr,omitempty"`
}
type _MbsServiceInfo MbsServiceInfo
// NewMbsServiceInfo instantiates a new MbsServiceInfo 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 NewMbsServiceInfo(mbsMediaComps map[string]MbsMediaComp) *MbsServiceInfo {
this := MbsServiceInfo{}
this.MbsMediaComps = mbsMediaComps
return &this
}
// NewMbsServiceInfoWithDefaults instantiates a new MbsServiceInfo 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 NewMbsServiceInfoWithDefaults() *MbsServiceInfo {
this := MbsServiceInfo{}
return &this
}
// GetMbsMediaComps returns the MbsMediaComps field value
func (o *MbsServiceInfo) GetMbsMediaComps() map[string]MbsMediaComp {
if o == nil {
var ret map[string]MbsMediaComp
return ret
}
return o.MbsMediaComps
}
// GetMbsMediaCompsOk returns a tuple with the MbsMediaComps field value
// and a boolean to check if the value has been set.
func (o *MbsServiceInfo) GetMbsMediaCompsOk() (*map[string]MbsMediaComp, bool) {
if o == nil {
return nil, false
}
return &o.MbsMediaComps, true
}
// SetMbsMediaComps sets field value
func (o *MbsServiceInfo) SetMbsMediaComps(v map[string]MbsMediaComp) {
o.MbsMediaComps = v
}
// GetMbsSdfResPrio returns the MbsSdfResPrio field value if set, zero value otherwise.
func (o *MbsServiceInfo) GetMbsSdfResPrio() ReservPriority {
if o == nil || IsNil(o.MbsSdfResPrio) {
var ret ReservPriority
return ret
}
return *o.MbsSdfResPrio
}
// GetMbsSdfResPrioOk returns a tuple with the MbsSdfResPrio field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsServiceInfo) GetMbsSdfResPrioOk() (*ReservPriority, bool) {
if o == nil || IsNil(o.MbsSdfResPrio) {
return nil, false
}
return o.MbsSdfResPrio, true
}
// HasMbsSdfResPrio returns a boolean if a field has been set.
func (o *MbsServiceInfo) HasMbsSdfResPrio() bool {
if o != nil && !IsNil(o.MbsSdfResPrio) {
return true
}
return false
}
// SetMbsSdfResPrio gets a reference to the given ReservPriority and assigns it to the MbsSdfResPrio field.
func (o *MbsServiceInfo) SetMbsSdfResPrio(v ReservPriority) {
o.MbsSdfResPrio = &v
}
// GetAfAppId returns the AfAppId field value if set, zero value otherwise.
func (o *MbsServiceInfo) GetAfAppId() string {
if o == nil || IsNil(o.AfAppId) {
var ret string
return ret
}
return *o.AfAppId
}
// GetAfAppIdOk returns a tuple with the AfAppId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsServiceInfo) GetAfAppIdOk() (*string, bool) {
if o == nil || IsNil(o.AfAppId) {
return nil, false
}
return o.AfAppId, true
}
// HasAfAppId returns a boolean if a field has been set.
func (o *MbsServiceInfo) HasAfAppId() bool {
if o != nil && !IsNil(o.AfAppId) {
return true
}
return false
}
// SetAfAppId gets a reference to the given string and assigns it to the AfAppId field.
func (o *MbsServiceInfo) SetAfAppId(v string) {
o.AfAppId = &v
}
// GetMbsSessionAmbr returns the MbsSessionAmbr field value if set, zero value otherwise.
func (o *MbsServiceInfo) GetMbsSessionAmbr() string {
if o == nil || IsNil(o.MbsSessionAmbr) {
var ret string
return ret
}
return *o.MbsSessionAmbr
}
// GetMbsSessionAmbrOk returns a tuple with the MbsSessionAmbr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsServiceInfo) GetMbsSessionAmbrOk() (*string, bool) {
if o == nil || IsNil(o.MbsSessionAmbr) {
return nil, false
}
return o.MbsSessionAmbr, true
}
// HasMbsSessionAmbr returns a boolean if a field has been set.
func (o *MbsServiceInfo) HasMbsSessionAmbr() bool {
if o != nil && !IsNil(o.MbsSessionAmbr) {
return true
}
return false
}
// SetMbsSessionAmbr gets a reference to the given string and assigns it to the MbsSessionAmbr field.
func (o *MbsServiceInfo) SetMbsSessionAmbr(v string) {
o.MbsSessionAmbr = &v
}
func (o MbsServiceInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MbsServiceInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["mbsMediaComps"] = o.MbsMediaComps
if !IsNil(o.MbsSdfResPrio) {
toSerialize["mbsSdfResPrio"] = o.MbsSdfResPrio
}
if !IsNil(o.AfAppId) {
toSerialize["afAppId"] = o.AfAppId
}
if !IsNil(o.MbsSessionAmbr) {
toSerialize["mbsSessionAmbr"] = o.MbsSessionAmbr
}
return toSerialize, nil
}
func (o *MbsServiceInfo) 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{
"mbsMediaComps",
}
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)
}
}
varMbsServiceInfo := _MbsServiceInfo{}
err = json.Unmarshal(bytes, &varMbsServiceInfo)
if err != nil {
return err
}
*o = MbsServiceInfo(varMbsServiceInfo)
return err
}
type NullableMbsServiceInfo struct {
value *MbsServiceInfo
isSet bool
}
func (v NullableMbsServiceInfo) Get() *MbsServiceInfo {
return v.value
}
func (v *NullableMbsServiceInfo) Set(val *MbsServiceInfo) {
v.value = val
v.isSet = true
}
func (v NullableMbsServiceInfo) IsSet() bool {
return v.isSet
}
func (v *NullableMbsServiceInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMbsServiceInfo(val *MbsServiceInfo) *NullableMbsServiceInfo {
return &NullableMbsServiceInfo{value: val, isSet: true}
}
func (v NullableMbsServiceInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMbsServiceInfo) 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

搜索帮助