1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_racs_configuration.go 6.79 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
3gpp-racs-parameter-provisioning
API for provisioning UE radio capability parameters. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_RacsParameterProvisioning
import (
"encoding/json"
"fmt"
)
// checks if the RacsConfiguration type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &RacsConfiguration{}
// RacsConfiguration Represents a single UE radio capability configuration data.
type RacsConfiguration struct {
// The UE radio capability ID provided by the SCS/AS to identify the UE radio capability data. See 3GPP TS 23.003 for the encoding.
RacsId string `json:"racsId"`
// The UE radio capability data in EPS.
RacsParamEps *string `json:"racsParamEps,omitempty"`
// The UE radio capability data in 5GS.
RacsParam5Gs *string `json:"racsParam5Gs,omitempty"`
// Related UE model's IMEI-TAC values.
ImeiTacs []string `json:"imeiTacs"`
}
type _RacsConfiguration RacsConfiguration
// NewRacsConfiguration instantiates a new RacsConfiguration 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 NewRacsConfiguration(racsId string, imeiTacs []string) *RacsConfiguration {
this := RacsConfiguration{}
return &this
}
// NewRacsConfigurationWithDefaults instantiates a new RacsConfiguration 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 NewRacsConfigurationWithDefaults() *RacsConfiguration {
this := RacsConfiguration{}
return &this
}
// GetRacsId returns the RacsId field value
func (o *RacsConfiguration) GetRacsId() string {
if o == nil {
var ret string
return ret
}
return o.RacsId
}
// GetRacsIdOk returns a tuple with the RacsId field value
// and a boolean to check if the value has been set.
func (o *RacsConfiguration) GetRacsIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.RacsId, true
}
// SetRacsId sets field value
func (o *RacsConfiguration) SetRacsId(v string) {
o.RacsId = v
}
// GetRacsParamEps returns the RacsParamEps field value if set, zero value otherwise.
func (o *RacsConfiguration) GetRacsParamEps() string {
if o == nil || IsNil(o.RacsParamEps) {
var ret string
return ret
}
return *o.RacsParamEps
}
// GetRacsParamEpsOk returns a tuple with the RacsParamEps field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RacsConfiguration) GetRacsParamEpsOk() (*string, bool) {
if o == nil || IsNil(o.RacsParamEps) {
return nil, false
}
return o.RacsParamEps, true
}
// HasRacsParamEps returns a boolean if a field has been set.
func (o *RacsConfiguration) HasRacsParamEps() bool {
if o != nil && !IsNil(o.RacsParamEps) {
return true
}
return false
}
// SetRacsParamEps gets a reference to the given string and assigns it to the RacsParamEps field.
func (o *RacsConfiguration) SetRacsParamEps(v string) {
o.RacsParamEps = &v
}
// GetRacsParam5Gs returns the RacsParam5Gs field value if set, zero value otherwise.
func (o *RacsConfiguration) GetRacsParam5Gs() string {
if o == nil || IsNil(o.RacsParam5Gs) {
var ret string
return ret
}
return *o.RacsParam5Gs
}
// GetRacsParam5GsOk returns a tuple with the RacsParam5Gs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RacsConfiguration) GetRacsParam5GsOk() (*string, bool) {
if o == nil || IsNil(o.RacsParam5Gs) {
return nil, false
}
return o.RacsParam5Gs, true
}
// HasRacsParam5Gs returns a boolean if a field has been set.
func (o *RacsConfiguration) HasRacsParam5Gs() bool {
if o != nil && !IsNil(o.RacsParam5Gs) {
return true
}
return false
}
// SetRacsParam5Gs gets a reference to the given string and assigns it to the RacsParam5Gs field.
func (o *RacsConfiguration) SetRacsParam5Gs(v string) {
o.RacsParam5Gs = &v
}
// GetImeiTacs returns the ImeiTacs field value
func (o *RacsConfiguration) GetImeiTacs() []string {
if o == nil {
var ret []string
return ret
}
return o.ImeiTacs
}
// GetImeiTacsOk returns a tuple with the ImeiTacs field value
// and a boolean to check if the value has been set.
func (o *RacsConfiguration) GetImeiTacsOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.ImeiTacs, true
}
// SetImeiTacs sets field value
func (o *RacsConfiguration) SetImeiTacs(v []string) {
o.ImeiTacs = v
}
func (o RacsConfiguration) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o RacsConfiguration) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["racsId"] = o.RacsId
if !IsNil(o.RacsParamEps) {
toSerialize["racsParamEps"] = o.RacsParamEps
}
if !IsNil(o.RacsParam5Gs) {
toSerialize["racsParam5Gs"] = o.RacsParam5Gs
}
toSerialize["imeiTacs"] = o.ImeiTacs
return toSerialize, nil
}
func (o *RacsConfiguration) 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{
"racsId",
"imeiTacs",
}
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)
}
}
varRacsConfiguration := _RacsConfiguration{}
err = json.Unmarshal(bytes, &varRacsConfiguration)
if err != nil {
return err
}
*o = RacsConfiguration(varRacsConfiguration)
return err
}
type NullableRacsConfiguration struct {
value *RacsConfiguration
isSet bool
}
func (v NullableRacsConfiguration) Get() *RacsConfiguration {
return v.value
}
func (v *NullableRacsConfiguration) Set(val *RacsConfiguration) {
v.value = val
v.isSet = true
}
func (v NullableRacsConfiguration) IsSet() bool {
return v.isSet
}
func (v *NullableRacsConfiguration) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableRacsConfiguration(val *RacsConfiguration) *NullableRacsConfiguration {
return &NullableRacsConfiguration{value: val, isSet: true}
}
func (v NullableRacsConfiguration) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableRacsConfiguration) 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

搜索帮助