代码拉取完成,页面将自动刷新
/*
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 TrafficCharacterization type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TrafficCharacterization{}
// TrafficCharacterization Identifies the detailed traffic characterization.
type TrafficCharacterization struct {
// 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"`
Snssai *Snssai `json:"snssai,omitempty"`
// String providing an application identifier.
AppId *string `json:"appId,omitempty"`
FDescs []IpEthFlowDescription `json:"fDescs,omitempty"`
// Unsigned integer identifying a volume in units of bytes.
UlVol *int64 `json:"ulVol,omitempty"`
// string with format 'float' as defined in OpenAPI.
UlVolVariance *float32 `json:"ulVolVariance,omitempty"`
// Unsigned integer identifying a volume in units of bytes.
DlVol *int64 `json:"dlVol,omitempty"`
// string with format 'float' as defined in OpenAPI.
DlVolVariance *float32 `json:"dlVolVariance,omitempty"`
}
// NewTrafficCharacterization instantiates a new TrafficCharacterization 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 NewTrafficCharacterization() *TrafficCharacterization {
this := TrafficCharacterization{}
return &this
}
// NewTrafficCharacterizationWithDefaults instantiates a new TrafficCharacterization 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 NewTrafficCharacterizationWithDefaults() *TrafficCharacterization {
this := TrafficCharacterization{}
return &this
}
// GetDnn returns the Dnn field value if set, zero value otherwise.
func (o *TrafficCharacterization) 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 *TrafficCharacterization) 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 *TrafficCharacterization) 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 *TrafficCharacterization) SetDnn(v string) {
o.Dnn = &v
}
// GetSnssai returns the Snssai field value if set, zero value otherwise.
func (o *TrafficCharacterization) GetSnssai() Snssai {
if o == nil || IsNil(o.Snssai) {
var ret Snssai
return ret
}
return *o.Snssai
}
// GetSnssaiOk returns a tuple with the Snssai field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficCharacterization) GetSnssaiOk() (*Snssai, bool) {
if o == nil || IsNil(o.Snssai) {
return nil, false
}
return o.Snssai, true
}
// HasSnssai returns a boolean if a field has been set.
func (o *TrafficCharacterization) HasSnssai() bool {
if o != nil && !IsNil(o.Snssai) {
return true
}
return false
}
// SetSnssai gets a reference to the given Snssai and assigns it to the Snssai field.
func (o *TrafficCharacterization) SetSnssai(v Snssai) {
o.Snssai = &v
}
// GetAppId returns the AppId field value if set, zero value otherwise.
func (o *TrafficCharacterization) GetAppId() string {
if o == nil || IsNil(o.AppId) {
var ret string
return ret
}
return *o.AppId
}
// GetAppIdOk returns a tuple with the AppId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficCharacterization) GetAppIdOk() (*string, bool) {
if o == nil || IsNil(o.AppId) {
return nil, false
}
return o.AppId, true
}
// HasAppId returns a boolean if a field has been set.
func (o *TrafficCharacterization) HasAppId() bool {
if o != nil && !IsNil(o.AppId) {
return true
}
return false
}
// SetAppId gets a reference to the given string and assigns it to the AppId field.
func (o *TrafficCharacterization) SetAppId(v string) {
o.AppId = &v
}
// GetFDescs returns the FDescs field value if set, zero value otherwise.
func (o *TrafficCharacterization) GetFDescs() []IpEthFlowDescription {
if o == nil || IsNil(o.FDescs) {
var ret []IpEthFlowDescription
return ret
}
return o.FDescs
}
// GetFDescsOk returns a tuple with the FDescs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficCharacterization) GetFDescsOk() ([]IpEthFlowDescription, bool) {
if o == nil || IsNil(o.FDescs) {
return nil, false
}
return o.FDescs, true
}
// HasFDescs returns a boolean if a field has been set.
func (o *TrafficCharacterization) HasFDescs() bool {
if o != nil && !IsNil(o.FDescs) {
return true
}
return false
}
// SetFDescs gets a reference to the given []IpEthFlowDescription and assigns it to the FDescs field.
func (o *TrafficCharacterization) SetFDescs(v []IpEthFlowDescription) {
o.FDescs = v
}
// GetUlVol returns the UlVol field value if set, zero value otherwise.
func (o *TrafficCharacterization) GetUlVol() int64 {
if o == nil || IsNil(o.UlVol) {
var ret int64
return ret
}
return *o.UlVol
}
// GetUlVolOk returns a tuple with the UlVol field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficCharacterization) GetUlVolOk() (*int64, bool) {
if o == nil || IsNil(o.UlVol) {
return nil, false
}
return o.UlVol, true
}
// HasUlVol returns a boolean if a field has been set.
func (o *TrafficCharacterization) HasUlVol() bool {
if o != nil && !IsNil(o.UlVol) {
return true
}
return false
}
// SetUlVol gets a reference to the given int64 and assigns it to the UlVol field.
func (o *TrafficCharacterization) SetUlVol(v int64) {
o.UlVol = &v
}
// GetUlVolVariance returns the UlVolVariance field value if set, zero value otherwise.
func (o *TrafficCharacterization) GetUlVolVariance() float32 {
if o == nil || IsNil(o.UlVolVariance) {
var ret float32
return ret
}
return *o.UlVolVariance
}
// GetUlVolVarianceOk returns a tuple with the UlVolVariance field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficCharacterization) GetUlVolVarianceOk() (*float32, bool) {
if o == nil || IsNil(o.UlVolVariance) {
return nil, false
}
return o.UlVolVariance, true
}
// HasUlVolVariance returns a boolean if a field has been set.
func (o *TrafficCharacterization) HasUlVolVariance() bool {
if o != nil && !IsNil(o.UlVolVariance) {
return true
}
return false
}
// SetUlVolVariance gets a reference to the given float32 and assigns it to the UlVolVariance field.
func (o *TrafficCharacterization) SetUlVolVariance(v float32) {
o.UlVolVariance = &v
}
// GetDlVol returns the DlVol field value if set, zero value otherwise.
func (o *TrafficCharacterization) GetDlVol() int64 {
if o == nil || IsNil(o.DlVol) {
var ret int64
return ret
}
return *o.DlVol
}
// GetDlVolOk returns a tuple with the DlVol field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficCharacterization) GetDlVolOk() (*int64, bool) {
if o == nil || IsNil(o.DlVol) {
return nil, false
}
return o.DlVol, true
}
// HasDlVol returns a boolean if a field has been set.
func (o *TrafficCharacterization) HasDlVol() bool {
if o != nil && !IsNil(o.DlVol) {
return true
}
return false
}
// SetDlVol gets a reference to the given int64 and assigns it to the DlVol field.
func (o *TrafficCharacterization) SetDlVol(v int64) {
o.DlVol = &v
}
// GetDlVolVariance returns the DlVolVariance field value if set, zero value otherwise.
func (o *TrafficCharacterization) GetDlVolVariance() float32 {
if o == nil || IsNil(o.DlVolVariance) {
var ret float32
return ret
}
return *o.DlVolVariance
}
// GetDlVolVarianceOk returns a tuple with the DlVolVariance field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficCharacterization) GetDlVolVarianceOk() (*float32, bool) {
if o == nil || IsNil(o.DlVolVariance) {
return nil, false
}
return o.DlVolVariance, true
}
// HasDlVolVariance returns a boolean if a field has been set.
func (o *TrafficCharacterization) HasDlVolVariance() bool {
if o != nil && !IsNil(o.DlVolVariance) {
return true
}
return false
}
// SetDlVolVariance gets a reference to the given float32 and assigns it to the DlVolVariance field.
func (o *TrafficCharacterization) SetDlVolVariance(v float32) {
o.DlVolVariance = &v
}
func (o TrafficCharacterization) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TrafficCharacterization) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Dnn) {
toSerialize["dnn"] = o.Dnn
}
if !IsNil(o.Snssai) {
toSerialize["snssai"] = o.Snssai
}
if !IsNil(o.AppId) {
toSerialize["appId"] = o.AppId
}
if !IsNil(o.FDescs) {
toSerialize["fDescs"] = o.FDescs
}
if !IsNil(o.UlVol) {
toSerialize["ulVol"] = o.UlVol
}
if !IsNil(o.UlVolVariance) {
toSerialize["ulVolVariance"] = o.UlVolVariance
}
if !IsNil(o.DlVol) {
toSerialize["dlVol"] = o.DlVol
}
if !IsNil(o.DlVolVariance) {
toSerialize["dlVolVariance"] = o.DlVolVariance
}
return toSerialize, nil
}
type NullableTrafficCharacterization struct {
value *TrafficCharacterization
isSet bool
}
func (v NullableTrafficCharacterization) Get() *TrafficCharacterization {
return v.value
}
func (v *NullableTrafficCharacterization) Set(val *TrafficCharacterization) {
v.value = val
v.isSet = true
}
func (v NullableTrafficCharacterization) IsSet() bool {
return v.isSet
}
func (v *NullableTrafficCharacterization) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTrafficCharacterization(val *TrafficCharacterization) *NullableTrafficCharacterization {
return &NullableTrafficCharacterization{value: val, isSet: true}
}
func (v NullableTrafficCharacterization) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTrafficCharacterization) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。