Ai
1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_ps_location.go 6.65 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
Nhss_imsSDM
Nhss Subscriber Data Management Service for IMS. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nhss_imsSDM
import (
"encoding/json"
)
// checks if the PsLocation type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PsLocation{}
// PsLocation Location data in PS domain
type PsLocation struct {
SgsnLocationData *SgsnLocationData `json:"sgsnLocationData,omitempty"`
MmeLocationData *MmeLocationData `json:"mmeLocationData,omitempty"`
AmfLocationData *AmfLocationData `json:"amfLocationData,omitempty"`
TwanLocationData *TwanLocationData `json:"twanLocationData,omitempty"`
}
// NewPsLocation instantiates a new PsLocation 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 NewPsLocation() *PsLocation {
this := PsLocation{}
return &this
}
// NewPsLocationWithDefaults instantiates a new PsLocation 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 NewPsLocationWithDefaults() *PsLocation {
this := PsLocation{}
return &this
}
// GetSgsnLocationData returns the SgsnLocationData field value if set, zero value otherwise.
func (o *PsLocation) GetSgsnLocationData() SgsnLocationData {
if o == nil || IsNil(o.SgsnLocationData) {
var ret SgsnLocationData
return ret
}
return *o.SgsnLocationData
}
// GetSgsnLocationDataOk returns a tuple with the SgsnLocationData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PsLocation) GetSgsnLocationDataOk() (*SgsnLocationData, bool) {
if o == nil || IsNil(o.SgsnLocationData) {
return nil, false
}
return o.SgsnLocationData, true
}
// HasSgsnLocationData returns a boolean if a field has been set.
func (o *PsLocation) HasSgsnLocationData() bool {
if o != nil && !IsNil(o.SgsnLocationData) {
return true
}
return false
}
// SetSgsnLocationData gets a reference to the given SgsnLocationData and assigns it to the SgsnLocationData field.
func (o *PsLocation) SetSgsnLocationData(v SgsnLocationData) {
o.SgsnLocationData = &v
}
// GetMmeLocationData returns the MmeLocationData field value if set, zero value otherwise.
func (o *PsLocation) GetMmeLocationData() MmeLocationData {
if o == nil || IsNil(o.MmeLocationData) {
var ret MmeLocationData
return ret
}
return *o.MmeLocationData
}
// GetMmeLocationDataOk returns a tuple with the MmeLocationData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PsLocation) GetMmeLocationDataOk() (*MmeLocationData, bool) {
if o == nil || IsNil(o.MmeLocationData) {
return nil, false
}
return o.MmeLocationData, true
}
// HasMmeLocationData returns a boolean if a field has been set.
func (o *PsLocation) HasMmeLocationData() bool {
if o != nil && !IsNil(o.MmeLocationData) {
return true
}
return false
}
// SetMmeLocationData gets a reference to the given MmeLocationData and assigns it to the MmeLocationData field.
func (o *PsLocation) SetMmeLocationData(v MmeLocationData) {
o.MmeLocationData = &v
}
// GetAmfLocationData returns the AmfLocationData field value if set, zero value otherwise.
func (o *PsLocation) GetAmfLocationData() AmfLocationData {
if o == nil || IsNil(o.AmfLocationData) {
var ret AmfLocationData
return ret
}
return *o.AmfLocationData
}
// GetAmfLocationDataOk returns a tuple with the AmfLocationData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PsLocation) GetAmfLocationDataOk() (*AmfLocationData, bool) {
if o == nil || IsNil(o.AmfLocationData) {
return nil, false
}
return o.AmfLocationData, true
}
// HasAmfLocationData returns a boolean if a field has been set.
func (o *PsLocation) HasAmfLocationData() bool {
if o != nil && !IsNil(o.AmfLocationData) {
return true
}
return false
}
// SetAmfLocationData gets a reference to the given AmfLocationData and assigns it to the AmfLocationData field.
func (o *PsLocation) SetAmfLocationData(v AmfLocationData) {
o.AmfLocationData = &v
}
// GetTwanLocationData returns the TwanLocationData field value if set, zero value otherwise.
func (o *PsLocation) GetTwanLocationData() TwanLocationData {
if o == nil || IsNil(o.TwanLocationData) {
var ret TwanLocationData
return ret
}
return *o.TwanLocationData
}
// GetTwanLocationDataOk returns a tuple with the TwanLocationData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PsLocation) GetTwanLocationDataOk() (*TwanLocationData, bool) {
if o == nil || IsNil(o.TwanLocationData) {
return nil, false
}
return o.TwanLocationData, true
}
// HasTwanLocationData returns a boolean if a field has been set.
func (o *PsLocation) HasTwanLocationData() bool {
if o != nil && !IsNil(o.TwanLocationData) {
return true
}
return false
}
// SetTwanLocationData gets a reference to the given TwanLocationData and assigns it to the TwanLocationData field.
func (o *PsLocation) SetTwanLocationData(v TwanLocationData) {
o.TwanLocationData = &v
}
func (o PsLocation) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PsLocation) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.SgsnLocationData) {
toSerialize["sgsnLocationData"] = o.SgsnLocationData
}
if !IsNil(o.MmeLocationData) {
toSerialize["mmeLocationData"] = o.MmeLocationData
}
if !IsNil(o.AmfLocationData) {
toSerialize["amfLocationData"] = o.AmfLocationData
}
if !IsNil(o.TwanLocationData) {
toSerialize["twanLocationData"] = o.TwanLocationData
}
return toSerialize, nil
}
type NullablePsLocation struct {
value *PsLocation
isSet bool
}
func (v NullablePsLocation) Get() *PsLocation {
return v.value
}
func (v *NullablePsLocation) Set(val *PsLocation) {
v.value = val
v.isSet = true
}
func (v NullablePsLocation) IsSet() bool {
return v.isSet
}
func (v *NullablePsLocation) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePsLocation(val *PsLocation) *NullablePsLocation {
return &NullablePsLocation{value: val, isSet: true}
}
func (v NullablePsLocation) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePsLocation) 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

搜索帮助