1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_av_eap_aka_prime.go 6.49 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
NhssUEAU
HSS UE Authentication Service. © 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_Nhss_UEAU
import (
"encoding/json"
"fmt"
)
// checks if the AvEapAkaPrime type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AvEapAkaPrime{}
// AvEapAkaPrime struct for AvEapAkaPrime
type AvEapAkaPrime struct {
AvType AvType `json:"avType"`
Rand string `json:"rand"`
Xres string `json:"xres"`
Autn string `json:"autn"`
CkPrime string `json:"ckPrime"`
IkPrime string `json:"ikPrime"`
}
type _AvEapAkaPrime AvEapAkaPrime
// NewAvEapAkaPrime instantiates a new AvEapAkaPrime 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 NewAvEapAkaPrime(avType AvType, rand string, xres string, autn string, ckPrime string, ikPrime string) *AvEapAkaPrime {
this := AvEapAkaPrime{}
this.AvType = avType
this.Rand = rand
this.Xres = xres
this.Autn = autn
this.CkPrime = ckPrime
this.IkPrime = ikPrime
return &this
}
// NewAvEapAkaPrimeWithDefaults instantiates a new AvEapAkaPrime 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 NewAvEapAkaPrimeWithDefaults() *AvEapAkaPrime {
this := AvEapAkaPrime{}
return &this
}
// GetAvType returns the AvType field value
func (o *AvEapAkaPrime) GetAvType() AvType {
if o == nil {
var ret AvType
return ret
}
return o.AvType
}
// GetAvTypeOk returns a tuple with the AvType field value
// and a boolean to check if the value has been set.
func (o *AvEapAkaPrime) GetAvTypeOk() (*AvType, bool) {
if o == nil {
return nil, false
}
return &o.AvType, true
}
// SetAvType sets field value
func (o *AvEapAkaPrime) SetAvType(v AvType) {
o.AvType = v
}
// GetRand returns the Rand field value
func (o *AvEapAkaPrime) GetRand() string {
if o == nil {
var ret string
return ret
}
return o.Rand
}
// GetRandOk returns a tuple with the Rand field value
// and a boolean to check if the value has been set.
func (o *AvEapAkaPrime) GetRandOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Rand, true
}
// SetRand sets field value
func (o *AvEapAkaPrime) SetRand(v string) {
o.Rand = v
}
// GetXres returns the Xres field value
func (o *AvEapAkaPrime) GetXres() string {
if o == nil {
var ret string
return ret
}
return o.Xres
}
// GetXresOk returns a tuple with the Xres field value
// and a boolean to check if the value has been set.
func (o *AvEapAkaPrime) GetXresOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Xres, true
}
// SetXres sets field value
func (o *AvEapAkaPrime) SetXres(v string) {
o.Xres = v
}
// GetAutn returns the Autn field value
func (o *AvEapAkaPrime) GetAutn() string {
if o == nil {
var ret string
return ret
}
return o.Autn
}
// GetAutnOk returns a tuple with the Autn field value
// and a boolean to check if the value has been set.
func (o *AvEapAkaPrime) GetAutnOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Autn, true
}
// SetAutn sets field value
func (o *AvEapAkaPrime) SetAutn(v string) {
o.Autn = v
}
// GetCkPrime returns the CkPrime field value
func (o *AvEapAkaPrime) GetCkPrime() string {
if o == nil {
var ret string
return ret
}
return o.CkPrime
}
// GetCkPrimeOk returns a tuple with the CkPrime field value
// and a boolean to check if the value has been set.
func (o *AvEapAkaPrime) GetCkPrimeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.CkPrime, true
}
// SetCkPrime sets field value
func (o *AvEapAkaPrime) SetCkPrime(v string) {
o.CkPrime = v
}
// GetIkPrime returns the IkPrime field value
func (o *AvEapAkaPrime) GetIkPrime() string {
if o == nil {
var ret string
return ret
}
return o.IkPrime
}
// GetIkPrimeOk returns a tuple with the IkPrime field value
// and a boolean to check if the value has been set.
func (o *AvEapAkaPrime) GetIkPrimeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.IkPrime, true
}
// SetIkPrime sets field value
func (o *AvEapAkaPrime) SetIkPrime(v string) {
o.IkPrime = v
}
func (o AvEapAkaPrime) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AvEapAkaPrime) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["avType"] = o.AvType
toSerialize["rand"] = o.Rand
toSerialize["xres"] = o.Xres
toSerialize["autn"] = o.Autn
toSerialize["ckPrime"] = o.CkPrime
toSerialize["ikPrime"] = o.IkPrime
return toSerialize, nil
}
func (o *AvEapAkaPrime) 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{
"avType",
"rand",
"xres",
"autn",
"ckPrime",
"ikPrime",
}
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)
}
}
varAvEapAkaPrime := _AvEapAkaPrime{}
err = json.Unmarshal(bytes, &varAvEapAkaPrime)
if err != nil {
return err
}
*o = AvEapAkaPrime(varAvEapAkaPrime)
return err
}
type NullableAvEapAkaPrime struct {
value *AvEapAkaPrime
isSet bool
}
func (v NullableAvEapAkaPrime) Get() *AvEapAkaPrime {
return v.value
}
func (v *NullableAvEapAkaPrime) Set(val *AvEapAkaPrime) {
v.value = val
v.isSet = true
}
func (v NullableAvEapAkaPrime) IsSet() bool {
return v.isSet
}
func (v *NullableAvEapAkaPrime) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAvEapAkaPrime(val *AvEapAkaPrime) *NullableAvEapAkaPrime {
return &NullableAvEapAkaPrime{value: val, isSet: true}
}
func (v NullableAvEapAkaPrime) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAvEapAkaPrime) 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

搜索帮助