代码拉取完成,页面将自动刷新
/*
NRF NFDiscovery Service
NRF NFDiscovery Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nnrf_NFDiscovery
import (
"encoding/json"
)
// checks if the NfInstanceInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &NfInstanceInfo{}
// NfInstanceInfo Contains information on an NF profile matching a discovery request
type NfInstanceInfo struct {
// String providing an URI formatted according to RFC 3986.
NrfDiscApiUri *string `json:"nrfDiscApiUri,omitempty"`
PreferredSearch *PreferredSearch `json:"preferredSearch,omitempty"`
// The key of the map is the JSON Pointer of the priority IE in the NFProfile data type that is altered by the NRF
NrfAlteredPriorities *map[string]int32 `json:"nrfAlteredPriorities,omitempty"`
}
// NewNfInstanceInfo instantiates a new NfInstanceInfo 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 NewNfInstanceInfo() *NfInstanceInfo {
this := NfInstanceInfo{}
return &this
}
// NewNfInstanceInfoWithDefaults instantiates a new NfInstanceInfo 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 NewNfInstanceInfoWithDefaults() *NfInstanceInfo {
this := NfInstanceInfo{}
return &this
}
// GetNrfDiscApiUri returns the NrfDiscApiUri field value if set, zero value otherwise.
func (o *NfInstanceInfo) GetNrfDiscApiUri() string {
if o == nil || IsNil(o.NrfDiscApiUri) {
var ret string
return ret
}
return *o.NrfDiscApiUri
}
// GetNrfDiscApiUriOk returns a tuple with the NrfDiscApiUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NfInstanceInfo) GetNrfDiscApiUriOk() (*string, bool) {
if o == nil || IsNil(o.NrfDiscApiUri) {
return nil, false
}
return o.NrfDiscApiUri, true
}
// HasNrfDiscApiUri returns a boolean if a field has been set.
func (o *NfInstanceInfo) HasNrfDiscApiUri() bool {
if o != nil && !IsNil(o.NrfDiscApiUri) {
return true
}
return false
}
// SetNrfDiscApiUri gets a reference to the given string and assigns it to the NrfDiscApiUri field.
func (o *NfInstanceInfo) SetNrfDiscApiUri(v string) {
o.NrfDiscApiUri = &v
}
// GetPreferredSearch returns the PreferredSearch field value if set, zero value otherwise.
func (o *NfInstanceInfo) GetPreferredSearch() PreferredSearch {
if o == nil || IsNil(o.PreferredSearch) {
var ret PreferredSearch
return ret
}
return *o.PreferredSearch
}
// GetPreferredSearchOk returns a tuple with the PreferredSearch field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NfInstanceInfo) GetPreferredSearchOk() (*PreferredSearch, bool) {
if o == nil || IsNil(o.PreferredSearch) {
return nil, false
}
return o.PreferredSearch, true
}
// HasPreferredSearch returns a boolean if a field has been set.
func (o *NfInstanceInfo) HasPreferredSearch() bool {
if o != nil && !IsNil(o.PreferredSearch) {
return true
}
return false
}
// SetPreferredSearch gets a reference to the given PreferredSearch and assigns it to the PreferredSearch field.
func (o *NfInstanceInfo) SetPreferredSearch(v PreferredSearch) {
o.PreferredSearch = &v
}
// GetNrfAlteredPriorities returns the NrfAlteredPriorities field value if set, zero value otherwise.
func (o *NfInstanceInfo) GetNrfAlteredPriorities() map[string]int32 {
if o == nil || IsNil(o.NrfAlteredPriorities) {
var ret map[string]int32
return ret
}
return *o.NrfAlteredPriorities
}
// GetNrfAlteredPrioritiesOk returns a tuple with the NrfAlteredPriorities field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NfInstanceInfo) GetNrfAlteredPrioritiesOk() (*map[string]int32, bool) {
if o == nil || IsNil(o.NrfAlteredPriorities) {
return nil, false
}
return o.NrfAlteredPriorities, true
}
// HasNrfAlteredPriorities returns a boolean if a field has been set.
func (o *NfInstanceInfo) HasNrfAlteredPriorities() bool {
if o != nil && !IsNil(o.NrfAlteredPriorities) {
return true
}
return false
}
// SetNrfAlteredPriorities gets a reference to the given map[string]int32 and assigns it to the NrfAlteredPriorities field.
func (o *NfInstanceInfo) SetNrfAlteredPriorities(v map[string]int32) {
o.NrfAlteredPriorities = &v
}
func (o NfInstanceInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o NfInstanceInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.NrfDiscApiUri) {
toSerialize["nrfDiscApiUri"] = o.NrfDiscApiUri
}
if !IsNil(o.PreferredSearch) {
toSerialize["preferredSearch"] = o.PreferredSearch
}
if !IsNil(o.NrfAlteredPriorities) {
toSerialize["nrfAlteredPriorities"] = o.NrfAlteredPriorities
}
return toSerialize, nil
}
type NullableNfInstanceInfo struct {
value *NfInstanceInfo
isSet bool
}
func (v NullableNfInstanceInfo) Get() *NfInstanceInfo {
return v.value
}
func (v *NullableNfInstanceInfo) Set(val *NfInstanceInfo) {
v.value = val
v.isSet = true
}
func (v NullableNfInstanceInfo) IsSet() bool {
return v.isSet
}
func (v *NullableNfInstanceInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableNfInstanceInfo(val *NfInstanceInfo) *NullableNfInstanceInfo {
return &NullableNfInstanceInfo{value: val, isSet: true}
}
func (v NullableNfInstanceInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableNfInstanceInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。