1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_service_identification.go 5.61 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
Npcf_EventExposure
PCF Event Exposure Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Npcf_EventExposure
import (
"encoding/json"
)
// checks if the ServiceIdentification type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ServiceIdentification{}
// ServiceIdentification Identifies the service to which the subscription applies.
type ServiceIdentification struct {
ServEthFlows []EthernetFlowInfo `json:"servEthFlows,omitempty"`
ServIpFlows []IpFlowInfo `json:"servIpFlows,omitempty"`
// Contains an AF application identifier.
AfAppId *string `json:"afAppId,omitempty"`
}
// NewServiceIdentification instantiates a new ServiceIdentification 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 NewServiceIdentification() *ServiceIdentification {
this := ServiceIdentification{}
return &this
}
// NewServiceIdentificationWithDefaults instantiates a new ServiceIdentification 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 NewServiceIdentificationWithDefaults() *ServiceIdentification {
this := ServiceIdentification{}
return &this
}
// GetServEthFlows returns the ServEthFlows field value if set, zero value otherwise.
func (o *ServiceIdentification) GetServEthFlows() []EthernetFlowInfo {
if o == nil || IsNil(o.ServEthFlows) {
var ret []EthernetFlowInfo
return ret
}
return o.ServEthFlows
}
// GetServEthFlowsOk returns a tuple with the ServEthFlows field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceIdentification) GetServEthFlowsOk() ([]EthernetFlowInfo, bool) {
if o == nil || IsNil(o.ServEthFlows) {
return nil, false
}
return o.ServEthFlows, true
}
// HasServEthFlows returns a boolean if a field has been set.
func (o *ServiceIdentification) HasServEthFlows() bool {
if o != nil && !IsNil(o.ServEthFlows) {
return true
}
return false
}
// SetServEthFlows gets a reference to the given []EthernetFlowInfo and assigns it to the ServEthFlows field.
func (o *ServiceIdentification) SetServEthFlows(v []EthernetFlowInfo) {
o.ServEthFlows = v
}
// GetServIpFlows returns the ServIpFlows field value if set, zero value otherwise.
func (o *ServiceIdentification) GetServIpFlows() []IpFlowInfo {
if o == nil || IsNil(o.ServIpFlows) {
var ret []IpFlowInfo
return ret
}
return o.ServIpFlows
}
// GetServIpFlowsOk returns a tuple with the ServIpFlows field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceIdentification) GetServIpFlowsOk() ([]IpFlowInfo, bool) {
if o == nil || IsNil(o.ServIpFlows) {
return nil, false
}
return o.ServIpFlows, true
}
// HasServIpFlows returns a boolean if a field has been set.
func (o *ServiceIdentification) HasServIpFlows() bool {
if o != nil && !IsNil(o.ServIpFlows) {
return true
}
return false
}
// SetServIpFlows gets a reference to the given []IpFlowInfo and assigns it to the ServIpFlows field.
func (o *ServiceIdentification) SetServIpFlows(v []IpFlowInfo) {
o.ServIpFlows = v
}
// GetAfAppId returns the AfAppId field value if set, zero value otherwise.
func (o *ServiceIdentification) GetAfAppId() string {
if o == nil || IsNil(o.AfAppId) {
var ret string
return ret
}
return *o.AfAppId
}
// GetAfAppIdOk returns a tuple with the AfAppId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceIdentification) GetAfAppIdOk() (*string, bool) {
if o == nil || IsNil(o.AfAppId) {
return nil, false
}
return o.AfAppId, true
}
// HasAfAppId returns a boolean if a field has been set.
func (o *ServiceIdentification) HasAfAppId() bool {
if o != nil && !IsNil(o.AfAppId) {
return true
}
return false
}
// SetAfAppId gets a reference to the given string and assigns it to the AfAppId field.
func (o *ServiceIdentification) SetAfAppId(v string) {
o.AfAppId = &v
}
func (o ServiceIdentification) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ServiceIdentification) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ServEthFlows) {
toSerialize["servEthFlows"] = o.ServEthFlows
}
if !IsNil(o.ServIpFlows) {
toSerialize["servIpFlows"] = o.ServIpFlows
}
if !IsNil(o.AfAppId) {
toSerialize["afAppId"] = o.AfAppId
}
return toSerialize, nil
}
type NullableServiceIdentification struct {
value *ServiceIdentification
isSet bool
}
func (v NullableServiceIdentification) Get() *ServiceIdentification {
return v.value
}
func (v *NullableServiceIdentification) Set(val *ServiceIdentification) {
v.value = val
v.isSet = true
}
func (v NullableServiceIdentification) IsSet() bool {
return v.isSet
}
func (v *NullableServiceIdentification) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableServiceIdentification(val *ServiceIdentification) *NullableServiceIdentification {
return &NullableServiceIdentification{value: val, isSet: true}
}
func (v NullableServiceIdentification) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableServiceIdentification) 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

搜索帮助