1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_amf3_gpp_access_registration_modification.go 13.51 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Nudm_UECM
Nudm Context Management Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nudm_UECM
import (
"encoding/json"
"fmt"
)
// checks if the Amf3GppAccessRegistrationModification type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Amf3GppAccessRegistrationModification{}
// Amf3GppAccessRegistrationModification struct for Amf3GppAccessRegistrationModification
type Amf3GppAccessRegistrationModification struct {
Guami Guami `json:"guami"`
PurgeFlag *bool `json:"purgeFlag,omitempty"`
// String representing a Permanent Equipment Identifier that may contain - an IMEI or IMEISV, as specified in clause 6.2 of 3GPP TS 23.003; a MAC address for a 5G-RG or FN-RG via wireline access, with an indication that this address cannot be trusted for regulatory purpose if this address cannot be used as an Equipment Identifier of the FN-RG, as specified in clause 4.7.7 of 3GPP TS23.316. Examples are imei-012345678901234 or imeisv-0123456789012345.
Pei *string `json:"pei,omitempty"`
ImsVoPs *ImsVoPs `json:"imsVoPs,omitempty"`
BackupAmfInfo []BackupAmfInfo `json:"backupAmfInfo,omitempty"`
EpsInterworkingInfo *EpsInterworkingInfo `json:"epsInterworkingInfo,omitempty"`
UeSrvccCapability NullableBool `json:"ueSrvccCapability,omitempty"`
UeMINTCapability *bool `json:"ueMINTCapability,omitempty"`
}
type _Amf3GppAccessRegistrationModification Amf3GppAccessRegistrationModification
// NewAmf3GppAccessRegistrationModification instantiates a new Amf3GppAccessRegistrationModification 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 NewAmf3GppAccessRegistrationModification(guami Guami) *Amf3GppAccessRegistrationModification {
this := Amf3GppAccessRegistrationModification{}
this.Guami = guami
return &this
}
// NewAmf3GppAccessRegistrationModificationWithDefaults instantiates a new Amf3GppAccessRegistrationModification 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 NewAmf3GppAccessRegistrationModificationWithDefaults() *Amf3GppAccessRegistrationModification {
this := Amf3GppAccessRegistrationModification{}
return &this
}
// GetGuami returns the Guami field value
func (o *Amf3GppAccessRegistrationModification) GetGuami() Guami {
if o == nil {
var ret Guami
return ret
}
return o.Guami
}
// GetGuamiOk returns a tuple with the Guami field value
// and a boolean to check if the value has been set.
func (o *Amf3GppAccessRegistrationModification) GetGuamiOk() (*Guami, bool) {
if o == nil {
return nil, false
}
return &o.Guami, true
}
// SetGuami sets field value
func (o *Amf3GppAccessRegistrationModification) SetGuami(v Guami) {
o.Guami = v
}
// GetPurgeFlag returns the PurgeFlag field value if set, zero value otherwise.
func (o *Amf3GppAccessRegistrationModification) GetPurgeFlag() bool {
if o == nil || IsNil(o.PurgeFlag) {
var ret bool
return ret
}
return *o.PurgeFlag
}
// GetPurgeFlagOk returns a tuple with the PurgeFlag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Amf3GppAccessRegistrationModification) GetPurgeFlagOk() (*bool, bool) {
if o == nil || IsNil(o.PurgeFlag) {
return nil, false
}
return o.PurgeFlag, true
}
// HasPurgeFlag returns a boolean if a field has been set.
func (o *Amf3GppAccessRegistrationModification) HasPurgeFlag() bool {
if o != nil && !IsNil(o.PurgeFlag) {
return true
}
return false
}
// SetPurgeFlag gets a reference to the given bool and assigns it to the PurgeFlag field.
func (o *Amf3GppAccessRegistrationModification) SetPurgeFlag(v bool) {
o.PurgeFlag = &v
}
// GetPei returns the Pei field value if set, zero value otherwise.
func (o *Amf3GppAccessRegistrationModification) GetPei() string {
if o == nil || IsNil(o.Pei) {
var ret string
return ret
}
return *o.Pei
}
// GetPeiOk returns a tuple with the Pei field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Amf3GppAccessRegistrationModification) GetPeiOk() (*string, bool) {
if o == nil || IsNil(o.Pei) {
return nil, false
}
return o.Pei, true
}
// HasPei returns a boolean if a field has been set.
func (o *Amf3GppAccessRegistrationModification) HasPei() bool {
if o != nil && !IsNil(o.Pei) {
return true
}
return false
}
// SetPei gets a reference to the given string and assigns it to the Pei field.
func (o *Amf3GppAccessRegistrationModification) SetPei(v string) {
o.Pei = &v
}
// GetImsVoPs returns the ImsVoPs field value if set, zero value otherwise.
func (o *Amf3GppAccessRegistrationModification) GetImsVoPs() ImsVoPs {
if o == nil || IsNil(o.ImsVoPs) {
var ret ImsVoPs
return ret
}
return *o.ImsVoPs
}
// GetImsVoPsOk returns a tuple with the ImsVoPs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Amf3GppAccessRegistrationModification) GetImsVoPsOk() (*ImsVoPs, bool) {
if o == nil || IsNil(o.ImsVoPs) {
return nil, false
}
return o.ImsVoPs, true
}
// HasImsVoPs returns a boolean if a field has been set.
func (o *Amf3GppAccessRegistrationModification) HasImsVoPs() bool {
if o != nil && !IsNil(o.ImsVoPs) {
return true
}
return false
}
// SetImsVoPs gets a reference to the given ImsVoPs and assigns it to the ImsVoPs field.
func (o *Amf3GppAccessRegistrationModification) SetImsVoPs(v ImsVoPs) {
o.ImsVoPs = &v
}
// GetBackupAmfInfo returns the BackupAmfInfo field value if set, zero value otherwise.
func (o *Amf3GppAccessRegistrationModification) GetBackupAmfInfo() []BackupAmfInfo {
if o == nil || IsNil(o.BackupAmfInfo) {
var ret []BackupAmfInfo
return ret
}
return o.BackupAmfInfo
}
// GetBackupAmfInfoOk returns a tuple with the BackupAmfInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Amf3GppAccessRegistrationModification) GetBackupAmfInfoOk() ([]BackupAmfInfo, bool) {
if o == nil || IsNil(o.BackupAmfInfo) {
return nil, false
}
return o.BackupAmfInfo, true
}
// HasBackupAmfInfo returns a boolean if a field has been set.
func (o *Amf3GppAccessRegistrationModification) HasBackupAmfInfo() bool {
if o != nil && !IsNil(o.BackupAmfInfo) {
return true
}
return false
}
// SetBackupAmfInfo gets a reference to the given []BackupAmfInfo and assigns it to the BackupAmfInfo field.
func (o *Amf3GppAccessRegistrationModification) SetBackupAmfInfo(v []BackupAmfInfo) {
o.BackupAmfInfo = v
}
// GetEpsInterworkingInfo returns the EpsInterworkingInfo field value if set, zero value otherwise.
func (o *Amf3GppAccessRegistrationModification) GetEpsInterworkingInfo() EpsInterworkingInfo {
if o == nil || IsNil(o.EpsInterworkingInfo) {
var ret EpsInterworkingInfo
return ret
}
return *o.EpsInterworkingInfo
}
// GetEpsInterworkingInfoOk returns a tuple with the EpsInterworkingInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Amf3GppAccessRegistrationModification) GetEpsInterworkingInfoOk() (*EpsInterworkingInfo, bool) {
if o == nil || IsNil(o.EpsInterworkingInfo) {
return nil, false
}
return o.EpsInterworkingInfo, true
}
// HasEpsInterworkingInfo returns a boolean if a field has been set.
func (o *Amf3GppAccessRegistrationModification) HasEpsInterworkingInfo() bool {
if o != nil && !IsNil(o.EpsInterworkingInfo) {
return true
}
return false
}
// SetEpsInterworkingInfo gets a reference to the given EpsInterworkingInfo and assigns it to the EpsInterworkingInfo field.
func (o *Amf3GppAccessRegistrationModification) SetEpsInterworkingInfo(v EpsInterworkingInfo) {
o.EpsInterworkingInfo = &v
}
// GetUeSrvccCapability returns the UeSrvccCapability field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Amf3GppAccessRegistrationModification) GetUeSrvccCapability() bool {
if o == nil || IsNil(o.UeSrvccCapability.Get()) {
var ret bool
return ret
}
return *o.UeSrvccCapability.Get()
}
// GetUeSrvccCapabilityOk returns a tuple with the UeSrvccCapability field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Amf3GppAccessRegistrationModification) GetUeSrvccCapabilityOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.UeSrvccCapability.Get(), o.UeSrvccCapability.IsSet()
}
// HasUeSrvccCapability returns a boolean if a field has been set.
func (o *Amf3GppAccessRegistrationModification) HasUeSrvccCapability() bool {
if o != nil && o.UeSrvccCapability.IsSet() {
return true
}
return false
}
// SetUeSrvccCapability gets a reference to the given NullableBool and assigns it to the UeSrvccCapability field.
func (o *Amf3GppAccessRegistrationModification) SetUeSrvccCapability(v bool) {
o.UeSrvccCapability.Set(&v)
}
// SetUeSrvccCapabilityNil sets the value for UeSrvccCapability to be an explicit nil
func (o *Amf3GppAccessRegistrationModification) SetUeSrvccCapabilityNil() {
o.UeSrvccCapability.Set(nil)
}
// UnsetUeSrvccCapability ensures that no value is present for UeSrvccCapability, not even an explicit nil
func (o *Amf3GppAccessRegistrationModification) UnsetUeSrvccCapability() {
o.UeSrvccCapability.Unset()
}
// GetUeMINTCapability returns the UeMINTCapability field value if set, zero value otherwise.
func (o *Amf3GppAccessRegistrationModification) GetUeMINTCapability() bool {
if o == nil || IsNil(o.UeMINTCapability) {
var ret bool
return ret
}
return *o.UeMINTCapability
}
// GetUeMINTCapabilityOk returns a tuple with the UeMINTCapability field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Amf3GppAccessRegistrationModification) GetUeMINTCapabilityOk() (*bool, bool) {
if o == nil || IsNil(o.UeMINTCapability) {
return nil, false
}
return o.UeMINTCapability, true
}
// HasUeMINTCapability returns a boolean if a field has been set.
func (o *Amf3GppAccessRegistrationModification) HasUeMINTCapability() bool {
if o != nil && !IsNil(o.UeMINTCapability) {
return true
}
return false
}
// SetUeMINTCapability gets a reference to the given bool and assigns it to the UeMINTCapability field.
func (o *Amf3GppAccessRegistrationModification) SetUeMINTCapability(v bool) {
o.UeMINTCapability = &v
}
func (o Amf3GppAccessRegistrationModification) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o Amf3GppAccessRegistrationModification) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["guami"] = o.Guami
if !IsNil(o.PurgeFlag) {
toSerialize["purgeFlag"] = o.PurgeFlag
}
if !IsNil(o.Pei) {
toSerialize["pei"] = o.Pei
}
if !IsNil(o.ImsVoPs) {
toSerialize["imsVoPs"] = o.ImsVoPs
}
if !IsNil(o.BackupAmfInfo) {
toSerialize["backupAmfInfo"] = o.BackupAmfInfo
}
if !IsNil(o.EpsInterworkingInfo) {
toSerialize["epsInterworkingInfo"] = o.EpsInterworkingInfo
}
if o.UeSrvccCapability.IsSet() {
toSerialize["ueSrvccCapability"] = o.UeSrvccCapability.Get()
}
if !IsNil(o.UeMINTCapability) {
toSerialize["ueMINTCapability"] = o.UeMINTCapability
}
return toSerialize, nil
}
func (o *Amf3GppAccessRegistrationModification) 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{
"guami",
}
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)
}
}
varAmf3GppAccessRegistrationModification := _Amf3GppAccessRegistrationModification{}
err = json.Unmarshal(bytes, &varAmf3GppAccessRegistrationModification)
if err != nil {
return err
}
*o = Amf3GppAccessRegistrationModification(varAmf3GppAccessRegistrationModification)
return err
}
type NullableAmf3GppAccessRegistrationModification struct {
value *Amf3GppAccessRegistrationModification
isSet bool
}
func (v NullableAmf3GppAccessRegistrationModification) Get() *Amf3GppAccessRegistrationModification {
return v.value
}
func (v *NullableAmf3GppAccessRegistrationModification) Set(val *Amf3GppAccessRegistrationModification) {
v.value = val
v.isSet = true
}
func (v NullableAmf3GppAccessRegistrationModification) IsSet() bool {
return v.isSet
}
func (v *NullableAmf3GppAccessRegistrationModification) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAmf3GppAccessRegistrationModification(val *Amf3GppAccessRegistrationModification) *NullableAmf3GppAccessRegistrationModification {
return &NullableAmf3GppAccessRegistrationModification{value: val, isSet: true}
}
func (v NullableAmf3GppAccessRegistrationModification) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAmf3GppAccessRegistrationModification) 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

搜索帮助