代码拉取完成,页面将自动刷新
/*
Nudr_DataRepository API OpenAPI file
Unified Data Repository Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 2.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nudr_DR
import (
"encoding/json"
)
// checks if the TrafficDescriptorComponents type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TrafficDescriptorComponents{}
// TrafficDescriptorComponents Traffic descriptor components for the requested URSP.
type TrafficDescriptorComponents struct {
// Describes the operation systems and the corresponding applications for each operation systems. The key of map is osId.
AppDescs *map[string]AppDescriptor1 `json:"appDescs,omitempty"`
// Represents a 3-tuple with protocol, server ip and server port for UL/DL application traffic. The content of the string has the same encoding as the IPFilterRule AVP value as defined in IETF RFC 6733.
FlowDescs []string `json:"flowDescs,omitempty"`
// FQDN(s) or a regular expression which are used as a domain name matching criteria.
DomainDescs []string `json:"domainDescs,omitempty"`
// Descriptor(s) for destination information of non-IP traffic in which only ethernet flow description is defined.
EthFlowDescs []EthFlowDescription `json:"ethFlowDescs,omitempty"`
// This is matched against the DNN information provided by the application.
Dnns []string `json:"dnns,omitempty"`
// This is matched against the information provided by a UE application when it requests a network connection with certain capabilities.
ConnCaps []ConnectionCapabilities `json:"connCaps,omitempty"`
}
// NewTrafficDescriptorComponents instantiates a new TrafficDescriptorComponents 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 NewTrafficDescriptorComponents() *TrafficDescriptorComponents {
this := TrafficDescriptorComponents{}
return &this
}
// NewTrafficDescriptorComponentsWithDefaults instantiates a new TrafficDescriptorComponents 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 NewTrafficDescriptorComponentsWithDefaults() *TrafficDescriptorComponents {
this := TrafficDescriptorComponents{}
return &this
}
// GetAppDescs returns the AppDescs field value if set, zero value otherwise.
func (o *TrafficDescriptorComponents) GetAppDescs() map[string]AppDescriptor1 {
if o == nil || IsNil(o.AppDescs) {
var ret map[string]AppDescriptor1
return ret
}
return *o.AppDescs
}
// GetAppDescsOk returns a tuple with the AppDescs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficDescriptorComponents) GetAppDescsOk() (*map[string]AppDescriptor1, bool) {
if o == nil || IsNil(o.AppDescs) {
return nil, false
}
return o.AppDescs, true
}
// HasAppDescs returns a boolean if a field has been set.
func (o *TrafficDescriptorComponents) HasAppDescs() bool {
if o != nil && !IsNil(o.AppDescs) {
return true
}
return false
}
// SetAppDescs gets a reference to the given map[string]AppDescriptor1 and assigns it to the AppDescs field.
func (o *TrafficDescriptorComponents) SetAppDescs(v map[string]AppDescriptor1) {
o.AppDescs = &v
}
// GetFlowDescs returns the FlowDescs field value if set, zero value otherwise.
func (o *TrafficDescriptorComponents) GetFlowDescs() []string {
if o == nil || IsNil(o.FlowDescs) {
var ret []string
return ret
}
return o.FlowDescs
}
// GetFlowDescsOk returns a tuple with the FlowDescs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficDescriptorComponents) GetFlowDescsOk() ([]string, bool) {
if o == nil || IsNil(o.FlowDescs) {
return nil, false
}
return o.FlowDescs, true
}
// HasFlowDescs returns a boolean if a field has been set.
func (o *TrafficDescriptorComponents) HasFlowDescs() bool {
if o != nil && !IsNil(o.FlowDescs) {
return true
}
return false
}
// SetFlowDescs gets a reference to the given []string and assigns it to the FlowDescs field.
func (o *TrafficDescriptorComponents) SetFlowDescs(v []string) {
o.FlowDescs = v
}
// GetDomainDescs returns the DomainDescs field value if set, zero value otherwise.
func (o *TrafficDescriptorComponents) GetDomainDescs() []string {
if o == nil || IsNil(o.DomainDescs) {
var ret []string
return ret
}
return o.DomainDescs
}
// GetDomainDescsOk returns a tuple with the DomainDescs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficDescriptorComponents) GetDomainDescsOk() ([]string, bool) {
if o == nil || IsNil(o.DomainDescs) {
return nil, false
}
return o.DomainDescs, true
}
// HasDomainDescs returns a boolean if a field has been set.
func (o *TrafficDescriptorComponents) HasDomainDescs() bool {
if o != nil && !IsNil(o.DomainDescs) {
return true
}
return false
}
// SetDomainDescs gets a reference to the given []string and assigns it to the DomainDescs field.
func (o *TrafficDescriptorComponents) SetDomainDescs(v []string) {
o.DomainDescs = v
}
// GetEthFlowDescs returns the EthFlowDescs field value if set, zero value otherwise.
func (o *TrafficDescriptorComponents) GetEthFlowDescs() []EthFlowDescription {
if o == nil || IsNil(o.EthFlowDescs) {
var ret []EthFlowDescription
return ret
}
return o.EthFlowDescs
}
// GetEthFlowDescsOk returns a tuple with the EthFlowDescs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficDescriptorComponents) GetEthFlowDescsOk() ([]EthFlowDescription, bool) {
if o == nil || IsNil(o.EthFlowDescs) {
return nil, false
}
return o.EthFlowDescs, true
}
// HasEthFlowDescs returns a boolean if a field has been set.
func (o *TrafficDescriptorComponents) HasEthFlowDescs() bool {
if o != nil && !IsNil(o.EthFlowDescs) {
return true
}
return false
}
// SetEthFlowDescs gets a reference to the given []EthFlowDescription and assigns it to the EthFlowDescs field.
func (o *TrafficDescriptorComponents) SetEthFlowDescs(v []EthFlowDescription) {
o.EthFlowDescs = v
}
// GetDnns returns the Dnns field value if set, zero value otherwise.
func (o *TrafficDescriptorComponents) GetDnns() []string {
if o == nil || IsNil(o.Dnns) {
var ret []string
return ret
}
return o.Dnns
}
// GetDnnsOk returns a tuple with the Dnns field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficDescriptorComponents) GetDnnsOk() ([]string, bool) {
if o == nil || IsNil(o.Dnns) {
return nil, false
}
return o.Dnns, true
}
// HasDnns returns a boolean if a field has been set.
func (o *TrafficDescriptorComponents) HasDnns() bool {
if o != nil && !IsNil(o.Dnns) {
return true
}
return false
}
// SetDnns gets a reference to the given []string and assigns it to the Dnns field.
func (o *TrafficDescriptorComponents) SetDnns(v []string) {
o.Dnns = v
}
// GetConnCaps returns the ConnCaps field value if set, zero value otherwise.
func (o *TrafficDescriptorComponents) GetConnCaps() []ConnectionCapabilities {
if o == nil || IsNil(o.ConnCaps) {
var ret []ConnectionCapabilities
return ret
}
return o.ConnCaps
}
// GetConnCapsOk returns a tuple with the ConnCaps field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficDescriptorComponents) GetConnCapsOk() ([]ConnectionCapabilities, bool) {
if o == nil || IsNil(o.ConnCaps) {
return nil, false
}
return o.ConnCaps, true
}
// HasConnCaps returns a boolean if a field has been set.
func (o *TrafficDescriptorComponents) HasConnCaps() bool {
if o != nil && !IsNil(o.ConnCaps) {
return true
}
return false
}
// SetConnCaps gets a reference to the given []ConnectionCapabilities and assigns it to the ConnCaps field.
func (o *TrafficDescriptorComponents) SetConnCaps(v []ConnectionCapabilities) {
o.ConnCaps = v
}
func (o TrafficDescriptorComponents) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TrafficDescriptorComponents) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AppDescs) {
toSerialize["appDescs"] = o.AppDescs
}
if !IsNil(o.FlowDescs) {
toSerialize["flowDescs"] = o.FlowDescs
}
if !IsNil(o.DomainDescs) {
toSerialize["domainDescs"] = o.DomainDescs
}
if !IsNil(o.EthFlowDescs) {
toSerialize["ethFlowDescs"] = o.EthFlowDescs
}
if !IsNil(o.Dnns) {
toSerialize["dnns"] = o.Dnns
}
if !IsNil(o.ConnCaps) {
toSerialize["connCaps"] = o.ConnCaps
}
return toSerialize, nil
}
type NullableTrafficDescriptorComponents struct {
value *TrafficDescriptorComponents
isSet bool
}
func (v NullableTrafficDescriptorComponents) Get() *TrafficDescriptorComponents {
return v.value
}
func (v *NullableTrafficDescriptorComponents) Set(val *TrafficDescriptorComponents) {
v.value = val
v.isSet = true
}
func (v NullableTrafficDescriptorComponents) IsSet() bool {
return v.isSet
}
func (v *NullableTrafficDescriptorComponents) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTrafficDescriptorComponents(val *TrafficDescriptorComponents) *NullableTrafficDescriptorComponents {
return &NullableTrafficDescriptorComponents{value: val, isSet: true}
}
func (v NullableTrafficDescriptorComponents) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTrafficDescriptorComponents) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。