Ai
1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_traffic_descriptor_components.go 9.66 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
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)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助