1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_amf_event_subscription_add_info.go 8.56 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Namf_Communication
AMF Communication Service. © 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_Namf_Communication
import (
"encoding/json"
)
// checks if the AmfEventSubscriptionAddInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AmfEventSubscriptionAddInfo{}
// AmfEventSubscriptionAddInfo Additional information received for an AMF event subscription, e.g. binding indications
type AmfEventSubscriptionAddInfo struct {
BindingInfo []string `json:"bindingInfo,omitempty"`
SubscribingNfType *NFType `json:"subscribingNfType,omitempty"`
EventSyncInd *bool `json:"eventSyncInd,omitempty"`
NfConsumerInfo []string `json:"nfConsumerInfo,omitempty"`
// Map of subscribed Area of Interest (AoI) Event State in the old AMF. The JSON pointer to an AmfEventArea element in the areaList IE (or a PresenceInfo element in presenceInfoList IE) of the AmfEvent data type shall be the key of the map.
AoiStateList *map[string]AreaOfInterestEventState `json:"aoiStateList,omitempty"`
}
// NewAmfEventSubscriptionAddInfo instantiates a new AmfEventSubscriptionAddInfo 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 NewAmfEventSubscriptionAddInfo() *AmfEventSubscriptionAddInfo {
this := AmfEventSubscriptionAddInfo{}
return &this
}
// NewAmfEventSubscriptionAddInfoWithDefaults instantiates a new AmfEventSubscriptionAddInfo 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 NewAmfEventSubscriptionAddInfoWithDefaults() *AmfEventSubscriptionAddInfo {
this := AmfEventSubscriptionAddInfo{}
return &this
}
// GetBindingInfo returns the BindingInfo field value if set, zero value otherwise.
func (o *AmfEventSubscriptionAddInfo) GetBindingInfo() []string {
if o == nil || IsNil(o.BindingInfo) {
var ret []string
return ret
}
return o.BindingInfo
}
// GetBindingInfoOk returns a tuple with the BindingInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfEventSubscriptionAddInfo) GetBindingInfoOk() ([]string, bool) {
if o == nil || IsNil(o.BindingInfo) {
return nil, false
}
return o.BindingInfo, true
}
// HasBindingInfo returns a boolean if a field has been set.
func (o *AmfEventSubscriptionAddInfo) HasBindingInfo() bool {
if o != nil && !IsNil(o.BindingInfo) {
return true
}
return false
}
// SetBindingInfo gets a reference to the given []string and assigns it to the BindingInfo field.
func (o *AmfEventSubscriptionAddInfo) SetBindingInfo(v []string) {
o.BindingInfo = v
}
// GetSubscribingNfType returns the SubscribingNfType field value if set, zero value otherwise.
func (o *AmfEventSubscriptionAddInfo) GetSubscribingNfType() NFType {
if o == nil || IsNil(o.SubscribingNfType) {
var ret NFType
return ret
}
return *o.SubscribingNfType
}
// GetSubscribingNfTypeOk returns a tuple with the SubscribingNfType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfEventSubscriptionAddInfo) GetSubscribingNfTypeOk() (*NFType, bool) {
if o == nil || IsNil(o.SubscribingNfType) {
return nil, false
}
return o.SubscribingNfType, true
}
// HasSubscribingNfType returns a boolean if a field has been set.
func (o *AmfEventSubscriptionAddInfo) HasSubscribingNfType() bool {
if o != nil && !IsNil(o.SubscribingNfType) {
return true
}
return false
}
// SetSubscribingNfType gets a reference to the given NFType and assigns it to the SubscribingNfType field.
func (o *AmfEventSubscriptionAddInfo) SetSubscribingNfType(v NFType) {
o.SubscribingNfType = &v
}
// GetEventSyncInd returns the EventSyncInd field value if set, zero value otherwise.
func (o *AmfEventSubscriptionAddInfo) GetEventSyncInd() bool {
if o == nil || IsNil(o.EventSyncInd) {
var ret bool
return ret
}
return *o.EventSyncInd
}
// GetEventSyncIndOk returns a tuple with the EventSyncInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfEventSubscriptionAddInfo) GetEventSyncIndOk() (*bool, bool) {
if o == nil || IsNil(o.EventSyncInd) {
return nil, false
}
return o.EventSyncInd, true
}
// HasEventSyncInd returns a boolean if a field has been set.
func (o *AmfEventSubscriptionAddInfo) HasEventSyncInd() bool {
if o != nil && !IsNil(o.EventSyncInd) {
return true
}
return false
}
// SetEventSyncInd gets a reference to the given bool and assigns it to the EventSyncInd field.
func (o *AmfEventSubscriptionAddInfo) SetEventSyncInd(v bool) {
o.EventSyncInd = &v
}
// GetNfConsumerInfo returns the NfConsumerInfo field value if set, zero value otherwise.
func (o *AmfEventSubscriptionAddInfo) GetNfConsumerInfo() []string {
if o == nil || IsNil(o.NfConsumerInfo) {
var ret []string
return ret
}
return o.NfConsumerInfo
}
// GetNfConsumerInfoOk returns a tuple with the NfConsumerInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfEventSubscriptionAddInfo) GetNfConsumerInfoOk() ([]string, bool) {
if o == nil || IsNil(o.NfConsumerInfo) {
return nil, false
}
return o.NfConsumerInfo, true
}
// HasNfConsumerInfo returns a boolean if a field has been set.
func (o *AmfEventSubscriptionAddInfo) HasNfConsumerInfo() bool {
if o != nil && !IsNil(o.NfConsumerInfo) {
return true
}
return false
}
// SetNfConsumerInfo gets a reference to the given []string and assigns it to the NfConsumerInfo field.
func (o *AmfEventSubscriptionAddInfo) SetNfConsumerInfo(v []string) {
o.NfConsumerInfo = v
}
// GetAoiStateList returns the AoiStateList field value if set, zero value otherwise.
func (o *AmfEventSubscriptionAddInfo) GetAoiStateList() map[string]AreaOfInterestEventState {
if o == nil || IsNil(o.AoiStateList) {
var ret map[string]AreaOfInterestEventState
return ret
}
return *o.AoiStateList
}
// GetAoiStateListOk returns a tuple with the AoiStateList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfEventSubscriptionAddInfo) GetAoiStateListOk() (*map[string]AreaOfInterestEventState, bool) {
if o == nil || IsNil(o.AoiStateList) {
return nil, false
}
return o.AoiStateList, true
}
// HasAoiStateList returns a boolean if a field has been set.
func (o *AmfEventSubscriptionAddInfo) HasAoiStateList() bool {
if o != nil && !IsNil(o.AoiStateList) {
return true
}
return false
}
// SetAoiStateList gets a reference to the given map[string]AreaOfInterestEventState and assigns it to the AoiStateList field.
func (o *AmfEventSubscriptionAddInfo) SetAoiStateList(v map[string]AreaOfInterestEventState) {
o.AoiStateList = &v
}
func (o AmfEventSubscriptionAddInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AmfEventSubscriptionAddInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.BindingInfo) {
toSerialize["bindingInfo"] = o.BindingInfo
}
if !IsNil(o.SubscribingNfType) {
toSerialize["subscribingNfType"] = o.SubscribingNfType
}
if !IsNil(o.EventSyncInd) {
toSerialize["eventSyncInd"] = o.EventSyncInd
}
if !IsNil(o.NfConsumerInfo) {
toSerialize["nfConsumerInfo"] = o.NfConsumerInfo
}
if !IsNil(o.AoiStateList) {
toSerialize["aoiStateList"] = o.AoiStateList
}
return toSerialize, nil
}
type NullableAmfEventSubscriptionAddInfo struct {
value *AmfEventSubscriptionAddInfo
isSet bool
}
func (v NullableAmfEventSubscriptionAddInfo) Get() *AmfEventSubscriptionAddInfo {
return v.value
}
func (v *NullableAmfEventSubscriptionAddInfo) Set(val *AmfEventSubscriptionAddInfo) {
v.value = val
v.isSet = true
}
func (v NullableAmfEventSubscriptionAddInfo) IsSet() bool {
return v.isSet
}
func (v *NullableAmfEventSubscriptionAddInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAmfEventSubscriptionAddInfo(val *AmfEventSubscriptionAddInfo) *NullableAmfEventSubscriptionAddInfo {
return &NullableAmfEventSubscriptionAddInfo{value: val, isSet: true}
}
func (v NullableAmfEventSubscriptionAddInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAmfEventSubscriptionAddInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助