Ai
1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_target_ue_information.go 6.11 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
Nnwdaf_MLModelProvision
Nnwdaf_MLModelProvision API Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nnwdaf_MLModelProvision
import (
"encoding/json"
)
// checks if the TargetUeInformation type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TargetUeInformation{}
// TargetUeInformation Identifies the target UE information.
type TargetUeInformation struct {
AnyUe *bool `json:"anyUe,omitempty"`
Supis []string `json:"supis,omitempty"`
Gpsis []string `json:"gpsis,omitempty"`
IntGroupIds []string `json:"intGroupIds,omitempty"`
}
// NewTargetUeInformation instantiates a new TargetUeInformation 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 NewTargetUeInformation() *TargetUeInformation {
this := TargetUeInformation{}
return &this
}
// NewTargetUeInformationWithDefaults instantiates a new TargetUeInformation 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 NewTargetUeInformationWithDefaults() *TargetUeInformation {
this := TargetUeInformation{}
return &this
}
// GetAnyUe returns the AnyUe field value if set, zero value otherwise.
func (o *TargetUeInformation) GetAnyUe() bool {
if o == nil || IsNil(o.AnyUe) {
var ret bool
return ret
}
return *o.AnyUe
}
// GetAnyUeOk returns a tuple with the AnyUe field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TargetUeInformation) GetAnyUeOk() (*bool, bool) {
if o == nil || IsNil(o.AnyUe) {
return nil, false
}
return o.AnyUe, true
}
// HasAnyUe returns a boolean if a field has been set.
func (o *TargetUeInformation) HasAnyUe() bool {
if o != nil && !IsNil(o.AnyUe) {
return true
}
return false
}
// SetAnyUe gets a reference to the given bool and assigns it to the AnyUe field.
func (o *TargetUeInformation) SetAnyUe(v bool) {
o.AnyUe = &v
}
// GetSupis returns the Supis field value if set, zero value otherwise.
func (o *TargetUeInformation) GetSupis() []string {
if o == nil || IsNil(o.Supis) {
var ret []string
return ret
}
return o.Supis
}
// GetSupisOk returns a tuple with the Supis field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TargetUeInformation) GetSupisOk() ([]string, bool) {
if o == nil || IsNil(o.Supis) {
return nil, false
}
return o.Supis, true
}
// HasSupis returns a boolean if a field has been set.
func (o *TargetUeInformation) HasSupis() bool {
if o != nil && !IsNil(o.Supis) {
return true
}
return false
}
// SetSupis gets a reference to the given []string and assigns it to the Supis field.
func (o *TargetUeInformation) SetSupis(v []string) {
o.Supis = v
}
// GetGpsis returns the Gpsis field value if set, zero value otherwise.
func (o *TargetUeInformation) GetGpsis() []string {
if o == nil || IsNil(o.Gpsis) {
var ret []string
return ret
}
return o.Gpsis
}
// GetGpsisOk returns a tuple with the Gpsis field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TargetUeInformation) GetGpsisOk() ([]string, bool) {
if o == nil || IsNil(o.Gpsis) {
return nil, false
}
return o.Gpsis, true
}
// HasGpsis returns a boolean if a field has been set.
func (o *TargetUeInformation) HasGpsis() bool {
if o != nil && !IsNil(o.Gpsis) {
return true
}
return false
}
// SetGpsis gets a reference to the given []string and assigns it to the Gpsis field.
func (o *TargetUeInformation) SetGpsis(v []string) {
o.Gpsis = v
}
// GetIntGroupIds returns the IntGroupIds field value if set, zero value otherwise.
func (o *TargetUeInformation) GetIntGroupIds() []string {
if o == nil || IsNil(o.IntGroupIds) {
var ret []string
return ret
}
return o.IntGroupIds
}
// GetIntGroupIdsOk returns a tuple with the IntGroupIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TargetUeInformation) GetIntGroupIdsOk() ([]string, bool) {
if o == nil || IsNil(o.IntGroupIds) {
return nil, false
}
return o.IntGroupIds, true
}
// HasIntGroupIds returns a boolean if a field has been set.
func (o *TargetUeInformation) HasIntGroupIds() bool {
if o != nil && !IsNil(o.IntGroupIds) {
return true
}
return false
}
// SetIntGroupIds gets a reference to the given []string and assigns it to the IntGroupIds field.
func (o *TargetUeInformation) SetIntGroupIds(v []string) {
o.IntGroupIds = v
}
func (o TargetUeInformation) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TargetUeInformation) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AnyUe) {
toSerialize["anyUe"] = o.AnyUe
}
if !IsNil(o.Supis) {
toSerialize["supis"] = o.Supis
}
if !IsNil(o.Gpsis) {
toSerialize["gpsis"] = o.Gpsis
}
if !IsNil(o.IntGroupIds) {
toSerialize["intGroupIds"] = o.IntGroupIds
}
return toSerialize, nil
}
type NullableTargetUeInformation struct {
value *TargetUeInformation
isSet bool
}
func (v NullableTargetUeInformation) Get() *TargetUeInformation {
return v.value
}
func (v *NullableTargetUeInformation) Set(val *TargetUeInformation) {
v.value = val
v.isSet = true
}
func (v NullableTargetUeInformation) IsSet() bool {
return v.isSet
}
func (v *NullableTargetUeInformation) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTargetUeInformation(val *TargetUeInformation) *NullableTargetUeInformation {
return &NullableTargetUeInformation{value: val, isSet: true}
}
func (v NullableTargetUeInformation) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTargetUeInformation) 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

搜索帮助