代码拉取完成,页面将自动刷新
/*
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 NfServiceInstance type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &NfServiceInstance{}
// NfServiceInstance NF service instance
type NfServiceInstance struct {
ServiceInstanceId *string `json:"serviceInstanceId,omitempty"`
// 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.
NfInstanceId *string `json:"nfInstanceId,omitempty"`
// NF Service Set Identifier (see clause 28.12 of 3GPP TS 23.003) formatted as the following string \"set<Set ID>.sn<Service Name>.nfi<NF Instance ID>.5gc.mnc<MNC>.mcc<MCC>\", or \"set<SetID>.sn<ServiceName>.nfi<NFInstanceID>.5gc.nid<NID>.mnc<MNC>.mcc<MCC>\" with <MCC> encoded as defined in clause 5.4.2 (\"Mcc\" data type definition) <MNC> encoding the Mobile Network Code part of the PLMN, comprising 3 digits. If there are only 2 significant digits in the MNC, one \"0\" digit shall be inserted at the left side to fill the 3 digits coding of MNC. Pattern: '^[0-9]{3}$' <NID> encoded as defined in clause 5.4.2 (\"Nid\" data type definition) <NFInstanceId> encoded as defined in clause 5.3.2 <ServiceName> encoded as defined in 3GPP TS 29.510 <Set ID> encoded as a string of characters consisting of alphabetic characters (A-Z and a-z), digits (0-9) and/or the hyphen (-) and that shall end with either an alphabetic character or a digit.
NfServiceSetId *string `json:"nfServiceSetId,omitempty"`
}
// NewNfServiceInstance instantiates a new NfServiceInstance 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 NewNfServiceInstance() *NfServiceInstance {
this := NfServiceInstance{}
return &this
}
// NewNfServiceInstanceWithDefaults instantiates a new NfServiceInstance 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 NewNfServiceInstanceWithDefaults() *NfServiceInstance {
this := NfServiceInstance{}
return &this
}
// GetServiceInstanceId returns the ServiceInstanceId field value if set, zero value otherwise.
func (o *NfServiceInstance) GetServiceInstanceId() string {
if o == nil || IsNil(o.ServiceInstanceId) {
var ret string
return ret
}
return *o.ServiceInstanceId
}
// GetServiceInstanceIdOk returns a tuple with the ServiceInstanceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NfServiceInstance) GetServiceInstanceIdOk() (*string, bool) {
if o == nil || IsNil(o.ServiceInstanceId) {
return nil, false
}
return o.ServiceInstanceId, true
}
// HasServiceInstanceId returns a boolean if a field has been set.
func (o *NfServiceInstance) HasServiceInstanceId() bool {
if o != nil && !IsNil(o.ServiceInstanceId) {
return true
}
return false
}
// SetServiceInstanceId gets a reference to the given string and assigns it to the ServiceInstanceId field.
func (o *NfServiceInstance) SetServiceInstanceId(v string) {
o.ServiceInstanceId = &v
}
// GetNfInstanceId returns the NfInstanceId field value if set, zero value otherwise.
func (o *NfServiceInstance) GetNfInstanceId() string {
if o == nil || IsNil(o.NfInstanceId) {
var ret string
return ret
}
return *o.NfInstanceId
}
// GetNfInstanceIdOk returns a tuple with the NfInstanceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NfServiceInstance) GetNfInstanceIdOk() (*string, bool) {
if o == nil || IsNil(o.NfInstanceId) {
return nil, false
}
return o.NfInstanceId, true
}
// HasNfInstanceId returns a boolean if a field has been set.
func (o *NfServiceInstance) HasNfInstanceId() bool {
if o != nil && !IsNil(o.NfInstanceId) {
return true
}
return false
}
// SetNfInstanceId gets a reference to the given string and assigns it to the NfInstanceId field.
func (o *NfServiceInstance) SetNfInstanceId(v string) {
o.NfInstanceId = &v
}
// GetNfServiceSetId returns the NfServiceSetId field value if set, zero value otherwise.
func (o *NfServiceInstance) GetNfServiceSetId() string {
if o == nil || IsNil(o.NfServiceSetId) {
var ret string
return ret
}
return *o.NfServiceSetId
}
// GetNfServiceSetIdOk returns a tuple with the NfServiceSetId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NfServiceInstance) GetNfServiceSetIdOk() (*string, bool) {
if o == nil || IsNil(o.NfServiceSetId) {
return nil, false
}
return o.NfServiceSetId, true
}
// HasNfServiceSetId returns a boolean if a field has been set.
func (o *NfServiceInstance) HasNfServiceSetId() bool {
if o != nil && !IsNil(o.NfServiceSetId) {
return true
}
return false
}
// SetNfServiceSetId gets a reference to the given string and assigns it to the NfServiceSetId field.
func (o *NfServiceInstance) SetNfServiceSetId(v string) {
o.NfServiceSetId = &v
}
func (o NfServiceInstance) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o NfServiceInstance) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ServiceInstanceId) {
toSerialize["serviceInstanceId"] = o.ServiceInstanceId
}
if !IsNil(o.NfInstanceId) {
toSerialize["nfInstanceId"] = o.NfInstanceId
}
if !IsNil(o.NfServiceSetId) {
toSerialize["nfServiceSetId"] = o.NfServiceSetId
}
return toSerialize, nil
}
type NullableNfServiceInstance struct {
value *NfServiceInstance
isSet bool
}
func (v NullableNfServiceInstance) Get() *NfServiceInstance {
return v.value
}
func (v *NullableNfServiceInstance) Set(val *NfServiceInstance) {
v.value = val
v.isSet = true
}
func (v NullableNfServiceInstance) IsSet() bool {
return v.isSet
}
func (v *NullableNfServiceInstance) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableNfServiceInstance(val *NfServiceInstance) *NullableNfServiceInstance {
return &NullableNfServiceInstance{value: val, isSet: true}
}
func (v NullableNfServiceInstance) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableNfServiceInstance) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。