Ai
1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_monitoring_configuration_1.go 24.27 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
/*
Nudr_DataRepository API OpenAPI file
Unified Data Repository Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 2.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nudr_DR
import (
"encoding/json"
"fmt"
)
// checks if the MonitoringConfiguration1 type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MonitoringConfiguration1{}
// MonitoringConfiguration1 struct for MonitoringConfiguration1
type MonitoringConfiguration1 struct {
EventType EventType `json:"eventType"`
ImmediateFlag *bool `json:"immediateFlag,omitempty"`
LocationReportingConfiguration *LocationReportingConfiguration1 `json:"locationReportingConfiguration,omitempty"`
AssociationType *AssociationType `json:"associationType,omitempty"`
DatalinkReportCfg *DatalinkReportingConfiguration1 `json:"datalinkReportCfg,omitempty"`
LossConnectivityCfg *LossConnectivityCfg1 `json:"lossConnectivityCfg,omitempty"`
// indicating a time in seconds.
MaximumLatency *int32 `json:"maximumLatency,omitempty"`
// indicating a time in seconds.
MaximumResponseTime *int32 `json:"maximumResponseTime,omitempty"`
SuggestedPacketNumDl *int32 `json:"suggestedPacketNumDl,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"`
SingleNssai *Snssai `json:"singleNssai,omitempty"`
PduSessionStatusCfg *PduSessionStatusCfg1 `json:"pduSessionStatusCfg,omitempty"`
ReachabilityForSmsCfg *ReachabilityForSmsConfiguration `json:"reachabilityForSmsCfg,omitempty"`
// String uniquely identifying MTC provider information.
MtcProviderInformation *string `json:"mtcProviderInformation,omitempty"`
AfId *string `json:"afId,omitempty"`
ReachabilityForDataCfg *ReachabilityForDataConfiguration1 `json:"reachabilityForDataCfg,omitempty"`
IdleStatusInd *bool `json:"idleStatusInd,omitempty"`
}
type _MonitoringConfiguration1 MonitoringConfiguration1
// NewMonitoringConfiguration1 instantiates a new MonitoringConfiguration1 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 NewMonitoringConfiguration1(eventType EventType) *MonitoringConfiguration1 {
this := MonitoringConfiguration1{}
this.EventType = eventType
var idleStatusInd bool = false
this.IdleStatusInd = &idleStatusInd
return &this
}
// NewMonitoringConfiguration1WithDefaults instantiates a new MonitoringConfiguration1 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 NewMonitoringConfiguration1WithDefaults() *MonitoringConfiguration1 {
this := MonitoringConfiguration1{}
var idleStatusInd bool = false
this.IdleStatusInd = &idleStatusInd
return &this
}
// GetEventType returns the EventType field value
func (o *MonitoringConfiguration1) GetEventType() EventType {
if o == nil {
var ret EventType
return ret
}
return o.EventType
}
// GetEventTypeOk returns a tuple with the EventType field value
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetEventTypeOk() (*EventType, bool) {
if o == nil {
return nil, false
}
return &o.EventType, true
}
// SetEventType sets field value
func (o *MonitoringConfiguration1) SetEventType(v EventType) {
o.EventType = v
}
// GetImmediateFlag returns the ImmediateFlag field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetImmediateFlag() bool {
if o == nil || IsNil(o.ImmediateFlag) {
var ret bool
return ret
}
return *o.ImmediateFlag
}
// GetImmediateFlagOk returns a tuple with the ImmediateFlag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetImmediateFlagOk() (*bool, bool) {
if o == nil || IsNil(o.ImmediateFlag) {
return nil, false
}
return o.ImmediateFlag, true
}
// HasImmediateFlag returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasImmediateFlag() bool {
if o != nil && !IsNil(o.ImmediateFlag) {
return true
}
return false
}
// SetImmediateFlag gets a reference to the given bool and assigns it to the ImmediateFlag field.
func (o *MonitoringConfiguration1) SetImmediateFlag(v bool) {
o.ImmediateFlag = &v
}
// GetLocationReportingConfiguration returns the LocationReportingConfiguration field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetLocationReportingConfiguration() LocationReportingConfiguration1 {
if o == nil || IsNil(o.LocationReportingConfiguration) {
var ret LocationReportingConfiguration1
return ret
}
return *o.LocationReportingConfiguration
}
// GetLocationReportingConfigurationOk returns a tuple with the LocationReportingConfiguration field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetLocationReportingConfigurationOk() (*LocationReportingConfiguration1, bool) {
if o == nil || IsNil(o.LocationReportingConfiguration) {
return nil, false
}
return o.LocationReportingConfiguration, true
}
// HasLocationReportingConfiguration returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasLocationReportingConfiguration() bool {
if o != nil && !IsNil(o.LocationReportingConfiguration) {
return true
}
return false
}
// SetLocationReportingConfiguration gets a reference to the given LocationReportingConfiguration1 and assigns it to the LocationReportingConfiguration field.
func (o *MonitoringConfiguration1) SetLocationReportingConfiguration(v LocationReportingConfiguration1) {
o.LocationReportingConfiguration = &v
}
// GetAssociationType returns the AssociationType field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetAssociationType() AssociationType {
if o == nil || IsNil(o.AssociationType) {
var ret AssociationType
return ret
}
return *o.AssociationType
}
// GetAssociationTypeOk returns a tuple with the AssociationType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetAssociationTypeOk() (*AssociationType, bool) {
if o == nil || IsNil(o.AssociationType) {
return nil, false
}
return o.AssociationType, true
}
// HasAssociationType returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasAssociationType() bool {
if o != nil && !IsNil(o.AssociationType) {
return true
}
return false
}
// SetAssociationType gets a reference to the given AssociationType and assigns it to the AssociationType field.
func (o *MonitoringConfiguration1) SetAssociationType(v AssociationType) {
o.AssociationType = &v
}
// GetDatalinkReportCfg returns the DatalinkReportCfg field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetDatalinkReportCfg() DatalinkReportingConfiguration1 {
if o == nil || IsNil(o.DatalinkReportCfg) {
var ret DatalinkReportingConfiguration1
return ret
}
return *o.DatalinkReportCfg
}
// GetDatalinkReportCfgOk returns a tuple with the DatalinkReportCfg field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetDatalinkReportCfgOk() (*DatalinkReportingConfiguration1, bool) {
if o == nil || IsNil(o.DatalinkReportCfg) {
return nil, false
}
return o.DatalinkReportCfg, true
}
// HasDatalinkReportCfg returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasDatalinkReportCfg() bool {
if o != nil && !IsNil(o.DatalinkReportCfg) {
return true
}
return false
}
// SetDatalinkReportCfg gets a reference to the given DatalinkReportingConfiguration1 and assigns it to the DatalinkReportCfg field.
func (o *MonitoringConfiguration1) SetDatalinkReportCfg(v DatalinkReportingConfiguration1) {
o.DatalinkReportCfg = &v
}
// GetLossConnectivityCfg returns the LossConnectivityCfg field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetLossConnectivityCfg() LossConnectivityCfg1 {
if o == nil || IsNil(o.LossConnectivityCfg) {
var ret LossConnectivityCfg1
return ret
}
return *o.LossConnectivityCfg
}
// GetLossConnectivityCfgOk returns a tuple with the LossConnectivityCfg field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetLossConnectivityCfgOk() (*LossConnectivityCfg1, bool) {
if o == nil || IsNil(o.LossConnectivityCfg) {
return nil, false
}
return o.LossConnectivityCfg, true
}
// HasLossConnectivityCfg returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasLossConnectivityCfg() bool {
if o != nil && !IsNil(o.LossConnectivityCfg) {
return true
}
return false
}
// SetLossConnectivityCfg gets a reference to the given LossConnectivityCfg1 and assigns it to the LossConnectivityCfg field.
func (o *MonitoringConfiguration1) SetLossConnectivityCfg(v LossConnectivityCfg1) {
o.LossConnectivityCfg = &v
}
// GetMaximumLatency returns the MaximumLatency field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetMaximumLatency() int32 {
if o == nil || IsNil(o.MaximumLatency) {
var ret int32
return ret
}
return *o.MaximumLatency
}
// GetMaximumLatencyOk returns a tuple with the MaximumLatency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetMaximumLatencyOk() (*int32, bool) {
if o == nil || IsNil(o.MaximumLatency) {
return nil, false
}
return o.MaximumLatency, true
}
// HasMaximumLatency returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasMaximumLatency() bool {
if o != nil && !IsNil(o.MaximumLatency) {
return true
}
return false
}
// SetMaximumLatency gets a reference to the given int32 and assigns it to the MaximumLatency field.
func (o *MonitoringConfiguration1) SetMaximumLatency(v int32) {
o.MaximumLatency = &v
}
// GetMaximumResponseTime returns the MaximumResponseTime field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetMaximumResponseTime() int32 {
if o == nil || IsNil(o.MaximumResponseTime) {
var ret int32
return ret
}
return *o.MaximumResponseTime
}
// GetMaximumResponseTimeOk returns a tuple with the MaximumResponseTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetMaximumResponseTimeOk() (*int32, bool) {
if o == nil || IsNil(o.MaximumResponseTime) {
return nil, false
}
return o.MaximumResponseTime, true
}
// HasMaximumResponseTime returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasMaximumResponseTime() bool {
if o != nil && !IsNil(o.MaximumResponseTime) {
return true
}
return false
}
// SetMaximumResponseTime gets a reference to the given int32 and assigns it to the MaximumResponseTime field.
func (o *MonitoringConfiguration1) SetMaximumResponseTime(v int32) {
o.MaximumResponseTime = &v
}
// GetSuggestedPacketNumDl returns the SuggestedPacketNumDl field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetSuggestedPacketNumDl() int32 {
if o == nil || IsNil(o.SuggestedPacketNumDl) {
var ret int32
return ret
}
return *o.SuggestedPacketNumDl
}
// GetSuggestedPacketNumDlOk returns a tuple with the SuggestedPacketNumDl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetSuggestedPacketNumDlOk() (*int32, bool) {
if o == nil || IsNil(o.SuggestedPacketNumDl) {
return nil, false
}
return o.SuggestedPacketNumDl, true
}
// HasSuggestedPacketNumDl returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasSuggestedPacketNumDl() bool {
if o != nil && !IsNil(o.SuggestedPacketNumDl) {
return true
}
return false
}
// SetSuggestedPacketNumDl gets a reference to the given int32 and assigns it to the SuggestedPacketNumDl field.
func (o *MonitoringConfiguration1) SetSuggestedPacketNumDl(v int32) {
o.SuggestedPacketNumDl = &v
}
// GetDnn returns the Dnn field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) 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 *MonitoringConfiguration1) 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 *MonitoringConfiguration1) 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 *MonitoringConfiguration1) SetDnn(v string) {
o.Dnn = &v
}
// GetSingleNssai returns the SingleNssai field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetSingleNssai() Snssai {
if o == nil || IsNil(o.SingleNssai) {
var ret Snssai
return ret
}
return *o.SingleNssai
}
// GetSingleNssaiOk returns a tuple with the SingleNssai field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetSingleNssaiOk() (*Snssai, bool) {
if o == nil || IsNil(o.SingleNssai) {
return nil, false
}
return o.SingleNssai, true
}
// HasSingleNssai returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasSingleNssai() bool {
if o != nil && !IsNil(o.SingleNssai) {
return true
}
return false
}
// SetSingleNssai gets a reference to the given Snssai and assigns it to the SingleNssai field.
func (o *MonitoringConfiguration1) SetSingleNssai(v Snssai) {
o.SingleNssai = &v
}
// GetPduSessionStatusCfg returns the PduSessionStatusCfg field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetPduSessionStatusCfg() PduSessionStatusCfg1 {
if o == nil || IsNil(o.PduSessionStatusCfg) {
var ret PduSessionStatusCfg1
return ret
}
return *o.PduSessionStatusCfg
}
// GetPduSessionStatusCfgOk returns a tuple with the PduSessionStatusCfg field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetPduSessionStatusCfgOk() (*PduSessionStatusCfg1, bool) {
if o == nil || IsNil(o.PduSessionStatusCfg) {
return nil, false
}
return o.PduSessionStatusCfg, true
}
// HasPduSessionStatusCfg returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasPduSessionStatusCfg() bool {
if o != nil && !IsNil(o.PduSessionStatusCfg) {
return true
}
return false
}
// SetPduSessionStatusCfg gets a reference to the given PduSessionStatusCfg1 and assigns it to the PduSessionStatusCfg field.
func (o *MonitoringConfiguration1) SetPduSessionStatusCfg(v PduSessionStatusCfg1) {
o.PduSessionStatusCfg = &v
}
// GetReachabilityForSmsCfg returns the ReachabilityForSmsCfg field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetReachabilityForSmsCfg() ReachabilityForSmsConfiguration {
if o == nil || IsNil(o.ReachabilityForSmsCfg) {
var ret ReachabilityForSmsConfiguration
return ret
}
return *o.ReachabilityForSmsCfg
}
// GetReachabilityForSmsCfgOk returns a tuple with the ReachabilityForSmsCfg field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetReachabilityForSmsCfgOk() (*ReachabilityForSmsConfiguration, bool) {
if o == nil || IsNil(o.ReachabilityForSmsCfg) {
return nil, false
}
return o.ReachabilityForSmsCfg, true
}
// HasReachabilityForSmsCfg returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasReachabilityForSmsCfg() bool {
if o != nil && !IsNil(o.ReachabilityForSmsCfg) {
return true
}
return false
}
// SetReachabilityForSmsCfg gets a reference to the given ReachabilityForSmsConfiguration and assigns it to the ReachabilityForSmsCfg field.
func (o *MonitoringConfiguration1) SetReachabilityForSmsCfg(v ReachabilityForSmsConfiguration) {
o.ReachabilityForSmsCfg = &v
}
// GetMtcProviderInformation returns the MtcProviderInformation field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetMtcProviderInformation() string {
if o == nil || IsNil(o.MtcProviderInformation) {
var ret string
return ret
}
return *o.MtcProviderInformation
}
// GetMtcProviderInformationOk returns a tuple with the MtcProviderInformation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetMtcProviderInformationOk() (*string, bool) {
if o == nil || IsNil(o.MtcProviderInformation) {
return nil, false
}
return o.MtcProviderInformation, true
}
// HasMtcProviderInformation returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasMtcProviderInformation() bool {
if o != nil && !IsNil(o.MtcProviderInformation) {
return true
}
return false
}
// SetMtcProviderInformation gets a reference to the given string and assigns it to the MtcProviderInformation field.
func (o *MonitoringConfiguration1) SetMtcProviderInformation(v string) {
o.MtcProviderInformation = &v
}
// GetAfId returns the AfId field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetAfId() string {
if o == nil || IsNil(o.AfId) {
var ret string
return ret
}
return *o.AfId
}
// GetAfIdOk returns a tuple with the AfId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetAfIdOk() (*string, bool) {
if o == nil || IsNil(o.AfId) {
return nil, false
}
return o.AfId, true
}
// HasAfId returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasAfId() bool {
if o != nil && !IsNil(o.AfId) {
return true
}
return false
}
// SetAfId gets a reference to the given string and assigns it to the AfId field.
func (o *MonitoringConfiguration1) SetAfId(v string) {
o.AfId = &v
}
// GetReachabilityForDataCfg returns the ReachabilityForDataCfg field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetReachabilityForDataCfg() ReachabilityForDataConfiguration1 {
if o == nil || IsNil(o.ReachabilityForDataCfg) {
var ret ReachabilityForDataConfiguration1
return ret
}
return *o.ReachabilityForDataCfg
}
// GetReachabilityForDataCfgOk returns a tuple with the ReachabilityForDataCfg field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetReachabilityForDataCfgOk() (*ReachabilityForDataConfiguration1, bool) {
if o == nil || IsNil(o.ReachabilityForDataCfg) {
return nil, false
}
return o.ReachabilityForDataCfg, true
}
// HasReachabilityForDataCfg returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasReachabilityForDataCfg() bool {
if o != nil && !IsNil(o.ReachabilityForDataCfg) {
return true
}
return false
}
// SetReachabilityForDataCfg gets a reference to the given ReachabilityForDataConfiguration1 and assigns it to the ReachabilityForDataCfg field.
func (o *MonitoringConfiguration1) SetReachabilityForDataCfg(v ReachabilityForDataConfiguration1) {
o.ReachabilityForDataCfg = &v
}
// GetIdleStatusInd returns the IdleStatusInd field value if set, zero value otherwise.
func (o *MonitoringConfiguration1) GetIdleStatusInd() bool {
if o == nil || IsNil(o.IdleStatusInd) {
var ret bool
return ret
}
return *o.IdleStatusInd
}
// GetIdleStatusIndOk returns a tuple with the IdleStatusInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringConfiguration1) GetIdleStatusIndOk() (*bool, bool) {
if o == nil || IsNil(o.IdleStatusInd) {
return nil, false
}
return o.IdleStatusInd, true
}
// HasIdleStatusInd returns a boolean if a field has been set.
func (o *MonitoringConfiguration1) HasIdleStatusInd() bool {
if o != nil && !IsNil(o.IdleStatusInd) {
return true
}
return false
}
// SetIdleStatusInd gets a reference to the given bool and assigns it to the IdleStatusInd field.
func (o *MonitoringConfiguration1) SetIdleStatusInd(v bool) {
o.IdleStatusInd = &v
}
func (o MonitoringConfiguration1) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MonitoringConfiguration1) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["eventType"] = o.EventType
if !IsNil(o.ImmediateFlag) {
toSerialize["immediateFlag"] = o.ImmediateFlag
}
if !IsNil(o.LocationReportingConfiguration) {
toSerialize["locationReportingConfiguration"] = o.LocationReportingConfiguration
}
if !IsNil(o.AssociationType) {
toSerialize["associationType"] = o.AssociationType
}
if !IsNil(o.DatalinkReportCfg) {
toSerialize["datalinkReportCfg"] = o.DatalinkReportCfg
}
if !IsNil(o.LossConnectivityCfg) {
toSerialize["lossConnectivityCfg"] = o.LossConnectivityCfg
}
if !IsNil(o.MaximumLatency) {
toSerialize["maximumLatency"] = o.MaximumLatency
}
if !IsNil(o.MaximumResponseTime) {
toSerialize["maximumResponseTime"] = o.MaximumResponseTime
}
if !IsNil(o.SuggestedPacketNumDl) {
toSerialize["suggestedPacketNumDl"] = o.SuggestedPacketNumDl
}
if !IsNil(o.Dnn) {
toSerialize["dnn"] = o.Dnn
}
if !IsNil(o.SingleNssai) {
toSerialize["singleNssai"] = o.SingleNssai
}
if !IsNil(o.PduSessionStatusCfg) {
toSerialize["pduSessionStatusCfg"] = o.PduSessionStatusCfg
}
if !IsNil(o.ReachabilityForSmsCfg) {
toSerialize["reachabilityForSmsCfg"] = o.ReachabilityForSmsCfg
}
if !IsNil(o.MtcProviderInformation) {
toSerialize["mtcProviderInformation"] = o.MtcProviderInformation
}
if !IsNil(o.AfId) {
toSerialize["afId"] = o.AfId
}
if !IsNil(o.ReachabilityForDataCfg) {
toSerialize["reachabilityForDataCfg"] = o.ReachabilityForDataCfg
}
if !IsNil(o.IdleStatusInd) {
toSerialize["idleStatusInd"] = o.IdleStatusInd
}
return toSerialize, nil
}
func (o *MonitoringConfiguration1) 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{
"eventType",
}
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)
}
}
varMonitoringConfiguration1 := _MonitoringConfiguration1{}
err = json.Unmarshal(bytes, &varMonitoringConfiguration1)
if err != nil {
return err
}
*o = MonitoringConfiguration1(varMonitoringConfiguration1)
return err
}
type NullableMonitoringConfiguration1 struct {
value *MonitoringConfiguration1
isSet bool
}
func (v NullableMonitoringConfiguration1) Get() *MonitoringConfiguration1 {
return v.value
}
func (v *NullableMonitoringConfiguration1) Set(val *MonitoringConfiguration1) {
v.value = val
v.isSet = true
}
func (v NullableMonitoringConfiguration1) IsSet() bool {
return v.isSet
}
func (v *NullableMonitoringConfiguration1) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMonitoringConfiguration1(val *MonitoringConfiguration1) *NullableMonitoringConfiguration1 {
return &NullableMonitoringConfiguration1{value: val, isSet: true}
}
func (v NullableMonitoringConfiguration1) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMonitoringConfiguration1) 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

搜索帮助