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