代码拉取完成,页面将自动刷新
/*
Nudr_DataRepository API OpenAPI file
Unified Data Repository Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 2.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nudr_DR
import (
"encoding/json"
"fmt"
)
// checks if the AmfInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AmfInfo{}
// AmfInfo struct for AmfInfo
type AmfInfo struct {
// String uniquely identifying a NF instance. The format of the NF Instance ID shall be a Universally Unique Identifier (UUID) version 4, as described in IETF RFC 4122.
AmfInstanceId string `json:"amfInstanceId"`
Guami Guami `json:"guami"`
AccessType *AccessType `json:"accessType,omitempty"`
}
type _AmfInfo AmfInfo
// NewAmfInfo instantiates a new AmfInfo 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 NewAmfInfo(amfInstanceId string, guami Guami) *AmfInfo {
this := AmfInfo{}
this.AmfInstanceId = amfInstanceId
this.Guami = guami
return &this
}
// NewAmfInfoWithDefaults instantiates a new AmfInfo 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 NewAmfInfoWithDefaults() *AmfInfo {
this := AmfInfo{}
return &this
}
// GetAmfInstanceId returns the AmfInstanceId field value
func (o *AmfInfo) GetAmfInstanceId() string {
if o == nil {
var ret string
return ret
}
return o.AmfInstanceId
}
// GetAmfInstanceIdOk returns a tuple with the AmfInstanceId field value
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetAmfInstanceIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AmfInstanceId, true
}
// SetAmfInstanceId sets field value
func (o *AmfInfo) SetAmfInstanceId(v string) {
o.AmfInstanceId = v
}
// GetGuami returns the Guami field value
func (o *AmfInfo) 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 *AmfInfo) GetGuamiOk() (*Guami, bool) {
if o == nil {
return nil, false
}
return &o.Guami, true
}
// SetGuami sets field value
func (o *AmfInfo) SetGuami(v Guami) {
o.Guami = v
}
// GetAccessType returns the AccessType field value if set, zero value otherwise.
func (o *AmfInfo) GetAccessType() AccessType {
if o == nil || IsNil(o.AccessType) {
var ret AccessType
return ret
}
return *o.AccessType
}
// GetAccessTypeOk returns a tuple with the AccessType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetAccessTypeOk() (*AccessType, bool) {
if o == nil || IsNil(o.AccessType) {
return nil, false
}
return o.AccessType, true
}
// HasAccessType returns a boolean if a field has been set.
func (o *AmfInfo) HasAccessType() bool {
if o != nil && !IsNil(o.AccessType) {
return true
}
return false
}
// SetAccessType gets a reference to the given AccessType and assigns it to the AccessType field.
func (o *AmfInfo) SetAccessType(v AccessType) {
o.AccessType = &v
}
func (o AmfInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AmfInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["amfInstanceId"] = o.AmfInstanceId
toSerialize["guami"] = o.Guami
if !IsNil(o.AccessType) {
toSerialize["accessType"] = o.AccessType
}
return toSerialize, nil
}
func (o *AmfInfo) 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{
"amfInstanceId",
"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)
}
}
varAmfInfo := _AmfInfo{}
err = json.Unmarshal(bytes, &varAmfInfo)
if err != nil {
return err
}
*o = AmfInfo(varAmfInfo)
return err
}
type NullableAmfInfo struct {
value *AmfInfo
isSet bool
}
func (v NullableAmfInfo) Get() *AmfInfo {
return v.value
}
func (v *NullableAmfInfo) Set(val *AmfInfo) {
v.value = val
v.isSet = true
}
func (v NullableAmfInfo) IsSet() bool {
return v.isSet
}
func (v *NullableAmfInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAmfInfo(val *AmfInfo) *NullableAmfInfo {
return &NullableAmfInfo{value: val, isSet: true}
}
func (v NullableAmfInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAmfInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。