代码拉取完成,页面将自动刷新
/*
Namf_MT
AMF Mobile Terminated Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.2
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Namf_MT
import (
"encoding/json"
"fmt"
)
// checks if the EnableGroupReachabilityReqData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EnableGroupReachabilityReqData{}
// EnableGroupReachabilityReqData Data within the Enable Group Reachability Request
type EnableGroupReachabilityReqData struct {
UeInfoList []UeInfo `json:"ueInfoList"`
Tmgi Tmgi `json:"tmgi"`
// String providing an URI formatted according to RFC 3986.
ReachabilityNotifyUri *string `json:"reachabilityNotifyUri,omitempty"`
MbsServiceAreaInfoList []MbsServiceAreaInfo `json:"mbsServiceAreaInfoList,omitempty"`
Arp *Arp `json:"arp,omitempty"`
// Unsigned integer representing a 5G QoS Identifier (see clause 5.7.2.1 of 3GPP TS 23.501, within the range 0 to 255.
Var5qi *int32 `json:"5qi,omitempty"`
// A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported.
SupportedFeatures *string `json:"supportedFeatures,omitempty"`
}
type _EnableGroupReachabilityReqData EnableGroupReachabilityReqData
// NewEnableGroupReachabilityReqData instantiates a new EnableGroupReachabilityReqData 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 NewEnableGroupReachabilityReqData(ueInfoList []UeInfo, tmgi Tmgi) *EnableGroupReachabilityReqData {
this := EnableGroupReachabilityReqData{}
this.UeInfoList = ueInfoList
this.Tmgi = tmgi
return &this
}
// NewEnableGroupReachabilityReqDataWithDefaults instantiates a new EnableGroupReachabilityReqData 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 NewEnableGroupReachabilityReqDataWithDefaults() *EnableGroupReachabilityReqData {
this := EnableGroupReachabilityReqData{}
return &this
}
// GetUeInfoList returns the UeInfoList field value
func (o *EnableGroupReachabilityReqData) GetUeInfoList() []UeInfo {
if o == nil {
var ret []UeInfo
return ret
}
return o.UeInfoList
}
// GetUeInfoListOk returns a tuple with the UeInfoList field value
// and a boolean to check if the value has been set.
func (o *EnableGroupReachabilityReqData) GetUeInfoListOk() ([]UeInfo, bool) {
if o == nil {
return nil, false
}
return o.UeInfoList, true
}
// SetUeInfoList sets field value
func (o *EnableGroupReachabilityReqData) SetUeInfoList(v []UeInfo) {
o.UeInfoList = v
}
// GetTmgi returns the Tmgi field value
func (o *EnableGroupReachabilityReqData) GetTmgi() Tmgi {
if o == nil {
var ret Tmgi
return ret
}
return o.Tmgi
}
// GetTmgiOk returns a tuple with the Tmgi field value
// and a boolean to check if the value has been set.
func (o *EnableGroupReachabilityReqData) GetTmgiOk() (*Tmgi, bool) {
if o == nil {
return nil, false
}
return &o.Tmgi, true
}
// SetTmgi sets field value
func (o *EnableGroupReachabilityReqData) SetTmgi(v Tmgi) {
o.Tmgi = v
}
// GetReachabilityNotifyUri returns the ReachabilityNotifyUri field value if set, zero value otherwise.
func (o *EnableGroupReachabilityReqData) GetReachabilityNotifyUri() string {
if o == nil || IsNil(o.ReachabilityNotifyUri) {
var ret string
return ret
}
return *o.ReachabilityNotifyUri
}
// GetReachabilityNotifyUriOk returns a tuple with the ReachabilityNotifyUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnableGroupReachabilityReqData) GetReachabilityNotifyUriOk() (*string, bool) {
if o == nil || IsNil(o.ReachabilityNotifyUri) {
return nil, false
}
return o.ReachabilityNotifyUri, true
}
// HasReachabilityNotifyUri returns a boolean if a field has been set.
func (o *EnableGroupReachabilityReqData) HasReachabilityNotifyUri() bool {
if o != nil && !IsNil(o.ReachabilityNotifyUri) {
return true
}
return false
}
// SetReachabilityNotifyUri gets a reference to the given string and assigns it to the ReachabilityNotifyUri field.
func (o *EnableGroupReachabilityReqData) SetReachabilityNotifyUri(v string) {
o.ReachabilityNotifyUri = &v
}
// GetMbsServiceAreaInfoList returns the MbsServiceAreaInfoList field value if set, zero value otherwise.
func (o *EnableGroupReachabilityReqData) GetMbsServiceAreaInfoList() []MbsServiceAreaInfo {
if o == nil || IsNil(o.MbsServiceAreaInfoList) {
var ret []MbsServiceAreaInfo
return ret
}
return o.MbsServiceAreaInfoList
}
// GetMbsServiceAreaInfoListOk returns a tuple with the MbsServiceAreaInfoList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnableGroupReachabilityReqData) GetMbsServiceAreaInfoListOk() ([]MbsServiceAreaInfo, bool) {
if o == nil || IsNil(o.MbsServiceAreaInfoList) {
return nil, false
}
return o.MbsServiceAreaInfoList, true
}
// HasMbsServiceAreaInfoList returns a boolean if a field has been set.
func (o *EnableGroupReachabilityReqData) HasMbsServiceAreaInfoList() bool {
if o != nil && !IsNil(o.MbsServiceAreaInfoList) {
return true
}
return false
}
// SetMbsServiceAreaInfoList gets a reference to the given []MbsServiceAreaInfo and assigns it to the MbsServiceAreaInfoList field.
func (o *EnableGroupReachabilityReqData) SetMbsServiceAreaInfoList(v []MbsServiceAreaInfo) {
o.MbsServiceAreaInfoList = v
}
// GetArp returns the Arp field value if set, zero value otherwise.
func (o *EnableGroupReachabilityReqData) GetArp() Arp {
if o == nil || IsNil(o.Arp) {
var ret Arp
return ret
}
return *o.Arp
}
// GetArpOk returns a tuple with the Arp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnableGroupReachabilityReqData) GetArpOk() (*Arp, bool) {
if o == nil || IsNil(o.Arp) {
return nil, false
}
return o.Arp, true
}
// HasArp returns a boolean if a field has been set.
func (o *EnableGroupReachabilityReqData) HasArp() bool {
if o != nil && !IsNil(o.Arp) {
return true
}
return false
}
// SetArp gets a reference to the given Arp and assigns it to the Arp field.
func (o *EnableGroupReachabilityReqData) SetArp(v Arp) {
o.Arp = &v
}
// GetVar5qi returns the Var5qi field value if set, zero value otherwise.
func (o *EnableGroupReachabilityReqData) GetVar5qi() int32 {
if o == nil || IsNil(o.Var5qi) {
var ret int32
return ret
}
return *o.Var5qi
}
// GetVar5qiOk returns a tuple with the Var5qi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnableGroupReachabilityReqData) GetVar5qiOk() (*int32, bool) {
if o == nil || IsNil(o.Var5qi) {
return nil, false
}
return o.Var5qi, true
}
// HasVar5qi returns a boolean if a field has been set.
func (o *EnableGroupReachabilityReqData) HasVar5qi() bool {
if o != nil && !IsNil(o.Var5qi) {
return true
}
return false
}
// SetVar5qi gets a reference to the given int32 and assigns it to the Var5qi field.
func (o *EnableGroupReachabilityReqData) SetVar5qi(v int32) {
o.Var5qi = &v
}
// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise.
func (o *EnableGroupReachabilityReqData) GetSupportedFeatures() string {
if o == nil || IsNil(o.SupportedFeatures) {
var ret string
return ret
}
return *o.SupportedFeatures
}
// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnableGroupReachabilityReqData) GetSupportedFeaturesOk() (*string, bool) {
if o == nil || IsNil(o.SupportedFeatures) {
return nil, false
}
return o.SupportedFeatures, true
}
// HasSupportedFeatures returns a boolean if a field has been set.
func (o *EnableGroupReachabilityReqData) HasSupportedFeatures() bool {
if o != nil && !IsNil(o.SupportedFeatures) {
return true
}
return false
}
// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field.
func (o *EnableGroupReachabilityReqData) SetSupportedFeatures(v string) {
o.SupportedFeatures = &v
}
func (o EnableGroupReachabilityReqData) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o EnableGroupReachabilityReqData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["ueInfoList"] = o.UeInfoList
toSerialize["tmgi"] = o.Tmgi
if !IsNil(o.ReachabilityNotifyUri) {
toSerialize["reachabilityNotifyUri"] = o.ReachabilityNotifyUri
}
if !IsNil(o.MbsServiceAreaInfoList) {
toSerialize["mbsServiceAreaInfoList"] = o.MbsServiceAreaInfoList
}
if !IsNil(o.Arp) {
toSerialize["arp"] = o.Arp
}
if !IsNil(o.Var5qi) {
toSerialize["5qi"] = o.Var5qi
}
if !IsNil(o.SupportedFeatures) {
toSerialize["supportedFeatures"] = o.SupportedFeatures
}
return toSerialize, nil
}
func (o *EnableGroupReachabilityReqData) UnmarshalJSON(bytes []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"ueInfoList",
"tmgi",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(bytes, &allProperties)
if err != nil {
return err
}
for _, requiredProperty := range requiredProperties {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varEnableGroupReachabilityReqData := _EnableGroupReachabilityReqData{}
err = json.Unmarshal(bytes, &varEnableGroupReachabilityReqData)
if err != nil {
return err
}
*o = EnableGroupReachabilityReqData(varEnableGroupReachabilityReqData)
return err
}
type NullableEnableGroupReachabilityReqData struct {
value *EnableGroupReachabilityReqData
isSet bool
}
func (v NullableEnableGroupReachabilityReqData) Get() *EnableGroupReachabilityReqData {
return v.value
}
func (v *NullableEnableGroupReachabilityReqData) Set(val *EnableGroupReachabilityReqData) {
v.value = val
v.isSet = true
}
func (v NullableEnableGroupReachabilityReqData) IsSet() bool {
return v.isSet
}
func (v *NullableEnableGroupReachabilityReqData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEnableGroupReachabilityReqData(val *EnableGroupReachabilityReqData) *NullableEnableGroupReachabilityReqData {
return &NullableEnableGroupReachabilityReqData{value: val, isSet: true}
}
func (v NullableEnableGroupReachabilityReqData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableEnableGroupReachabilityReqData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。