代码拉取完成,页面将自动刷新
/*
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"
"time"
)
// checks if the MbsSession type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MbsSession{}
// MbsSession Individual MBS session
type MbsSession struct {
MbsSessionId NullableMbsSessionId `json:"mbsSessionId,omitempty"`
TmgiAllocReq *bool `json:"tmgiAllocReq,omitempty"`
Tmgi *Tmgi `json:"tmgi,omitempty"`
// string with format 'date-time' as defined in OpenAPI.
ExpirationTime *time.Time `json:"expirationTime,omitempty"`
ServiceType MbsServiceType `json:"serviceType"`
LocationDependent *bool `json:"locationDependent,omitempty"`
// Integer where the allowed values correspond to the value range of an unsigned 16-bit integer.
AreaSessionId *int32 `json:"areaSessionId,omitempty"`
IngressTunAddrReq *bool `json:"ingressTunAddrReq,omitempty"`
IngressTunAddr []TunnelAddress `json:"ingressTunAddr,omitempty"`
Ssm *Ssm `json:"ssm,omitempty"`
MbsServiceArea NullableMbsServiceArea `json:"mbsServiceArea,omitempty"`
ExtMbsServiceArea NullableExternalMbsServiceArea `json:"extMbsServiceArea,omitempty"`
// String representing a Data Network as defined in clause 9A of 3GPP TS 23.003; it shall contain either a DNN Network Identifier, or a full DNN with both the Network Identifier and Operator Identifier, as specified in 3GPP TS 23.003 clause 9.1.1 and 9.1.2. It shall be coded as string in which the labels are separated by dots (e.g. \"Label1.Label2.Label3\").
Dnn *string `json:"dnn,omitempty"`
Snssai *Snssai `json:"snssai,omitempty"`
// Deprecated
ActivationTime *time.Time `json:"activationTime,omitempty"`
// string with format 'date-time' as defined in OpenAPI.
StartTime *time.Time `json:"startTime,omitempty"`
// string with format 'date-time' as defined in OpenAPI.
TerminationTime *time.Time `json:"terminationTime,omitempty"`
MbsServInfo *MbsServiceInfo `json:"mbsServInfo,omitempty"`
MbsSessionSubsc *MbsSessionSubscription `json:"mbsSessionSubsc,omitempty"`
ActivityStatus *MbsSessionActivityStatus `json:"activityStatus,omitempty"`
AnyUeInd *bool `json:"anyUeInd,omitempty"`
MbsFsaIdList []string `json:"mbsFsaIdList,omitempty"`
}
type _MbsSession MbsSession
// NewMbsSession instantiates a new MbsSession 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 NewMbsSession(serviceType MbsServiceType) *MbsSession {
this := MbsSession{}
return &this
}
// NewMbsSessionWithDefaults instantiates a new MbsSession 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 NewMbsSessionWithDefaults() *MbsSession {
this := MbsSession{}
var tmgiAllocReq bool = false
this.TmgiAllocReq = &tmgiAllocReq
var locationDependent bool = false
this.LocationDependent = &locationDependent
var ingressTunAddrReq bool = false
this.IngressTunAddrReq = &ingressTunAddrReq
var anyUeInd bool = false
this.AnyUeInd = &anyUeInd
return &this
}
// GetMbsSessionId returns the MbsSessionId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MbsSession) GetMbsSessionId() MbsSessionId {
if o == nil || IsNil(o.MbsSessionId.Get()) {
var ret MbsSessionId
return ret
}
return *o.MbsSessionId.Get()
}
// GetMbsSessionIdOk returns a tuple with the MbsSessionId 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 *MbsSession) GetMbsSessionIdOk() (*MbsSessionId, bool) {
if o == nil {
return nil, false
}
return o.MbsSessionId.Get(), o.MbsSessionId.IsSet()
}
// HasMbsSessionId returns a boolean if a field has been set.
func (o *MbsSession) HasMbsSessionId() bool {
if o != nil && o.MbsSessionId.IsSet() {
return true
}
return false
}
// SetMbsSessionId gets a reference to the given NullableMbsSessionId and assigns it to the MbsSessionId field.
func (o *MbsSession) SetMbsSessionId(v MbsSessionId) {
o.MbsSessionId.Set(&v)
}
// SetMbsSessionIdNil sets the value for MbsSessionId to be an explicit nil
func (o *MbsSession) SetMbsSessionIdNil() {
o.MbsSessionId.Set(nil)
}
// UnsetMbsSessionId ensures that no value is present for MbsSessionId, not even an explicit nil
func (o *MbsSession) UnsetMbsSessionId() {
o.MbsSessionId.Unset()
}
// GetTmgiAllocReq returns the TmgiAllocReq field value if set, zero value otherwise.
func (o *MbsSession) GetTmgiAllocReq() bool {
if o == nil || IsNil(o.TmgiAllocReq) {
var ret bool
return ret
}
return *o.TmgiAllocReq
}
// GetTmgiAllocReqOk returns a tuple with the TmgiAllocReq field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetTmgiAllocReqOk() (*bool, bool) {
if o == nil || IsNil(o.TmgiAllocReq) {
return nil, false
}
return o.TmgiAllocReq, true
}
// HasTmgiAllocReq returns a boolean if a field has been set.
func (o *MbsSession) HasTmgiAllocReq() bool {
if o != nil && !IsNil(o.TmgiAllocReq) {
return true
}
return false
}
// SetTmgiAllocReq gets a reference to the given bool and assigns it to the TmgiAllocReq field.
func (o *MbsSession) SetTmgiAllocReq(v bool) {
o.TmgiAllocReq = &v
}
// GetTmgi returns the Tmgi field value if set, zero value otherwise.
func (o *MbsSession) GetTmgi() Tmgi {
if o == nil || IsNil(o.Tmgi) {
var ret Tmgi
return ret
}
return *o.Tmgi
}
// GetTmgiOk returns a tuple with the Tmgi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetTmgiOk() (*Tmgi, bool) {
if o == nil || IsNil(o.Tmgi) {
return nil, false
}
return o.Tmgi, true
}
// HasTmgi returns a boolean if a field has been set.
func (o *MbsSession) HasTmgi() bool {
if o != nil && !IsNil(o.Tmgi) {
return true
}
return false
}
// SetTmgi gets a reference to the given Tmgi and assigns it to the Tmgi field.
func (o *MbsSession) SetTmgi(v Tmgi) {
o.Tmgi = &v
}
// GetExpirationTime returns the ExpirationTime field value if set, zero value otherwise.
func (o *MbsSession) GetExpirationTime() time.Time {
if o == nil || IsNil(o.ExpirationTime) {
var ret time.Time
return ret
}
return *o.ExpirationTime
}
// GetExpirationTimeOk returns a tuple with the ExpirationTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetExpirationTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.ExpirationTime) {
return nil, false
}
return o.ExpirationTime, true
}
// HasExpirationTime returns a boolean if a field has been set.
func (o *MbsSession) HasExpirationTime() bool {
if o != nil && !IsNil(o.ExpirationTime) {
return true
}
return false
}
// SetExpirationTime gets a reference to the given time.Time and assigns it to the ExpirationTime field.
func (o *MbsSession) SetExpirationTime(v time.Time) {
o.ExpirationTime = &v
}
// GetServiceType returns the ServiceType field value
func (o *MbsSession) GetServiceType() MbsServiceType {
if o == nil {
var ret MbsServiceType
return ret
}
return o.ServiceType
}
// GetServiceTypeOk returns a tuple with the ServiceType field value
// and a boolean to check if the value has been set.
func (o *MbsSession) GetServiceTypeOk() (*MbsServiceType, bool) {
if o == nil {
return nil, false
}
return &o.ServiceType, true
}
// SetServiceType sets field value
func (o *MbsSession) SetServiceType(v MbsServiceType) {
o.ServiceType = v
}
// GetLocationDependent returns the LocationDependent field value if set, zero value otherwise.
func (o *MbsSession) GetLocationDependent() bool {
if o == nil || IsNil(o.LocationDependent) {
var ret bool
return ret
}
return *o.LocationDependent
}
// GetLocationDependentOk returns a tuple with the LocationDependent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetLocationDependentOk() (*bool, bool) {
if o == nil || IsNil(o.LocationDependent) {
return nil, false
}
return o.LocationDependent, true
}
// HasLocationDependent returns a boolean if a field has been set.
func (o *MbsSession) HasLocationDependent() bool {
if o != nil && !IsNil(o.LocationDependent) {
return true
}
return false
}
// SetLocationDependent gets a reference to the given bool and assigns it to the LocationDependent field.
func (o *MbsSession) SetLocationDependent(v bool) {
o.LocationDependent = &v
}
// GetAreaSessionId returns the AreaSessionId field value if set, zero value otherwise.
func (o *MbsSession) GetAreaSessionId() int32 {
if o == nil || IsNil(o.AreaSessionId) {
var ret int32
return ret
}
return *o.AreaSessionId
}
// GetAreaSessionIdOk returns a tuple with the AreaSessionId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetAreaSessionIdOk() (*int32, bool) {
if o == nil || IsNil(o.AreaSessionId) {
return nil, false
}
return o.AreaSessionId, true
}
// HasAreaSessionId returns a boolean if a field has been set.
func (o *MbsSession) HasAreaSessionId() bool {
if o != nil && !IsNil(o.AreaSessionId) {
return true
}
return false
}
// SetAreaSessionId gets a reference to the given int32 and assigns it to the AreaSessionId field.
func (o *MbsSession) SetAreaSessionId(v int32) {
o.AreaSessionId = &v
}
// GetIngressTunAddrReq returns the IngressTunAddrReq field value if set, zero value otherwise.
func (o *MbsSession) GetIngressTunAddrReq() bool {
if o == nil || IsNil(o.IngressTunAddrReq) {
var ret bool
return ret
}
return *o.IngressTunAddrReq
}
// GetIngressTunAddrReqOk returns a tuple with the IngressTunAddrReq field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetIngressTunAddrReqOk() (*bool, bool) {
if o == nil || IsNil(o.IngressTunAddrReq) {
return nil, false
}
return o.IngressTunAddrReq, true
}
// HasIngressTunAddrReq returns a boolean if a field has been set.
func (o *MbsSession) HasIngressTunAddrReq() bool {
if o != nil && !IsNil(o.IngressTunAddrReq) {
return true
}
return false
}
// SetIngressTunAddrReq gets a reference to the given bool and assigns it to the IngressTunAddrReq field.
func (o *MbsSession) SetIngressTunAddrReq(v bool) {
o.IngressTunAddrReq = &v
}
// GetIngressTunAddr returns the IngressTunAddr field value if set, zero value otherwise.
func (o *MbsSession) GetIngressTunAddr() []TunnelAddress {
if o == nil || IsNil(o.IngressTunAddr) {
var ret []TunnelAddress
return ret
}
return o.IngressTunAddr
}
// GetIngressTunAddrOk returns a tuple with the IngressTunAddr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetIngressTunAddrOk() ([]TunnelAddress, bool) {
if o == nil || IsNil(o.IngressTunAddr) {
return nil, false
}
return o.IngressTunAddr, true
}
// HasIngressTunAddr returns a boolean if a field has been set.
func (o *MbsSession) HasIngressTunAddr() bool {
if o != nil && !IsNil(o.IngressTunAddr) {
return true
}
return false
}
// SetIngressTunAddr gets a reference to the given []TunnelAddress and assigns it to the IngressTunAddr field.
func (o *MbsSession) SetIngressTunAddr(v []TunnelAddress) {
o.IngressTunAddr = v
}
// GetSsm returns the Ssm field value if set, zero value otherwise.
func (o *MbsSession) GetSsm() Ssm {
if o == nil || IsNil(o.Ssm) {
var ret Ssm
return ret
}
return *o.Ssm
}
// GetSsmOk returns a tuple with the Ssm field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetSsmOk() (*Ssm, bool) {
if o == nil || IsNil(o.Ssm) {
return nil, false
}
return o.Ssm, true
}
// HasSsm returns a boolean if a field has been set.
func (o *MbsSession) HasSsm() bool {
if o != nil && !IsNil(o.Ssm) {
return true
}
return false
}
// SetSsm gets a reference to the given Ssm and assigns it to the Ssm field.
func (o *MbsSession) SetSsm(v Ssm) {
o.Ssm = &v
}
// GetMbsServiceArea returns the MbsServiceArea field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MbsSession) GetMbsServiceArea() MbsServiceArea {
if o == nil || IsNil(o.MbsServiceArea.Get()) {
var ret MbsServiceArea
return ret
}
return *o.MbsServiceArea.Get()
}
// GetMbsServiceAreaOk returns a tuple with the MbsServiceArea 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 *MbsSession) GetMbsServiceAreaOk() (*MbsServiceArea, bool) {
if o == nil {
return nil, false
}
return o.MbsServiceArea.Get(), o.MbsServiceArea.IsSet()
}
// HasMbsServiceArea returns a boolean if a field has been set.
func (o *MbsSession) HasMbsServiceArea() bool {
if o != nil && o.MbsServiceArea.IsSet() {
return true
}
return false
}
// SetMbsServiceArea gets a reference to the given NullableMbsServiceArea and assigns it to the MbsServiceArea field.
func (o *MbsSession) SetMbsServiceArea(v MbsServiceArea) {
o.MbsServiceArea.Set(&v)
}
// SetMbsServiceAreaNil sets the value for MbsServiceArea to be an explicit nil
func (o *MbsSession) SetMbsServiceAreaNil() {
o.MbsServiceArea.Set(nil)
}
// UnsetMbsServiceArea ensures that no value is present for MbsServiceArea, not even an explicit nil
func (o *MbsSession) UnsetMbsServiceArea() {
o.MbsServiceArea.Unset()
}
// GetExtMbsServiceArea returns the ExtMbsServiceArea field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MbsSession) GetExtMbsServiceArea() ExternalMbsServiceArea {
if o == nil || IsNil(o.ExtMbsServiceArea.Get()) {
var ret ExternalMbsServiceArea
return ret
}
return *o.ExtMbsServiceArea.Get()
}
// GetExtMbsServiceAreaOk returns a tuple with the ExtMbsServiceArea 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 *MbsSession) GetExtMbsServiceAreaOk() (*ExternalMbsServiceArea, bool) {
if o == nil {
return nil, false
}
return o.ExtMbsServiceArea.Get(), o.ExtMbsServiceArea.IsSet()
}
// HasExtMbsServiceArea returns a boolean if a field has been set.
func (o *MbsSession) HasExtMbsServiceArea() bool {
if o != nil && o.ExtMbsServiceArea.IsSet() {
return true
}
return false
}
// SetExtMbsServiceArea gets a reference to the given NullableExternalMbsServiceArea and assigns it to the ExtMbsServiceArea field.
func (o *MbsSession) SetExtMbsServiceArea(v ExternalMbsServiceArea) {
o.ExtMbsServiceArea.Set(&v)
}
// SetExtMbsServiceAreaNil sets the value for ExtMbsServiceArea to be an explicit nil
func (o *MbsSession) SetExtMbsServiceAreaNil() {
o.ExtMbsServiceArea.Set(nil)
}
// UnsetExtMbsServiceArea ensures that no value is present for ExtMbsServiceArea, not even an explicit nil
func (o *MbsSession) UnsetExtMbsServiceArea() {
o.ExtMbsServiceArea.Unset()
}
// GetDnn returns the Dnn field value if set, zero value otherwise.
func (o *MbsSession) GetDnn() string {
if o == nil || IsNil(o.Dnn) {
var ret string
return ret
}
return *o.Dnn
}
// GetDnnOk returns a tuple with the Dnn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetDnnOk() (*string, bool) {
if o == nil || IsNil(o.Dnn) {
return nil, false
}
return o.Dnn, true
}
// HasDnn returns a boolean if a field has been set.
func (o *MbsSession) HasDnn() bool {
if o != nil && !IsNil(o.Dnn) {
return true
}
return false
}
// SetDnn gets a reference to the given string and assigns it to the Dnn field.
func (o *MbsSession) SetDnn(v string) {
o.Dnn = &v
}
// GetSnssai returns the Snssai field value if set, zero value otherwise.
func (o *MbsSession) GetSnssai() Snssai {
if o == nil || IsNil(o.Snssai) {
var ret Snssai
return ret
}
return *o.Snssai
}
// GetSnssaiOk returns a tuple with the Snssai field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetSnssaiOk() (*Snssai, bool) {
if o == nil || IsNil(o.Snssai) {
return nil, false
}
return o.Snssai, true
}
// HasSnssai returns a boolean if a field has been set.
func (o *MbsSession) HasSnssai() bool {
if o != nil && !IsNil(o.Snssai) {
return true
}
return false
}
// SetSnssai gets a reference to the given Snssai and assigns it to the Snssai field.
func (o *MbsSession) SetSnssai(v Snssai) {
o.Snssai = &v
}
// GetActivationTime returns the ActivationTime field value if set, zero value otherwise.
// Deprecated
func (o *MbsSession) GetActivationTime() time.Time {
if o == nil || IsNil(o.ActivationTime) {
var ret time.Time
return ret
}
return *o.ActivationTime
}
// GetActivationTimeOk returns a tuple with the ActivationTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *MbsSession) GetActivationTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.ActivationTime) {
return nil, false
}
return o.ActivationTime, true
}
// HasActivationTime returns a boolean if a field has been set.
func (o *MbsSession) HasActivationTime() bool {
if o != nil && !IsNil(o.ActivationTime) {
return true
}
return false
}
// SetActivationTime gets a reference to the given time.Time and assigns it to the ActivationTime field.
// Deprecated
func (o *MbsSession) SetActivationTime(v time.Time) {
o.ActivationTime = &v
}
// GetStartTime returns the StartTime field value if set, zero value otherwise.
func (o *MbsSession) GetStartTime() time.Time {
if o == nil || IsNil(o.StartTime) {
var ret time.Time
return ret
}
return *o.StartTime
}
// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetStartTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.StartTime) {
return nil, false
}
return o.StartTime, true
}
// HasStartTime returns a boolean if a field has been set.
func (o *MbsSession) HasStartTime() bool {
if o != nil && !IsNil(o.StartTime) {
return true
}
return false
}
// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.
func (o *MbsSession) SetStartTime(v time.Time) {
o.StartTime = &v
}
// GetTerminationTime returns the TerminationTime field value if set, zero value otherwise.
func (o *MbsSession) GetTerminationTime() time.Time {
if o == nil || IsNil(o.TerminationTime) {
var ret time.Time
return ret
}
return *o.TerminationTime
}
// GetTerminationTimeOk returns a tuple with the TerminationTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetTerminationTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.TerminationTime) {
return nil, false
}
return o.TerminationTime, true
}
// HasTerminationTime returns a boolean if a field has been set.
func (o *MbsSession) HasTerminationTime() bool {
if o != nil && !IsNil(o.TerminationTime) {
return true
}
return false
}
// SetTerminationTime gets a reference to the given time.Time and assigns it to the TerminationTime field.
func (o *MbsSession) SetTerminationTime(v time.Time) {
o.TerminationTime = &v
}
// GetMbsServInfo returns the MbsServInfo field value if set, zero value otherwise.
func (o *MbsSession) GetMbsServInfo() MbsServiceInfo {
if o == nil || IsNil(o.MbsServInfo) {
var ret MbsServiceInfo
return ret
}
return *o.MbsServInfo
}
// GetMbsServInfoOk returns a tuple with the MbsServInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetMbsServInfoOk() (*MbsServiceInfo, bool) {
if o == nil || IsNil(o.MbsServInfo) {
return nil, false
}
return o.MbsServInfo, true
}
// HasMbsServInfo returns a boolean if a field has been set.
func (o *MbsSession) HasMbsServInfo() bool {
if o != nil && !IsNil(o.MbsServInfo) {
return true
}
return false
}
// SetMbsServInfo gets a reference to the given MbsServiceInfo and assigns it to the MbsServInfo field.
func (o *MbsSession) SetMbsServInfo(v MbsServiceInfo) {
o.MbsServInfo = &v
}
// GetMbsSessionSubsc returns the MbsSessionSubsc field value if set, zero value otherwise.
func (o *MbsSession) GetMbsSessionSubsc() MbsSessionSubscription {
if o == nil || IsNil(o.MbsSessionSubsc) {
var ret MbsSessionSubscription
return ret
}
return *o.MbsSessionSubsc
}
// GetMbsSessionSubscOk returns a tuple with the MbsSessionSubsc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetMbsSessionSubscOk() (*MbsSessionSubscription, bool) {
if o == nil || IsNil(o.MbsSessionSubsc) {
return nil, false
}
return o.MbsSessionSubsc, true
}
// HasMbsSessionSubsc returns a boolean if a field has been set.
func (o *MbsSession) HasMbsSessionSubsc() bool {
if o != nil && !IsNil(o.MbsSessionSubsc) {
return true
}
return false
}
// SetMbsSessionSubsc gets a reference to the given MbsSessionSubscription and assigns it to the MbsSessionSubsc field.
func (o *MbsSession) SetMbsSessionSubsc(v MbsSessionSubscription) {
o.MbsSessionSubsc = &v
}
// GetActivityStatus returns the ActivityStatus field value if set, zero value otherwise.
func (o *MbsSession) GetActivityStatus() MbsSessionActivityStatus {
if o == nil || IsNil(o.ActivityStatus) {
var ret MbsSessionActivityStatus
return ret
}
return *o.ActivityStatus
}
// GetActivityStatusOk returns a tuple with the ActivityStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetActivityStatusOk() (*MbsSessionActivityStatus, bool) {
if o == nil || IsNil(o.ActivityStatus) {
return nil, false
}
return o.ActivityStatus, true
}
// HasActivityStatus returns a boolean if a field has been set.
func (o *MbsSession) HasActivityStatus() bool {
if o != nil && !IsNil(o.ActivityStatus) {
return true
}
return false
}
// SetActivityStatus gets a reference to the given MbsSessionActivityStatus and assigns it to the ActivityStatus field.
func (o *MbsSession) SetActivityStatus(v MbsSessionActivityStatus) {
o.ActivityStatus = &v
}
// GetAnyUeInd returns the AnyUeInd field value if set, zero value otherwise.
func (o *MbsSession) GetAnyUeInd() bool {
if o == nil || IsNil(o.AnyUeInd) {
var ret bool
return ret
}
return *o.AnyUeInd
}
// GetAnyUeIndOk returns a tuple with the AnyUeInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetAnyUeIndOk() (*bool, bool) {
if o == nil || IsNil(o.AnyUeInd) {
return nil, false
}
return o.AnyUeInd, true
}
// HasAnyUeInd returns a boolean if a field has been set.
func (o *MbsSession) HasAnyUeInd() bool {
if o != nil && !IsNil(o.AnyUeInd) {
return true
}
return false
}
// SetAnyUeInd gets a reference to the given bool and assigns it to the AnyUeInd field.
func (o *MbsSession) SetAnyUeInd(v bool) {
o.AnyUeInd = &v
}
// GetMbsFsaIdList returns the MbsFsaIdList field value if set, zero value otherwise.
func (o *MbsSession) GetMbsFsaIdList() []string {
if o == nil || IsNil(o.MbsFsaIdList) {
var ret []string
return ret
}
return o.MbsFsaIdList
}
// GetMbsFsaIdListOk returns a tuple with the MbsFsaIdList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsSession) GetMbsFsaIdListOk() ([]string, bool) {
if o == nil || IsNil(o.MbsFsaIdList) {
return nil, false
}
return o.MbsFsaIdList, true
}
// HasMbsFsaIdList returns a boolean if a field has been set.
func (o *MbsSession) HasMbsFsaIdList() bool {
if o != nil && !IsNil(o.MbsFsaIdList) {
return true
}
return false
}
// SetMbsFsaIdList gets a reference to the given []string and assigns it to the MbsFsaIdList field.
func (o *MbsSession) SetMbsFsaIdList(v []string) {
o.MbsFsaIdList = v
}
func (o MbsSession) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MbsSession) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.MbsSessionId.IsSet() {
toSerialize["mbsSessionId"] = o.MbsSessionId.Get()
}
if !IsNil(o.TmgiAllocReq) {
toSerialize["tmgiAllocReq"] = o.TmgiAllocReq
}
if !IsNil(o.Tmgi) {
toSerialize["tmgi"] = o.Tmgi
}
if !IsNil(o.ExpirationTime) {
toSerialize["expirationTime"] = o.ExpirationTime
}
toSerialize["serviceType"] = o.ServiceType
if !IsNil(o.LocationDependent) {
toSerialize["locationDependent"] = o.LocationDependent
}
if !IsNil(o.AreaSessionId) {
toSerialize["areaSessionId"] = o.AreaSessionId
}
if !IsNil(o.IngressTunAddrReq) {
toSerialize["ingressTunAddrReq"] = o.IngressTunAddrReq
}
if !IsNil(o.IngressTunAddr) {
toSerialize["ingressTunAddr"] = o.IngressTunAddr
}
if !IsNil(o.Ssm) {
toSerialize["ssm"] = o.Ssm
}
if o.MbsServiceArea.IsSet() {
toSerialize["mbsServiceArea"] = o.MbsServiceArea.Get()
}
if o.ExtMbsServiceArea.IsSet() {
toSerialize["extMbsServiceArea"] = o.ExtMbsServiceArea.Get()
}
if !IsNil(o.Dnn) {
toSerialize["dnn"] = o.Dnn
}
if !IsNil(o.Snssai) {
toSerialize["snssai"] = o.Snssai
}
if !IsNil(o.ActivationTime) {
toSerialize["activationTime"] = o.ActivationTime
}
if !IsNil(o.StartTime) {
toSerialize["startTime"] = o.StartTime
}
if !IsNil(o.TerminationTime) {
toSerialize["terminationTime"] = o.TerminationTime
}
if !IsNil(o.MbsServInfo) {
toSerialize["mbsServInfo"] = o.MbsServInfo
}
if !IsNil(o.MbsSessionSubsc) {
toSerialize["mbsSessionSubsc"] = o.MbsSessionSubsc
}
if !IsNil(o.ActivityStatus) {
toSerialize["activityStatus"] = o.ActivityStatus
}
if !IsNil(o.AnyUeInd) {
toSerialize["anyUeInd"] = o.AnyUeInd
}
if !IsNil(o.MbsFsaIdList) {
toSerialize["mbsFsaIdList"] = o.MbsFsaIdList
}
return toSerialize, nil
}
func (o *MbsSession) 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{
"serviceType",
}
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)
}
}
varMbsSession := _MbsSession{}
err = json.Unmarshal(bytes, &varMbsSession)
if err != nil {
return err
}
*o = MbsSession(varMbsSession)
return err
}
type NullableMbsSession struct {
value *MbsSession
isSet bool
}
func (v NullableMbsSession) Get() *MbsSession {
return v.value
}
func (v *NullableMbsSession) Set(val *MbsSession) {
v.value = val
v.isSet = true
}
func (v NullableMbsSession) IsSet() bool {
return v.isSet
}
func (v *NullableMbsSession) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMbsSession(val *MbsSession) *NullableMbsSession {
return &NullableMbsSession{value: val, isSet: true}
}
func (v NullableMbsSession) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMbsSession) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。