1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_twap_id.go 5.59 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
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 TwapId type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TwapId{}
// TwapId Contain the TWAP Identifier as defined in clause 4.2.8.5.3 of 3GPP TS 23.501 or the WLAN location information as defined in clause 4.5.7.2.8 of 3GPP TS 23.402.
type TwapId struct {
// This IE shall contain the SSID of the access point to which the UE is attached, that is received over NGAP, see IEEE Std 802.11-2012.
SsId string `json:"ssId"`
// When present, it shall contain the BSSID of the access point to which the UE is attached, for trusted WLAN access, see IEEE Std 802.11-2012.
BssId *string `json:"bssId,omitempty"`
// string with format 'bytes' as defined in OpenAPI
CivicAddress *string `json:"civicAddress,omitempty"`
}
type _TwapId TwapId
// NewTwapId instantiates a new TwapId 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 NewTwapId(ssId string) *TwapId {
this := TwapId{}
this.SsId = ssId
return &this
}
// NewTwapIdWithDefaults instantiates a new TwapId 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 NewTwapIdWithDefaults() *TwapId {
this := TwapId{}
return &this
}
// GetSsId returns the SsId field value
func (o *TwapId) GetSsId() string {
if o == nil {
var ret string
return ret
}
return o.SsId
}
// GetSsIdOk returns a tuple with the SsId field value
// and a boolean to check if the value has been set.
func (o *TwapId) GetSsIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SsId, true
}
// SetSsId sets field value
func (o *TwapId) SetSsId(v string) {
o.SsId = v
}
// GetBssId returns the BssId field value if set, zero value otherwise.
func (o *TwapId) GetBssId() string {
if o == nil || IsNil(o.BssId) {
var ret string
return ret
}
return *o.BssId
}
// GetBssIdOk returns a tuple with the BssId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TwapId) GetBssIdOk() (*string, bool) {
if o == nil || IsNil(o.BssId) {
return nil, false
}
return o.BssId, true
}
// HasBssId returns a boolean if a field has been set.
func (o *TwapId) HasBssId() bool {
if o != nil && !IsNil(o.BssId) {
return true
}
return false
}
// SetBssId gets a reference to the given string and assigns it to the BssId field.
func (o *TwapId) SetBssId(v string) {
o.BssId = &v
}
// GetCivicAddress returns the CivicAddress field value if set, zero value otherwise.
func (o *TwapId) GetCivicAddress() string {
if o == nil || IsNil(o.CivicAddress) {
var ret string
return ret
}
return *o.CivicAddress
}
// GetCivicAddressOk returns a tuple with the CivicAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TwapId) GetCivicAddressOk() (*string, bool) {
if o == nil || IsNil(o.CivicAddress) {
return nil, false
}
return o.CivicAddress, true
}
// HasCivicAddress returns a boolean if a field has been set.
func (o *TwapId) HasCivicAddress() bool {
if o != nil && !IsNil(o.CivicAddress) {
return true
}
return false
}
// SetCivicAddress gets a reference to the given string and assigns it to the CivicAddress field.
func (o *TwapId) SetCivicAddress(v string) {
o.CivicAddress = &v
}
func (o TwapId) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TwapId) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["ssId"] = o.SsId
if !IsNil(o.BssId) {
toSerialize["bssId"] = o.BssId
}
if !IsNil(o.CivicAddress) {
toSerialize["civicAddress"] = o.CivicAddress
}
return toSerialize, nil
}
func (o *TwapId) 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{
"ssId",
}
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)
}
}
varTwapId := _TwapId{}
err = json.Unmarshal(bytes, &varTwapId)
if err != nil {
return err
}
*o = TwapId(varTwapId)
return err
}
type NullableTwapId struct {
value *TwapId
isSet bool
}
func (v NullableTwapId) Get() *TwapId {
return v.value
}
func (v *NullableTwapId) Set(val *TwapId) {
v.value = val
v.isSet = true
}
func (v NullableTwapId) IsSet() bool {
return v.isSet
}
func (v *NullableTwapId) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTwapId(val *TwapId) *NullableTwapId {
return &NullableTwapId{value: val, isSet: true}
}
func (v NullableTwapId) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTwapId) 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

搜索帮助