代码拉取完成,页面将自动刷新
/*
Npcf_SMPolicyControl API
Session Management Policy Control Service © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Npcf_SMPolicyControl
import (
"encoding/json"
"fmt"
)
// checks if the QosMonitoringReport type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &QosMonitoringReport{}
// QosMonitoringReport Contains reporting information on QoS monitoring.
type QosMonitoringReport struct {
// An array of PCC rule id references to the PCC rules associated with the QoS monitoring report.
RefPccRuleIds []string `json:"refPccRuleIds"`
UlDelays []int32 `json:"ulDelays,omitempty"`
DlDelays []int32 `json:"dlDelays,omitempty"`
RtDelays []int32 `json:"rtDelays,omitempty"`
// Represents the packet delay measurement failure indicator.
Pdmf *bool `json:"pdmf,omitempty"`
}
type _QosMonitoringReport QosMonitoringReport
// NewQosMonitoringReport instantiates a new QosMonitoringReport 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 NewQosMonitoringReport(refPccRuleIds []string) *QosMonitoringReport {
this := QosMonitoringReport{}
this.RefPccRuleIds = refPccRuleIds
return &this
}
// NewQosMonitoringReportWithDefaults instantiates a new QosMonitoringReport 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 NewQosMonitoringReportWithDefaults() *QosMonitoringReport {
this := QosMonitoringReport{}
return &this
}
// GetRefPccRuleIds returns the RefPccRuleIds field value
func (o *QosMonitoringReport) GetRefPccRuleIds() []string {
if o == nil {
var ret []string
return ret
}
return o.RefPccRuleIds
}
// GetRefPccRuleIdsOk returns a tuple with the RefPccRuleIds field value
// and a boolean to check if the value has been set.
func (o *QosMonitoringReport) GetRefPccRuleIdsOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.RefPccRuleIds, true
}
// SetRefPccRuleIds sets field value
func (o *QosMonitoringReport) SetRefPccRuleIds(v []string) {
o.RefPccRuleIds = v
}
// GetUlDelays returns the UlDelays field value if set, zero value otherwise.
func (o *QosMonitoringReport) GetUlDelays() []int32 {
if o == nil || IsNil(o.UlDelays) {
var ret []int32
return ret
}
return o.UlDelays
}
// GetUlDelaysOk returns a tuple with the UlDelays field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringReport) GetUlDelaysOk() ([]int32, bool) {
if o == nil || IsNil(o.UlDelays) {
return nil, false
}
return o.UlDelays, true
}
// HasUlDelays returns a boolean if a field has been set.
func (o *QosMonitoringReport) HasUlDelays() bool {
if o != nil && !IsNil(o.UlDelays) {
return true
}
return false
}
// SetUlDelays gets a reference to the given []int32 and assigns it to the UlDelays field.
func (o *QosMonitoringReport) SetUlDelays(v []int32) {
o.UlDelays = v
}
// GetDlDelays returns the DlDelays field value if set, zero value otherwise.
func (o *QosMonitoringReport) GetDlDelays() []int32 {
if o == nil || IsNil(o.DlDelays) {
var ret []int32
return ret
}
return o.DlDelays
}
// GetDlDelaysOk returns a tuple with the DlDelays field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringReport) GetDlDelaysOk() ([]int32, bool) {
if o == nil || IsNil(o.DlDelays) {
return nil, false
}
return o.DlDelays, true
}
// HasDlDelays returns a boolean if a field has been set.
func (o *QosMonitoringReport) HasDlDelays() bool {
if o != nil && !IsNil(o.DlDelays) {
return true
}
return false
}
// SetDlDelays gets a reference to the given []int32 and assigns it to the DlDelays field.
func (o *QosMonitoringReport) SetDlDelays(v []int32) {
o.DlDelays = v
}
// GetRtDelays returns the RtDelays field value if set, zero value otherwise.
func (o *QosMonitoringReport) GetRtDelays() []int32 {
if o == nil || IsNil(o.RtDelays) {
var ret []int32
return ret
}
return o.RtDelays
}
// GetRtDelaysOk returns a tuple with the RtDelays field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringReport) GetRtDelaysOk() ([]int32, bool) {
if o == nil || IsNil(o.RtDelays) {
return nil, false
}
return o.RtDelays, true
}
// HasRtDelays returns a boolean if a field has been set.
func (o *QosMonitoringReport) HasRtDelays() bool {
if o != nil && !IsNil(o.RtDelays) {
return true
}
return false
}
// SetRtDelays gets a reference to the given []int32 and assigns it to the RtDelays field.
func (o *QosMonitoringReport) SetRtDelays(v []int32) {
o.RtDelays = v
}
// GetPdmf returns the Pdmf field value if set, zero value otherwise.
func (o *QosMonitoringReport) GetPdmf() bool {
if o == nil || IsNil(o.Pdmf) {
var ret bool
return ret
}
return *o.Pdmf
}
// GetPdmfOk returns a tuple with the Pdmf field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringReport) GetPdmfOk() (*bool, bool) {
if o == nil || IsNil(o.Pdmf) {
return nil, false
}
return o.Pdmf, true
}
// HasPdmf returns a boolean if a field has been set.
func (o *QosMonitoringReport) HasPdmf() bool {
if o != nil && !IsNil(o.Pdmf) {
return true
}
return false
}
// SetPdmf gets a reference to the given bool and assigns it to the Pdmf field.
func (o *QosMonitoringReport) SetPdmf(v bool) {
o.Pdmf = &v
}
func (o QosMonitoringReport) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o QosMonitoringReport) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["refPccRuleIds"] = o.RefPccRuleIds
if !IsNil(o.UlDelays) {
toSerialize["ulDelays"] = o.UlDelays
}
if !IsNil(o.DlDelays) {
toSerialize["dlDelays"] = o.DlDelays
}
if !IsNil(o.RtDelays) {
toSerialize["rtDelays"] = o.RtDelays
}
if !IsNil(o.Pdmf) {
toSerialize["pdmf"] = o.Pdmf
}
return toSerialize, nil
}
func (o *QosMonitoringReport) 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{
"refPccRuleIds",
}
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)
}
}
varQosMonitoringReport := _QosMonitoringReport{}
err = json.Unmarshal(bytes, &varQosMonitoringReport)
if err != nil {
return err
}
*o = QosMonitoringReport(varQosMonitoringReport)
return err
}
type NullableQosMonitoringReport struct {
value *QosMonitoringReport
isSet bool
}
func (v NullableQosMonitoringReport) Get() *QosMonitoringReport {
return v.value
}
func (v *NullableQosMonitoringReport) Set(val *QosMonitoringReport) {
v.value = val
v.isSet = true
}
func (v NullableQosMonitoringReport) IsSet() bool {
return v.isSet
}
func (v *NullableQosMonitoringReport) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableQosMonitoringReport(val *QosMonitoringReport) *NullableQosMonitoringReport {
return &NullableQosMonitoringReport{value: val, isSet: true}
}
func (v NullableQosMonitoringReport) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableQosMonitoringReport) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。