代码拉取完成,页面将自动刷新
/*
VAE_PC5ProvisioningRequirement
API for VAE_PC5ProvisioningRequirement © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_VAE_PC5ProvisioningRequirement
import (
"encoding/json"
)
// checks if the AppplicationQosRequirement type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AppplicationQosRequirement{}
// AppplicationQosRequirement Represents application layer QoS requirement.
type AppplicationQosRequirement struct {
// Unsigned integer representing a 5G QoS Identifier (see clause 5.7.2.1 of 3GPP TS 23.501, within the range 0 to 255.
Pqi *int32 `json:"pqi,omitempty"`
ResourceType *QosResourceType `json:"resourceType,omitempty"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
PriorityLevel *int32 `json:"priorityLevel,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"`
// Unsigned integer indicating Averaging Window (see clause 5.7.3.6 and 5.7.4 of 3GPP TS 23.501), expressed in milliseconds.
AveragingWindow *int32 `json:"averagingWindow,omitempty"`
// Unsigned integer indicating Maximum Data Burst Volume (see clauses 5.7.3.7 and 5.7.4 of 3GPP TS 23.501), expressed in Bytes.
MaxDataBurstVol *int32 `json:"maxDataBurstVol,omitempty"`
}
// NewAppplicationQosRequirement instantiates a new AppplicationQosRequirement 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 NewAppplicationQosRequirement() *AppplicationQosRequirement {
this := AppplicationQosRequirement{}
var averagingWindow int32 = 2000
this.AveragingWindow = &averagingWindow
return &this
}
// NewAppplicationQosRequirementWithDefaults instantiates a new AppplicationQosRequirement 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 NewAppplicationQosRequirementWithDefaults() *AppplicationQosRequirement {
this := AppplicationQosRequirement{}
var averagingWindow int32 = 2000
this.AveragingWindow = &averagingWindow
return &this
}
// GetPqi returns the Pqi field value if set, zero value otherwise.
func (o *AppplicationQosRequirement) GetPqi() int32 {
if o == nil || IsNil(o.Pqi) {
var ret int32
return ret
}
return *o.Pqi
}
// GetPqiOk returns a tuple with the Pqi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppplicationQosRequirement) GetPqiOk() (*int32, bool) {
if o == nil || IsNil(o.Pqi) {
return nil, false
}
return o.Pqi, true
}
// HasPqi returns a boolean if a field has been set.
func (o *AppplicationQosRequirement) HasPqi() bool {
if o != nil && !IsNil(o.Pqi) {
return true
}
return false
}
// SetPqi gets a reference to the given int32 and assigns it to the Pqi field.
func (o *AppplicationQosRequirement) SetPqi(v int32) {
o.Pqi = &v
}
// GetResourceType returns the ResourceType field value if set, zero value otherwise.
func (o *AppplicationQosRequirement) GetResourceType() QosResourceType {
if o == nil || IsNil(o.ResourceType) {
var ret QosResourceType
return ret
}
return *o.ResourceType
}
// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppplicationQosRequirement) GetResourceTypeOk() (*QosResourceType, bool) {
if o == nil || IsNil(o.ResourceType) {
return nil, false
}
return o.ResourceType, true
}
// HasResourceType returns a boolean if a field has been set.
func (o *AppplicationQosRequirement) HasResourceType() bool {
if o != nil && !IsNil(o.ResourceType) {
return true
}
return false
}
// SetResourceType gets a reference to the given QosResourceType and assigns it to the ResourceType field.
func (o *AppplicationQosRequirement) SetResourceType(v QosResourceType) {
o.ResourceType = &v
}
// GetPriorityLevel returns the PriorityLevel field value if set, zero value otherwise.
func (o *AppplicationQosRequirement) GetPriorityLevel() int32 {
if o == nil || IsNil(o.PriorityLevel) {
var ret int32
return ret
}
return *o.PriorityLevel
}
// GetPriorityLevelOk returns a tuple with the PriorityLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppplicationQosRequirement) GetPriorityLevelOk() (*int32, bool) {
if o == nil || IsNil(o.PriorityLevel) {
return nil, false
}
return o.PriorityLevel, true
}
// HasPriorityLevel returns a boolean if a field has been set.
func (o *AppplicationQosRequirement) HasPriorityLevel() bool {
if o != nil && !IsNil(o.PriorityLevel) {
return true
}
return false
}
// SetPriorityLevel gets a reference to the given int32 and assigns it to the PriorityLevel field.
func (o *AppplicationQosRequirement) SetPriorityLevel(v int32) {
o.PriorityLevel = &v
}
// GetPacketDelayBudget returns the PacketDelayBudget field value if set, zero value otherwise.
func (o *AppplicationQosRequirement) 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 *AppplicationQosRequirement) 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 *AppplicationQosRequirement) 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 *AppplicationQosRequirement) SetPacketDelayBudget(v int32) {
o.PacketDelayBudget = &v
}
// GetPacketErrorRate returns the PacketErrorRate field value if set, zero value otherwise.
func (o *AppplicationQosRequirement) 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 *AppplicationQosRequirement) 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 *AppplicationQosRequirement) 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 *AppplicationQosRequirement) SetPacketErrorRate(v string) {
o.PacketErrorRate = &v
}
// GetAveragingWindow returns the AveragingWindow field value if set, zero value otherwise.
func (o *AppplicationQosRequirement) GetAveragingWindow() int32 {
if o == nil || IsNil(o.AveragingWindow) {
var ret int32
return ret
}
return *o.AveragingWindow
}
// GetAveragingWindowOk returns a tuple with the AveragingWindow field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppplicationQosRequirement) GetAveragingWindowOk() (*int32, bool) {
if o == nil || IsNil(o.AveragingWindow) {
return nil, false
}
return o.AveragingWindow, true
}
// HasAveragingWindow returns a boolean if a field has been set.
func (o *AppplicationQosRequirement) HasAveragingWindow() bool {
if o != nil && !IsNil(o.AveragingWindow) {
return true
}
return false
}
// SetAveragingWindow gets a reference to the given int32 and assigns it to the AveragingWindow field.
func (o *AppplicationQosRequirement) SetAveragingWindow(v int32) {
o.AveragingWindow = &v
}
// GetMaxDataBurstVol returns the MaxDataBurstVol field value if set, zero value otherwise.
func (o *AppplicationQosRequirement) GetMaxDataBurstVol() int32 {
if o == nil || IsNil(o.MaxDataBurstVol) {
var ret int32
return ret
}
return *o.MaxDataBurstVol
}
// GetMaxDataBurstVolOk returns a tuple with the MaxDataBurstVol field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppplicationQosRequirement) GetMaxDataBurstVolOk() (*int32, bool) {
if o == nil || IsNil(o.MaxDataBurstVol) {
return nil, false
}
return o.MaxDataBurstVol, true
}
// HasMaxDataBurstVol returns a boolean if a field has been set.
func (o *AppplicationQosRequirement) HasMaxDataBurstVol() bool {
if o != nil && !IsNil(o.MaxDataBurstVol) {
return true
}
return false
}
// SetMaxDataBurstVol gets a reference to the given int32 and assigns it to the MaxDataBurstVol field.
func (o *AppplicationQosRequirement) SetMaxDataBurstVol(v int32) {
o.MaxDataBurstVol = &v
}
func (o AppplicationQosRequirement) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AppplicationQosRequirement) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Pqi) {
toSerialize["pqi"] = o.Pqi
}
if !IsNil(o.ResourceType) {
toSerialize["resourceType"] = o.ResourceType
}
if !IsNil(o.PriorityLevel) {
toSerialize["priorityLevel"] = o.PriorityLevel
}
if !IsNil(o.PacketDelayBudget) {
toSerialize["packetDelayBudget"] = o.PacketDelayBudget
}
if !IsNil(o.PacketErrorRate) {
toSerialize["packetErrorRate"] = o.PacketErrorRate
}
if !IsNil(o.AveragingWindow) {
toSerialize["averagingWindow"] = o.AveragingWindow
}
if !IsNil(o.MaxDataBurstVol) {
toSerialize["maxDataBurstVol"] = o.MaxDataBurstVol
}
return toSerialize, nil
}
type NullableAppplicationQosRequirement struct {
value *AppplicationQosRequirement
isSet bool
}
func (v NullableAppplicationQosRequirement) Get() *AppplicationQosRequirement {
return v.value
}
func (v *NullableAppplicationQosRequirement) Set(val *AppplicationQosRequirement) {
v.value = val
v.isSet = true
}
func (v NullableAppplicationQosRequirement) IsSet() bool {
return v.isSet
}
func (v *NullableAppplicationQosRequirement) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAppplicationQosRequirement(val *AppplicationQosRequirement) *NullableAppplicationQosRequirement {
return &NullableAppplicationQosRequirement{value: val, isSet: true}
}
func (v NullableAppplicationQosRequirement) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAppplicationQosRequirement) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。