Ai
1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_mbs_user_data_ing_session.go 12.17 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
nmbsf-mbs-ud-ingest
API for MBS User Data Ingest Session Service. © 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_Nmbsf_MBSUserDataIngestSession
import (
"encoding/json"
"fmt"
)
// checks if the MBSUserDataIngSession type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MBSUserDataIngSession{}
// MBSUserDataIngSession Represents MBS User Data Ingest Session information.
type MBSUserDataIngSession struct {
MbsUserServId string `json:"mbsUserServId"`
// Represents 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"`
ActPeriods []TimeWindow `json:"actPeriods,omitempty"`
// Deprecated
MbsUserServAnmt *MBSUserServAnmt `json:"mbsUserServAnmt,omitempty"`
MbsUserServiceAnmt *UserServiceDescription `json:"mbsUserServiceAnmt,omitempty"`
// String providing an URI formatted according to RFC 3986.
MbsUserServiceAnmtUrl *string `json:"mbsUserServiceAnmtUrl,omitempty"`
// A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported.
SuppFeat *string `json:"suppFeat,omitempty"`
}
type _MBSUserDataIngSession MBSUserDataIngSession
// NewMBSUserDataIngSession instantiates a new MBSUserDataIngSession 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 NewMBSUserDataIngSession(mbsUserServId string, mbsDisSessInfos map[string]MBSDistributionSessionInfo) *MBSUserDataIngSession {
this := MBSUserDataIngSession{}
this.MbsUserServId = mbsUserServId
this.MbsDisSessInfos = mbsDisSessInfos
return &this
}
// NewMBSUserDataIngSessionWithDefaults instantiates a new MBSUserDataIngSession 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 NewMBSUserDataIngSessionWithDefaults() *MBSUserDataIngSession {
this := MBSUserDataIngSession{}
return &this
}
// GetMbsUserServId returns the MbsUserServId field value
func (o *MBSUserDataIngSession) GetMbsUserServId() string {
if o == nil {
var ret string
return ret
}
return o.MbsUserServId
}
// GetMbsUserServIdOk returns a tuple with the MbsUserServId field value
// and a boolean to check if the value has been set.
func (o *MBSUserDataIngSession) GetMbsUserServIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.MbsUserServId, true
}
// SetMbsUserServId sets field value
func (o *MBSUserDataIngSession) SetMbsUserServId(v string) {
o.MbsUserServId = v
}
// GetMbsDisSessInfos returns the MbsDisSessInfos field value
// If the value is explicit nil, the zero value for map[string]MBSDistributionSessionInfo will be returned
func (o *MBSUserDataIngSession) 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
// 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 *MBSUserDataIngSession) GetMbsDisSessInfosOk() (*map[string]MBSDistributionSessionInfo, bool) {
if o == nil || IsNil(o.MbsDisSessInfos) {
return nil, false
}
return &o.MbsDisSessInfos, true
}
// SetMbsDisSessInfos sets field value
func (o *MBSUserDataIngSession) SetMbsDisSessInfos(v map[string]MBSDistributionSessionInfo) {
o.MbsDisSessInfos = v
}
// GetActPeriods returns the ActPeriods field value if set, zero value otherwise.
func (o *MBSUserDataIngSession) 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 *MBSUserDataIngSession) 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 *MBSUserDataIngSession) 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 *MBSUserDataIngSession) SetActPeriods(v []TimeWindow) {
o.ActPeriods = v
}
// GetMbsUserServAnmt returns the MbsUserServAnmt field value if set, zero value otherwise.
// Deprecated
func (o *MBSUserDataIngSession) GetMbsUserServAnmt() MBSUserServAnmt {
if o == nil || IsNil(o.MbsUserServAnmt) {
var ret MBSUserServAnmt
return ret
}
return *o.MbsUserServAnmt
}
// GetMbsUserServAnmtOk returns a tuple with the MbsUserServAnmt field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *MBSUserDataIngSession) GetMbsUserServAnmtOk() (*MBSUserServAnmt, bool) {
if o == nil || IsNil(o.MbsUserServAnmt) {
return nil, false
}
return o.MbsUserServAnmt, true
}
// HasMbsUserServAnmt returns a boolean if a field has been set.
func (o *MBSUserDataIngSession) HasMbsUserServAnmt() bool {
if o != nil && !IsNil(o.MbsUserServAnmt) {
return true
}
return false
}
// SetMbsUserServAnmt gets a reference to the given MBSUserServAnmt and assigns it to the MbsUserServAnmt field.
// Deprecated
func (o *MBSUserDataIngSession) SetMbsUserServAnmt(v MBSUserServAnmt) {
o.MbsUserServAnmt = &v
}
// GetMbsUserServiceAnmt returns the MbsUserServiceAnmt field value if set, zero value otherwise.
func (o *MBSUserDataIngSession) GetMbsUserServiceAnmt() UserServiceDescription {
if o == nil || IsNil(o.MbsUserServiceAnmt) {
var ret UserServiceDescription
return ret
}
return *o.MbsUserServiceAnmt
}
// GetMbsUserServiceAnmtOk returns a tuple with the MbsUserServiceAnmt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MBSUserDataIngSession) GetMbsUserServiceAnmtOk() (*UserServiceDescription, bool) {
if o == nil || IsNil(o.MbsUserServiceAnmt) {
return nil, false
}
return o.MbsUserServiceAnmt, true
}
// HasMbsUserServiceAnmt returns a boolean if a field has been set.
func (o *MBSUserDataIngSession) HasMbsUserServiceAnmt() bool {
if o != nil && !IsNil(o.MbsUserServiceAnmt) {
return true
}
return false
}
// SetMbsUserServiceAnmt gets a reference to the given UserServiceDescription and assigns it to the MbsUserServiceAnmt field.
func (o *MBSUserDataIngSession) SetMbsUserServiceAnmt(v UserServiceDescription) {
o.MbsUserServiceAnmt = &v
}
// GetMbsUserServiceAnmtUrl returns the MbsUserServiceAnmtUrl field value if set, zero value otherwise.
func (o *MBSUserDataIngSession) GetMbsUserServiceAnmtUrl() string {
if o == nil || IsNil(o.MbsUserServiceAnmtUrl) {
var ret string
return ret
}
return *o.MbsUserServiceAnmtUrl
}
// GetMbsUserServiceAnmtUrlOk returns a tuple with the MbsUserServiceAnmtUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MBSUserDataIngSession) GetMbsUserServiceAnmtUrlOk() (*string, bool) {
if o == nil || IsNil(o.MbsUserServiceAnmtUrl) {
return nil, false
}
return o.MbsUserServiceAnmtUrl, true
}
// HasMbsUserServiceAnmtUrl returns a boolean if a field has been set.
func (o *MBSUserDataIngSession) HasMbsUserServiceAnmtUrl() bool {
if o != nil && !IsNil(o.MbsUserServiceAnmtUrl) {
return true
}
return false
}
// SetMbsUserServiceAnmtUrl gets a reference to the given string and assigns it to the MbsUserServiceAnmtUrl field.
func (o *MBSUserDataIngSession) SetMbsUserServiceAnmtUrl(v string) {
o.MbsUserServiceAnmtUrl = &v
}
// GetSuppFeat returns the SuppFeat field value if set, zero value otherwise.
func (o *MBSUserDataIngSession) GetSuppFeat() string {
if o == nil || IsNil(o.SuppFeat) {
var ret string
return ret
}
return *o.SuppFeat
}
// GetSuppFeatOk returns a tuple with the SuppFeat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MBSUserDataIngSession) GetSuppFeatOk() (*string, bool) {
if o == nil || IsNil(o.SuppFeat) {
return nil, false
}
return o.SuppFeat, true
}
// HasSuppFeat returns a boolean if a field has been set.
func (o *MBSUserDataIngSession) HasSuppFeat() bool {
if o != nil && !IsNil(o.SuppFeat) {
return true
}
return false
}
// SetSuppFeat gets a reference to the given string and assigns it to the SuppFeat field.
func (o *MBSUserDataIngSession) SetSuppFeat(v string) {
o.SuppFeat = &v
}
func (o MBSUserDataIngSession) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MBSUserDataIngSession) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["mbsUserServId"] = o.MbsUserServId
if o.MbsDisSessInfos != nil {
toSerialize["mbsDisSessInfos"] = o.MbsDisSessInfos
}
if !IsNil(o.ActPeriods) {
toSerialize["actPeriods"] = o.ActPeriods
}
if !IsNil(o.MbsUserServAnmt) {
toSerialize["mbsUserServAnmt"] = o.MbsUserServAnmt
}
if !IsNil(o.MbsUserServiceAnmt) {
toSerialize["mbsUserServiceAnmt"] = o.MbsUserServiceAnmt
}
if !IsNil(o.MbsUserServiceAnmtUrl) {
toSerialize["mbsUserServiceAnmtUrl"] = o.MbsUserServiceAnmtUrl
}
if !IsNil(o.SuppFeat) {
toSerialize["suppFeat"] = o.SuppFeat
}
return toSerialize, nil
}
func (o *MBSUserDataIngSession) 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{
"mbsUserServId",
"mbsDisSessInfos",
}
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)
}
}
varMBSUserDataIngSession := _MBSUserDataIngSession{}
err = json.Unmarshal(bytes, &varMBSUserDataIngSession)
if err != nil {
return err
}
*o = MBSUserDataIngSession(varMBSUserDataIngSession)
return err
}
type NullableMBSUserDataIngSession struct {
value *MBSUserDataIngSession
isSet bool
}
func (v NullableMBSUserDataIngSession) Get() *MBSUserDataIngSession {
return v.value
}
func (v *NullableMBSUserDataIngSession) Set(val *MBSUserDataIngSession) {
v.value = val
v.isSet = true
}
func (v NullableMBSUserDataIngSession) IsSet() bool {
return v.isSet
}
func (v *NullableMBSUserDataIngSession) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMBSUserDataIngSession(val *MBSUserDataIngSession) *NullableMBSUserDataIngSession {
return &NullableMBSUserDataIngSession{value: val, isSet: true}
}
func (v NullableMBSUserDataIngSession) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMBSUserDataIngSession) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助