1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_ue_area_indication.go 4.74 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Ndcaf_DataReporting
Data Collection AF: Data Collection and Reporting Configuration API and Data Reporting API © 2023, 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_Ndcaf_DataReporting
import (
"encoding/json"
)
// checks if the UeAreaIndication type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UeAreaIndication{}
// UeAreaIndication Indicates area (country, area in a country or international area) where UE is located
type UeAreaIndication struct {
// Indicates country or area in a country where UE is located
Country *string `json:"country,omitempty"`
// Indicates international area indication if UE is located in international area
InternationalAreaInd *bool `json:"internationalAreaInd,omitempty"`
}
// NewUeAreaIndication instantiates a new UeAreaIndication 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 NewUeAreaIndication() *UeAreaIndication {
this := UeAreaIndication{}
return &this
}
// NewUeAreaIndicationWithDefaults instantiates a new UeAreaIndication 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 NewUeAreaIndicationWithDefaults() *UeAreaIndication {
this := UeAreaIndication{}
var internationalAreaInd bool = false
this.InternationalAreaInd = &internationalAreaInd
return &this
}
// GetCountry returns the Country field value if set, zero value otherwise.
func (o *UeAreaIndication) GetCountry() string {
if o == nil || IsNil(o.Country) {
var ret string
return ret
}
return *o.Country
}
// GetCountryOk returns a tuple with the Country field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeAreaIndication) GetCountryOk() (*string, bool) {
if o == nil || IsNil(o.Country) {
return nil, false
}
return o.Country, true
}
// HasCountry returns a boolean if a field has been set.
func (o *UeAreaIndication) HasCountry() bool {
if o != nil && !IsNil(o.Country) {
return true
}
return false
}
// SetCountry gets a reference to the given string and assigns it to the Country field.
func (o *UeAreaIndication) SetCountry(v string) {
o.Country = &v
}
// GetInternationalAreaInd returns the InternationalAreaInd field value if set, zero value otherwise.
func (o *UeAreaIndication) GetInternationalAreaInd() bool {
if o == nil || IsNil(o.InternationalAreaInd) {
var ret bool
return ret
}
return *o.InternationalAreaInd
}
// GetInternationalAreaIndOk returns a tuple with the InternationalAreaInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeAreaIndication) GetInternationalAreaIndOk() (*bool, bool) {
if o == nil || IsNil(o.InternationalAreaInd) {
return nil, false
}
return o.InternationalAreaInd, true
}
// HasInternationalAreaInd returns a boolean if a field has been set.
func (o *UeAreaIndication) HasInternationalAreaInd() bool {
if o != nil && !IsNil(o.InternationalAreaInd) {
return true
}
return false
}
// SetInternationalAreaInd gets a reference to the given bool and assigns it to the InternationalAreaInd field.
func (o *UeAreaIndication) SetInternationalAreaInd(v bool) {
o.InternationalAreaInd = &v
}
func (o UeAreaIndication) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UeAreaIndication) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Country) {
toSerialize["country"] = o.Country
}
if !IsNil(o.InternationalAreaInd) {
toSerialize["internationalAreaInd"] = o.InternationalAreaInd
}
return toSerialize, nil
}
type NullableUeAreaIndication struct {
value *UeAreaIndication
isSet bool
}
func (v NullableUeAreaIndication) Get() *UeAreaIndication {
return v.value
}
func (v *NullableUeAreaIndication) Set(val *UeAreaIndication) {
v.value = val
v.isSet = true
}
func (v NullableUeAreaIndication) IsSet() bool {
return v.isSet
}
func (v *NullableUeAreaIndication) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUeAreaIndication(val *UeAreaIndication) *NullableUeAreaIndication {
return &NullableUeAreaIndication{value: val, isSet: true}
}
func (v NullableUeAreaIndication) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUeAreaIndication) 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

搜索帮助