Fetch the repository succeeded.
/*
Nnwdaf_EventsSubscription
Nnwdaf_EventsSubscription Service API. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nnwdaf_EventsSubscription
import (
"encoding/json"
)
// checks if the NetworkPerfInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &NetworkPerfInfo{}
// NetworkPerfInfo Represents the network performance information.
type NetworkPerfInfo struct {
NetworkArea *NetworkAreaInfo `json:"networkArea,omitempty"`
NwPerfType *NetworkPerfType `json:"nwPerfType,omitempty"`
// Unsigned integer indicating Sampling Ratio (see clauses 4.15.1 of 3GPP TS 23.502), expressed in percent.
RelativeRatio *int32 `json:"relativeRatio,omitempty"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
AbsoluteNum *int32 `json:"absoluteNum,omitempty"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
Confidence *int32 `json:"confidence,omitempty"`
}
// NewNetworkPerfInfo instantiates a new NetworkPerfInfo 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 NewNetworkPerfInfo() *NetworkPerfInfo {
this := NetworkPerfInfo{}
return &this
}
// NewNetworkPerfInfoWithDefaults instantiates a new NetworkPerfInfo 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 NewNetworkPerfInfoWithDefaults() *NetworkPerfInfo {
this := NetworkPerfInfo{}
return &this
}
// GetNetworkArea returns the NetworkArea field value if set, zero value otherwise.
func (o *NetworkPerfInfo) GetNetworkArea() NetworkAreaInfo {
if o == nil || IsNil(o.NetworkArea) {
var ret NetworkAreaInfo
return ret
}
return *o.NetworkArea
}
// GetNetworkAreaOk returns a tuple with the NetworkArea field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NetworkPerfInfo) GetNetworkAreaOk() (*NetworkAreaInfo, bool) {
if o == nil || IsNil(o.NetworkArea) {
return nil, false
}
return o.NetworkArea, true
}
// HasNetworkArea returns a boolean if a field has been set.
func (o *NetworkPerfInfo) HasNetworkArea() bool {
if o != nil && !IsNil(o.NetworkArea) {
return true
}
return false
}
// SetNetworkArea gets a reference to the given NetworkAreaInfo and assigns it to the NetworkArea field.
func (o *NetworkPerfInfo) SetNetworkArea(v NetworkAreaInfo) {
o.NetworkArea = &v
}
// GetNwPerfType returns the NwPerfType field value if set, zero value otherwise.
func (o *NetworkPerfInfo) GetNwPerfType() NetworkPerfType {
if o == nil || IsNil(o.NwPerfType) {
var ret NetworkPerfType
return ret
}
return *o.NwPerfType
}
// GetNwPerfTypeOk returns a tuple with the NwPerfType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NetworkPerfInfo) GetNwPerfTypeOk() (*NetworkPerfType, bool) {
if o == nil || IsNil(o.NwPerfType) {
return nil, false
}
return o.NwPerfType, true
}
// HasNwPerfType returns a boolean if a field has been set.
func (o *NetworkPerfInfo) HasNwPerfType() bool {
if o != nil && !IsNil(o.NwPerfType) {
return true
}
return false
}
// SetNwPerfType gets a reference to the given NetworkPerfType and assigns it to the NwPerfType field.
func (o *NetworkPerfInfo) SetNwPerfType(v NetworkPerfType) {
o.NwPerfType = &v
}
// GetRelativeRatio returns the RelativeRatio field value if set, zero value otherwise.
func (o *NetworkPerfInfo) GetRelativeRatio() int32 {
if o == nil || IsNil(o.RelativeRatio) {
var ret int32
return ret
}
return *o.RelativeRatio
}
// GetRelativeRatioOk returns a tuple with the RelativeRatio field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NetworkPerfInfo) GetRelativeRatioOk() (*int32, bool) {
if o == nil || IsNil(o.RelativeRatio) {
return nil, false
}
return o.RelativeRatio, true
}
// HasRelativeRatio returns a boolean if a field has been set.
func (o *NetworkPerfInfo) HasRelativeRatio() bool {
if o != nil && !IsNil(o.RelativeRatio) {
return true
}
return false
}
// SetRelativeRatio gets a reference to the given int32 and assigns it to the RelativeRatio field.
func (o *NetworkPerfInfo) SetRelativeRatio(v int32) {
o.RelativeRatio = &v
}
// GetAbsoluteNum returns the AbsoluteNum field value if set, zero value otherwise.
func (o *NetworkPerfInfo) GetAbsoluteNum() int32 {
if o == nil || IsNil(o.AbsoluteNum) {
var ret int32
return ret
}
return *o.AbsoluteNum
}
// GetAbsoluteNumOk returns a tuple with the AbsoluteNum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NetworkPerfInfo) GetAbsoluteNumOk() (*int32, bool) {
if o == nil || IsNil(o.AbsoluteNum) {
return nil, false
}
return o.AbsoluteNum, true
}
// HasAbsoluteNum returns a boolean if a field has been set.
func (o *NetworkPerfInfo) HasAbsoluteNum() bool {
if o != nil && !IsNil(o.AbsoluteNum) {
return true
}
return false
}
// SetAbsoluteNum gets a reference to the given int32 and assigns it to the AbsoluteNum field.
func (o *NetworkPerfInfo) SetAbsoluteNum(v int32) {
o.AbsoluteNum = &v
}
// GetConfidence returns the Confidence field value if set, zero value otherwise.
func (o *NetworkPerfInfo) GetConfidence() int32 {
if o == nil || IsNil(o.Confidence) {
var ret int32
return ret
}
return *o.Confidence
}
// GetConfidenceOk returns a tuple with the Confidence field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NetworkPerfInfo) GetConfidenceOk() (*int32, bool) {
if o == nil || IsNil(o.Confidence) {
return nil, false
}
return o.Confidence, true
}
// HasConfidence returns a boolean if a field has been set.
func (o *NetworkPerfInfo) HasConfidence() bool {
if o != nil && !IsNil(o.Confidence) {
return true
}
return false
}
// SetConfidence gets a reference to the given int32 and assigns it to the Confidence field.
func (o *NetworkPerfInfo) SetConfidence(v int32) {
o.Confidence = &v
}
func (o NetworkPerfInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o NetworkPerfInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.NetworkArea) {
toSerialize["networkArea"] = o.NetworkArea
}
if !IsNil(o.NwPerfType) {
toSerialize["nwPerfType"] = o.NwPerfType
}
if !IsNil(o.RelativeRatio) {
toSerialize["relativeRatio"] = o.RelativeRatio
}
if !IsNil(o.AbsoluteNum) {
toSerialize["absoluteNum"] = o.AbsoluteNum
}
if !IsNil(o.Confidence) {
toSerialize["confidence"] = o.Confidence
}
return toSerialize, nil
}
type NullableNetworkPerfInfo struct {
value *NetworkPerfInfo
isSet bool
}
func (v NullableNetworkPerfInfo) Get() *NetworkPerfInfo {
return v.value
}
func (v *NullableNetworkPerfInfo) Set(val *NetworkPerfInfo) {
v.value = val
v.isSet = true
}
func (v NullableNetworkPerfInfo) IsSet() bool {
return v.isSet
}
func (v *NullableNetworkPerfInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableNetworkPerfInfo(val *NetworkPerfInfo) *NullableNetworkPerfInfo {
return &NullableNetworkPerfInfo{value: val, isSet: true}
}
func (v NullableNetworkPerfInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableNetworkPerfInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。