1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_qos_data.go 28.80 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970
/*
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 QosData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &QosData{}
// QosData Contains the QoS parameters.
type QosData struct {
// Univocally identifies the QoS control policy data within a PDU session.
QosId string `json:"qosId"`
// Unsigned integer representing a 5G QoS Identifier (see clause 5.7.2.1 of 3GPP TS 23.501, within the range 0 to 255.
Var5qi *int32 `json:"5qi,omitempty"`
// This data type is defined in the same way as the 'BitRate' data type, but with the OpenAPI 'nullable: true' property.
MaxbrUl NullableString `json:"maxbrUl,omitempty"`
// This data type is defined in the same way as the 'BitRate' data type, but with the OpenAPI 'nullable: true' property.
MaxbrDl NullableString `json:"maxbrDl,omitempty"`
// This data type is defined in the same way as the 'BitRate' data type, but with the OpenAPI 'nullable: true' property.
GbrUl NullableString `json:"gbrUl,omitempty"`
// This data type is defined in the same way as the 'BitRate' data type, but with the OpenAPI 'nullable: true' property.
GbrDl NullableString `json:"gbrDl,omitempty"`
Arp *Arp `json:"arp,omitempty"`
// Indicates whether notifications are requested from 3GPP NG-RAN when the GFBR can no longer (or again) be guaranteed for a QoS Flow during the lifetime of the QoS Flow.
Qnc *bool `json:"qnc,omitempty"`
// This data type is defined in the same way as the '5QiPriorityLevel' data type, but with the OpenAPI 'nullable: true' property.
PriorityLevel NullableInt32 `json:"priorityLevel,omitempty"`
// This data type is defined in the same way as the 'AverWindow' data type, but with the OpenAPI 'nullable: true' property.
AverWindow NullableInt32 `json:"averWindow,omitempty"`
// This data type is defined in the same way as the 'MaxDataBurstVol' data type, but with the OpenAPI 'nullable: true' property.
MaxDataBurstVol NullableInt32 `json:"maxDataBurstVol,omitempty"`
// Indicates whether the QoS information is reflective for the corresponding service data flow.
ReflectiveQos *bool `json:"reflectiveQos,omitempty"`
// Indicates, by containing the same value, what PCC rules may share resource in downlink direction.
SharingKeyDl *string `json:"sharingKeyDl,omitempty"`
// Indicates, by containing the same value, what PCC rules may share resource in uplink direction.
SharingKeyUl *string `json:"sharingKeyUl,omitempty"`
// This data type is defined in the same way as the 'PacketLossRate' data type, but with the OpenAPI 'nullable: true' property.
MaxPacketLossRateDl NullableInt32 `json:"maxPacketLossRateDl,omitempty"`
// This data type is defined in the same way as the 'PacketLossRate' data type, but with the OpenAPI 'nullable: true' property.
MaxPacketLossRateUl NullableInt32 `json:"maxPacketLossRateUl,omitempty"`
// Indicates that the dynamic PCC rule shall always have its binding with the QoS Flow associated with the default QoS rule
DefQosFlowIndication *bool `json:"defQosFlowIndication,omitempty"`
// This data type is defined in the same way as the 'ExtMaxDataBurstVol' data type, but with the OpenAPI 'nullable: true' property.
ExtMaxDataBurstVol NullableInt32 `json:"extMaxDataBurstVol,omitempty"`
// Unsigned integer indicating Packet Delay Budget (see clauses 5.7.3.4 and 5.7.4 of 3GPP TS 23.501), expressed in milliseconds.
PacketDelayBudget *int32 `json:"packetDelayBudget,omitempty"`
// String representing Packet Error Rate (see clause 5.7.3.5 and 5.7.4 of 3GPP TS 23.501, expressed as a \"scalar x 10-k\" where the scalar and the exponent k are each encoded as one decimal digit.
PacketErrorRate *string `json:"packetErrorRate,omitempty"`
}
type _QosData QosData
// NewQosData instantiates a new QosData 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 NewQosData(qosId string) *QosData {
this := QosData{}
this.QosId = qosId
var averWindow int32 = 2000
this.AverWindow = *NewNullableInt32(&averWindow)
return &this
}
// NewQosDataWithDefaults instantiates a new QosData 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 NewQosDataWithDefaults() *QosData {
this := QosData{}
var averWindow int32 = 2000
this.AverWindow = *NewNullableInt32(&averWindow)
return &this
}
// GetQosId returns the QosId field value
func (o *QosData) GetQosId() string {
if o == nil {
var ret string
return ret
}
return o.QosId
}
// GetQosIdOk returns a tuple with the QosId field value
// and a boolean to check if the value has been set.
func (o *QosData) GetQosIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.QosId, true
}
// SetQosId sets field value
func (o *QosData) SetQosId(v string) {
o.QosId = v
}
// GetVar5qi returns the Var5qi field value if set, zero value otherwise.
func (o *QosData) GetVar5qi() int32 {
if o == nil || IsNil(o.Var5qi) {
var ret int32
return ret
}
return *o.Var5qi
}
// GetVar5qiOk returns a tuple with the Var5qi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosData) GetVar5qiOk() (*int32, bool) {
if o == nil || IsNil(o.Var5qi) {
return nil, false
}
return o.Var5qi, true
}
// HasVar5qi returns a boolean if a field has been set.
func (o *QosData) HasVar5qi() bool {
if o != nil && !IsNil(o.Var5qi) {
return true
}
return false
}
// SetVar5qi gets a reference to the given int32 and assigns it to the Var5qi field.
func (o *QosData) SetVar5qi(v int32) {
o.Var5qi = &v
}
// GetMaxbrUl returns the MaxbrUl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *QosData) GetMaxbrUl() string {
if o == nil || IsNil(o.MaxbrUl.Get()) {
var ret string
return ret
}
return *o.MaxbrUl.Get()
}
// GetMaxbrUlOk returns a tuple with the MaxbrUl 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 *QosData) GetMaxbrUlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MaxbrUl.Get(), o.MaxbrUl.IsSet()
}
// HasMaxbrUl returns a boolean if a field has been set.
func (o *QosData) HasMaxbrUl() bool {
if o != nil && o.MaxbrUl.IsSet() {
return true
}
return false
}
// SetMaxbrUl gets a reference to the given NullableString and assigns it to the MaxbrUl field.
func (o *QosData) SetMaxbrUl(v string) {
o.MaxbrUl.Set(&v)
}
// SetMaxbrUlNil sets the value for MaxbrUl to be an explicit nil
func (o *QosData) SetMaxbrUlNil() {
o.MaxbrUl.Set(nil)
}
// UnsetMaxbrUl ensures that no value is present for MaxbrUl, not even an explicit nil
func (o *QosData) UnsetMaxbrUl() {
o.MaxbrUl.Unset()
}
// GetMaxbrDl returns the MaxbrDl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *QosData) GetMaxbrDl() string {
if o == nil || IsNil(o.MaxbrDl.Get()) {
var ret string
return ret
}
return *o.MaxbrDl.Get()
}
// GetMaxbrDlOk returns a tuple with the MaxbrDl 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 *QosData) GetMaxbrDlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MaxbrDl.Get(), o.MaxbrDl.IsSet()
}
// HasMaxbrDl returns a boolean if a field has been set.
func (o *QosData) HasMaxbrDl() bool {
if o != nil && o.MaxbrDl.IsSet() {
return true
}
return false
}
// SetMaxbrDl gets a reference to the given NullableString and assigns it to the MaxbrDl field.
func (o *QosData) SetMaxbrDl(v string) {
o.MaxbrDl.Set(&v)
}
// SetMaxbrDlNil sets the value for MaxbrDl to be an explicit nil
func (o *QosData) SetMaxbrDlNil() {
o.MaxbrDl.Set(nil)
}
// UnsetMaxbrDl ensures that no value is present for MaxbrDl, not even an explicit nil
func (o *QosData) UnsetMaxbrDl() {
o.MaxbrDl.Unset()
}
// GetGbrUl returns the GbrUl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *QosData) GetGbrUl() string {
if o == nil || IsNil(o.GbrUl.Get()) {
var ret string
return ret
}
return *o.GbrUl.Get()
}
// GetGbrUlOk returns a tuple with the GbrUl 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 *QosData) GetGbrUlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.GbrUl.Get(), o.GbrUl.IsSet()
}
// HasGbrUl returns a boolean if a field has been set.
func (o *QosData) HasGbrUl() bool {
if o != nil && o.GbrUl.IsSet() {
return true
}
return false
}
// SetGbrUl gets a reference to the given NullableString and assigns it to the GbrUl field.
func (o *QosData) SetGbrUl(v string) {
o.GbrUl.Set(&v)
}
// SetGbrUlNil sets the value for GbrUl to be an explicit nil
func (o *QosData) SetGbrUlNil() {
o.GbrUl.Set(nil)
}
// UnsetGbrUl ensures that no value is present for GbrUl, not even an explicit nil
func (o *QosData) UnsetGbrUl() {
o.GbrUl.Unset()
}
// GetGbrDl returns the GbrDl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *QosData) GetGbrDl() string {
if o == nil || IsNil(o.GbrDl.Get()) {
var ret string
return ret
}
return *o.GbrDl.Get()
}
// GetGbrDlOk returns a tuple with the GbrDl 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 *QosData) GetGbrDlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.GbrDl.Get(), o.GbrDl.IsSet()
}
// HasGbrDl returns a boolean if a field has been set.
func (o *QosData) HasGbrDl() bool {
if o != nil && o.GbrDl.IsSet() {
return true
}
return false
}
// SetGbrDl gets a reference to the given NullableString and assigns it to the GbrDl field.
func (o *QosData) SetGbrDl(v string) {
o.GbrDl.Set(&v)
}
// SetGbrDlNil sets the value for GbrDl to be an explicit nil
func (o *QosData) SetGbrDlNil() {
o.GbrDl.Set(nil)
}
// UnsetGbrDl ensures that no value is present for GbrDl, not even an explicit nil
func (o *QosData) UnsetGbrDl() {
o.GbrDl.Unset()
}
// GetArp returns the Arp field value if set, zero value otherwise.
func (o *QosData) GetArp() Arp {
if o == nil || IsNil(o.Arp) {
var ret Arp
return ret
}
return *o.Arp
}
// GetArpOk returns a tuple with the Arp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosData) GetArpOk() (*Arp, bool) {
if o == nil || IsNil(o.Arp) {
return nil, false
}
return o.Arp, true
}
// HasArp returns a boolean if a field has been set.
func (o *QosData) HasArp() bool {
if o != nil && !IsNil(o.Arp) {
return true
}
return false
}
// SetArp gets a reference to the given Arp and assigns it to the Arp field.
func (o *QosData) SetArp(v Arp) {
o.Arp = &v
}
// GetQnc returns the Qnc field value if set, zero value otherwise.
func (o *QosData) GetQnc() bool {
if o == nil || IsNil(o.Qnc) {
var ret bool
return ret
}
return *o.Qnc
}
// GetQncOk returns a tuple with the Qnc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosData) GetQncOk() (*bool, bool) {
if o == nil || IsNil(o.Qnc) {
return nil, false
}
return o.Qnc, true
}
// HasQnc returns a boolean if a field has been set.
func (o *QosData) HasQnc() bool {
if o != nil && !IsNil(o.Qnc) {
return true
}
return false
}
// SetQnc gets a reference to the given bool and assigns it to the Qnc field.
func (o *QosData) SetQnc(v bool) {
o.Qnc = &v
}
// GetPriorityLevel returns the PriorityLevel field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *QosData) GetPriorityLevel() int32 {
if o == nil || IsNil(o.PriorityLevel.Get()) {
var ret int32
return ret
}
return *o.PriorityLevel.Get()
}
// GetPriorityLevelOk returns a tuple with the PriorityLevel 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 *QosData) GetPriorityLevelOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.PriorityLevel.Get(), o.PriorityLevel.IsSet()
}
// HasPriorityLevel returns a boolean if a field has been set.
func (o *QosData) HasPriorityLevel() bool {
if o != nil && o.PriorityLevel.IsSet() {
return true
}
return false
}
// SetPriorityLevel gets a reference to the given NullableInt32 and assigns it to the PriorityLevel field.
func (o *QosData) SetPriorityLevel(v int32) {
o.PriorityLevel.Set(&v)
}
// SetPriorityLevelNil sets the value for PriorityLevel to be an explicit nil
func (o *QosData) SetPriorityLevelNil() {
o.PriorityLevel.Set(nil)
}
// UnsetPriorityLevel ensures that no value is present for PriorityLevel, not even an explicit nil
func (o *QosData) UnsetPriorityLevel() {
o.PriorityLevel.Unset()
}
// GetAverWindow returns the AverWindow field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *QosData) GetAverWindow() int32 {
if o == nil || IsNil(o.AverWindow.Get()) {
var ret int32
return ret
}
return *o.AverWindow.Get()
}
// GetAverWindowOk returns a tuple with the AverWindow 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 *QosData) GetAverWindowOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.AverWindow.Get(), o.AverWindow.IsSet()
}
// HasAverWindow returns a boolean if a field has been set.
func (o *QosData) HasAverWindow() bool {
if o != nil && o.AverWindow.IsSet() {
return true
}
return false
}
// SetAverWindow gets a reference to the given NullableInt32 and assigns it to the AverWindow field.
func (o *QosData) SetAverWindow(v int32) {
o.AverWindow.Set(&v)
}
// SetAverWindowNil sets the value for AverWindow to be an explicit nil
func (o *QosData) SetAverWindowNil() {
o.AverWindow.Set(nil)
}
// UnsetAverWindow ensures that no value is present for AverWindow, not even an explicit nil
func (o *QosData) UnsetAverWindow() {
o.AverWindow.Unset()
}
// GetMaxDataBurstVol returns the MaxDataBurstVol field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *QosData) GetMaxDataBurstVol() int32 {
if o == nil || IsNil(o.MaxDataBurstVol.Get()) {
var ret int32
return ret
}
return *o.MaxDataBurstVol.Get()
}
// GetMaxDataBurstVolOk returns a tuple with the MaxDataBurstVol 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 *QosData) GetMaxDataBurstVolOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxDataBurstVol.Get(), o.MaxDataBurstVol.IsSet()
}
// HasMaxDataBurstVol returns a boolean if a field has been set.
func (o *QosData) HasMaxDataBurstVol() bool {
if o != nil && o.MaxDataBurstVol.IsSet() {
return true
}
return false
}
// SetMaxDataBurstVol gets a reference to the given NullableInt32 and assigns it to the MaxDataBurstVol field.
func (o *QosData) SetMaxDataBurstVol(v int32) {
o.MaxDataBurstVol.Set(&v)
}
// SetMaxDataBurstVolNil sets the value for MaxDataBurstVol to be an explicit nil
func (o *QosData) SetMaxDataBurstVolNil() {
o.MaxDataBurstVol.Set(nil)
}
// UnsetMaxDataBurstVol ensures that no value is present for MaxDataBurstVol, not even an explicit nil
func (o *QosData) UnsetMaxDataBurstVol() {
o.MaxDataBurstVol.Unset()
}
// GetReflectiveQos returns the ReflectiveQos field value if set, zero value otherwise.
func (o *QosData) GetReflectiveQos() bool {
if o == nil || IsNil(o.ReflectiveQos) {
var ret bool
return ret
}
return *o.ReflectiveQos
}
// GetReflectiveQosOk returns a tuple with the ReflectiveQos field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosData) GetReflectiveQosOk() (*bool, bool) {
if o == nil || IsNil(o.ReflectiveQos) {
return nil, false
}
return o.ReflectiveQos, true
}
// HasReflectiveQos returns a boolean if a field has been set.
func (o *QosData) HasReflectiveQos() bool {
if o != nil && !IsNil(o.ReflectiveQos) {
return true
}
return false
}
// SetReflectiveQos gets a reference to the given bool and assigns it to the ReflectiveQos field.
func (o *QosData) SetReflectiveQos(v bool) {
o.ReflectiveQos = &v
}
// GetSharingKeyDl returns the SharingKeyDl field value if set, zero value otherwise.
func (o *QosData) GetSharingKeyDl() string {
if o == nil || IsNil(o.SharingKeyDl) {
var ret string
return ret
}
return *o.SharingKeyDl
}
// GetSharingKeyDlOk returns a tuple with the SharingKeyDl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosData) GetSharingKeyDlOk() (*string, bool) {
if o == nil || IsNil(o.SharingKeyDl) {
return nil, false
}
return o.SharingKeyDl, true
}
// HasSharingKeyDl returns a boolean if a field has been set.
func (o *QosData) HasSharingKeyDl() bool {
if o != nil && !IsNil(o.SharingKeyDl) {
return true
}
return false
}
// SetSharingKeyDl gets a reference to the given string and assigns it to the SharingKeyDl field.
func (o *QosData) SetSharingKeyDl(v string) {
o.SharingKeyDl = &v
}
// GetSharingKeyUl returns the SharingKeyUl field value if set, zero value otherwise.
func (o *QosData) GetSharingKeyUl() string {
if o == nil || IsNil(o.SharingKeyUl) {
var ret string
return ret
}
return *o.SharingKeyUl
}
// GetSharingKeyUlOk returns a tuple with the SharingKeyUl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosData) GetSharingKeyUlOk() (*string, bool) {
if o == nil || IsNil(o.SharingKeyUl) {
return nil, false
}
return o.SharingKeyUl, true
}
// HasSharingKeyUl returns a boolean if a field has been set.
func (o *QosData) HasSharingKeyUl() bool {
if o != nil && !IsNil(o.SharingKeyUl) {
return true
}
return false
}
// SetSharingKeyUl gets a reference to the given string and assigns it to the SharingKeyUl field.
func (o *QosData) SetSharingKeyUl(v string) {
o.SharingKeyUl = &v
}
// GetMaxPacketLossRateDl returns the MaxPacketLossRateDl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *QosData) GetMaxPacketLossRateDl() int32 {
if o == nil || IsNil(o.MaxPacketLossRateDl.Get()) {
var ret int32
return ret
}
return *o.MaxPacketLossRateDl.Get()
}
// GetMaxPacketLossRateDlOk returns a tuple with the MaxPacketLossRateDl 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 *QosData) GetMaxPacketLossRateDlOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxPacketLossRateDl.Get(), o.MaxPacketLossRateDl.IsSet()
}
// HasMaxPacketLossRateDl returns a boolean if a field has been set.
func (o *QosData) HasMaxPacketLossRateDl() bool {
if o != nil && o.MaxPacketLossRateDl.IsSet() {
return true
}
return false
}
// SetMaxPacketLossRateDl gets a reference to the given NullableInt32 and assigns it to the MaxPacketLossRateDl field.
func (o *QosData) SetMaxPacketLossRateDl(v int32) {
o.MaxPacketLossRateDl.Set(&v)
}
// SetMaxPacketLossRateDlNil sets the value for MaxPacketLossRateDl to be an explicit nil
func (o *QosData) SetMaxPacketLossRateDlNil() {
o.MaxPacketLossRateDl.Set(nil)
}
// UnsetMaxPacketLossRateDl ensures that no value is present for MaxPacketLossRateDl, not even an explicit nil
func (o *QosData) UnsetMaxPacketLossRateDl() {
o.MaxPacketLossRateDl.Unset()
}
// GetMaxPacketLossRateUl returns the MaxPacketLossRateUl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *QosData) GetMaxPacketLossRateUl() int32 {
if o == nil || IsNil(o.MaxPacketLossRateUl.Get()) {
var ret int32
return ret
}
return *o.MaxPacketLossRateUl.Get()
}
// GetMaxPacketLossRateUlOk returns a tuple with the MaxPacketLossRateUl 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 *QosData) GetMaxPacketLossRateUlOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxPacketLossRateUl.Get(), o.MaxPacketLossRateUl.IsSet()
}
// HasMaxPacketLossRateUl returns a boolean if a field has been set.
func (o *QosData) HasMaxPacketLossRateUl() bool {
if o != nil && o.MaxPacketLossRateUl.IsSet() {
return true
}
return false
}
// SetMaxPacketLossRateUl gets a reference to the given NullableInt32 and assigns it to the MaxPacketLossRateUl field.
func (o *QosData) SetMaxPacketLossRateUl(v int32) {
o.MaxPacketLossRateUl.Set(&v)
}
// SetMaxPacketLossRateUlNil sets the value for MaxPacketLossRateUl to be an explicit nil
func (o *QosData) SetMaxPacketLossRateUlNil() {
o.MaxPacketLossRateUl.Set(nil)
}
// UnsetMaxPacketLossRateUl ensures that no value is present for MaxPacketLossRateUl, not even an explicit nil
func (o *QosData) UnsetMaxPacketLossRateUl() {
o.MaxPacketLossRateUl.Unset()
}
// GetDefQosFlowIndication returns the DefQosFlowIndication field value if set, zero value otherwise.
func (o *QosData) GetDefQosFlowIndication() bool {
if o == nil || IsNil(o.DefQosFlowIndication) {
var ret bool
return ret
}
return *o.DefQosFlowIndication
}
// GetDefQosFlowIndicationOk returns a tuple with the DefQosFlowIndication field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosData) GetDefQosFlowIndicationOk() (*bool, bool) {
if o == nil || IsNil(o.DefQosFlowIndication) {
return nil, false
}
return o.DefQosFlowIndication, true
}
// HasDefQosFlowIndication returns a boolean if a field has been set.
func (o *QosData) HasDefQosFlowIndication() bool {
if o != nil && !IsNil(o.DefQosFlowIndication) {
return true
}
return false
}
// SetDefQosFlowIndication gets a reference to the given bool and assigns it to the DefQosFlowIndication field.
func (o *QosData) SetDefQosFlowIndication(v bool) {
o.DefQosFlowIndication = &v
}
// GetExtMaxDataBurstVol returns the ExtMaxDataBurstVol field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *QosData) GetExtMaxDataBurstVol() int32 {
if o == nil || IsNil(o.ExtMaxDataBurstVol.Get()) {
var ret int32
return ret
}
return *o.ExtMaxDataBurstVol.Get()
}
// GetExtMaxDataBurstVolOk returns a tuple with the ExtMaxDataBurstVol 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 *QosData) GetExtMaxDataBurstVolOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.ExtMaxDataBurstVol.Get(), o.ExtMaxDataBurstVol.IsSet()
}
// HasExtMaxDataBurstVol returns a boolean if a field has been set.
func (o *QosData) HasExtMaxDataBurstVol() bool {
if o != nil && o.ExtMaxDataBurstVol.IsSet() {
return true
}
return false
}
// SetExtMaxDataBurstVol gets a reference to the given NullableInt32 and assigns it to the ExtMaxDataBurstVol field.
func (o *QosData) SetExtMaxDataBurstVol(v int32) {
o.ExtMaxDataBurstVol.Set(&v)
}
// SetExtMaxDataBurstVolNil sets the value for ExtMaxDataBurstVol to be an explicit nil
func (o *QosData) SetExtMaxDataBurstVolNil() {
o.ExtMaxDataBurstVol.Set(nil)
}
// UnsetExtMaxDataBurstVol ensures that no value is present for ExtMaxDataBurstVol, not even an explicit nil
func (o *QosData) UnsetExtMaxDataBurstVol() {
o.ExtMaxDataBurstVol.Unset()
}
// GetPacketDelayBudget returns the PacketDelayBudget field value if set, zero value otherwise.
func (o *QosData) GetPacketDelayBudget() int32 {
if o == nil || IsNil(o.PacketDelayBudget) {
var ret int32
return ret
}
return *o.PacketDelayBudget
}
// GetPacketDelayBudgetOk returns a tuple with the PacketDelayBudget field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosData) GetPacketDelayBudgetOk() (*int32, bool) {
if o == nil || IsNil(o.PacketDelayBudget) {
return nil, false
}
return o.PacketDelayBudget, true
}
// HasPacketDelayBudget returns a boolean if a field has been set.
func (o *QosData) HasPacketDelayBudget() bool {
if o != nil && !IsNil(o.PacketDelayBudget) {
return true
}
return false
}
// SetPacketDelayBudget gets a reference to the given int32 and assigns it to the PacketDelayBudget field.
func (o *QosData) SetPacketDelayBudget(v int32) {
o.PacketDelayBudget = &v
}
// GetPacketErrorRate returns the PacketErrorRate field value if set, zero value otherwise.
func (o *QosData) GetPacketErrorRate() string {
if o == nil || IsNil(o.PacketErrorRate) {
var ret string
return ret
}
return *o.PacketErrorRate
}
// GetPacketErrorRateOk returns a tuple with the PacketErrorRate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosData) GetPacketErrorRateOk() (*string, bool) {
if o == nil || IsNil(o.PacketErrorRate) {
return nil, false
}
return o.PacketErrorRate, true
}
// HasPacketErrorRate returns a boolean if a field has been set.
func (o *QosData) HasPacketErrorRate() bool {
if o != nil && !IsNil(o.PacketErrorRate) {
return true
}
return false
}
// SetPacketErrorRate gets a reference to the given string and assigns it to the PacketErrorRate field.
func (o *QosData) SetPacketErrorRate(v string) {
o.PacketErrorRate = &v
}
func (o QosData) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o QosData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["qosId"] = o.QosId
if !IsNil(o.Var5qi) {
toSerialize["5qi"] = o.Var5qi
}
if o.MaxbrUl.IsSet() {
toSerialize["maxbrUl"] = o.MaxbrUl.Get()
}
if o.MaxbrDl.IsSet() {
toSerialize["maxbrDl"] = o.MaxbrDl.Get()
}
if o.GbrUl.IsSet() {
toSerialize["gbrUl"] = o.GbrUl.Get()
}
if o.GbrDl.IsSet() {
toSerialize["gbrDl"] = o.GbrDl.Get()
}
if !IsNil(o.Arp) {
toSerialize["arp"] = o.Arp
}
if !IsNil(o.Qnc) {
toSerialize["qnc"] = o.Qnc
}
if o.PriorityLevel.IsSet() {
toSerialize["priorityLevel"] = o.PriorityLevel.Get()
}
if o.AverWindow.IsSet() {
toSerialize["averWindow"] = o.AverWindow.Get()
}
if o.MaxDataBurstVol.IsSet() {
toSerialize["maxDataBurstVol"] = o.MaxDataBurstVol.Get()
}
if !IsNil(o.ReflectiveQos) {
toSerialize["reflectiveQos"] = o.ReflectiveQos
}
if !IsNil(o.SharingKeyDl) {
toSerialize["sharingKeyDl"] = o.SharingKeyDl
}
if !IsNil(o.SharingKeyUl) {
toSerialize["sharingKeyUl"] = o.SharingKeyUl
}
if o.MaxPacketLossRateDl.IsSet() {
toSerialize["maxPacketLossRateDl"] = o.MaxPacketLossRateDl.Get()
}
if o.MaxPacketLossRateUl.IsSet() {
toSerialize["maxPacketLossRateUl"] = o.MaxPacketLossRateUl.Get()
}
if !IsNil(o.DefQosFlowIndication) {
toSerialize["defQosFlowIndication"] = o.DefQosFlowIndication
}
if o.ExtMaxDataBurstVol.IsSet() {
toSerialize["extMaxDataBurstVol"] = o.ExtMaxDataBurstVol.Get()
}
if !IsNil(o.PacketDelayBudget) {
toSerialize["packetDelayBudget"] = o.PacketDelayBudget
}
if !IsNil(o.PacketErrorRate) {
toSerialize["packetErrorRate"] = o.PacketErrorRate
}
return toSerialize, nil
}
func (o *QosData) 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{
"qosId",
}
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)
}
}
varQosData := _QosData{}
err = json.Unmarshal(bytes, &varQosData)
if err != nil {
return err
}
*o = QosData(varQosData)
return err
}
type NullableQosData struct {
value *QosData
isSet bool
}
func (v NullableQosData) Get() *QosData {
return v.value
}
func (v *NullableQosData) Set(val *QosData) {
v.value = val
v.isSet = true
}
func (v NullableQosData) IsSet() bool {
return v.isSet
}
func (v *NullableQosData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableQosData(val *QosData) *NullableQosData {
return &NullableQosData{value: val, isSet: true}
}
func (v NullableQosData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableQosData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助