代码拉取完成,页面将自动刷新
/*
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"
)
// checks if the SmsRouterInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SmsRouterInfo{}
// SmsRouterInfo Addressing information of the SMS Router configured at the UDM
type SmsRouterInfo 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.
NfInstanceId *string `json:"nfInstanceId,omitempty"`
DiameterAddress *NetworkNodeDiameterAddress `json:"diameterAddress,omitempty"`
MapAddress *string `json:"mapAddress,omitempty"`
// String identifying a IPv4 address formatted in the 'dotted decimal' notation as defined in RFC 1166.
RouterIpv4 *string `json:"routerIpv4,omitempty"`
RouterIpv6 *Ipv6Addr `json:"routerIpv6,omitempty"`
// Fully Qualified Domain Name
RouterFqdn *string `json:"routerFqdn,omitempty"`
}
// NewSmsRouterInfo instantiates a new SmsRouterInfo 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 NewSmsRouterInfo() *SmsRouterInfo {
this := SmsRouterInfo{}
return &this
}
// NewSmsRouterInfoWithDefaults instantiates a new SmsRouterInfo 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 NewSmsRouterInfoWithDefaults() *SmsRouterInfo {
this := SmsRouterInfo{}
return &this
}
// GetNfInstanceId returns the NfInstanceId field value if set, zero value otherwise.
func (o *SmsRouterInfo) 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 *SmsRouterInfo) 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 *SmsRouterInfo) 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 *SmsRouterInfo) SetNfInstanceId(v string) {
o.NfInstanceId = &v
}
// GetDiameterAddress returns the DiameterAddress field value if set, zero value otherwise.
func (o *SmsRouterInfo) GetDiameterAddress() NetworkNodeDiameterAddress {
if o == nil || IsNil(o.DiameterAddress) {
var ret NetworkNodeDiameterAddress
return ret
}
return *o.DiameterAddress
}
// GetDiameterAddressOk returns a tuple with the DiameterAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsRouterInfo) GetDiameterAddressOk() (*NetworkNodeDiameterAddress, bool) {
if o == nil || IsNil(o.DiameterAddress) {
return nil, false
}
return o.DiameterAddress, true
}
// HasDiameterAddress returns a boolean if a field has been set.
func (o *SmsRouterInfo) HasDiameterAddress() bool {
if o != nil && !IsNil(o.DiameterAddress) {
return true
}
return false
}
// SetDiameterAddress gets a reference to the given NetworkNodeDiameterAddress and assigns it to the DiameterAddress field.
func (o *SmsRouterInfo) SetDiameterAddress(v NetworkNodeDiameterAddress) {
o.DiameterAddress = &v
}
// GetMapAddress returns the MapAddress field value if set, zero value otherwise.
func (o *SmsRouterInfo) GetMapAddress() string {
if o == nil || IsNil(o.MapAddress) {
var ret string
return ret
}
return *o.MapAddress
}
// GetMapAddressOk returns a tuple with the MapAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsRouterInfo) GetMapAddressOk() (*string, bool) {
if o == nil || IsNil(o.MapAddress) {
return nil, false
}
return o.MapAddress, true
}
// HasMapAddress returns a boolean if a field has been set.
func (o *SmsRouterInfo) HasMapAddress() bool {
if o != nil && !IsNil(o.MapAddress) {
return true
}
return false
}
// SetMapAddress gets a reference to the given string and assigns it to the MapAddress field.
func (o *SmsRouterInfo) SetMapAddress(v string) {
o.MapAddress = &v
}
// GetRouterIpv4 returns the RouterIpv4 field value if set, zero value otherwise.
func (o *SmsRouterInfo) GetRouterIpv4() string {
if o == nil || IsNil(o.RouterIpv4) {
var ret string
return ret
}
return *o.RouterIpv4
}
// GetRouterIpv4Ok returns a tuple with the RouterIpv4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsRouterInfo) GetRouterIpv4Ok() (*string, bool) {
if o == nil || IsNil(o.RouterIpv4) {
return nil, false
}
return o.RouterIpv4, true
}
// HasRouterIpv4 returns a boolean if a field has been set.
func (o *SmsRouterInfo) HasRouterIpv4() bool {
if o != nil && !IsNil(o.RouterIpv4) {
return true
}
return false
}
// SetRouterIpv4 gets a reference to the given string and assigns it to the RouterIpv4 field.
func (o *SmsRouterInfo) SetRouterIpv4(v string) {
o.RouterIpv4 = &v
}
// GetRouterIpv6 returns the RouterIpv6 field value if set, zero value otherwise.
func (o *SmsRouterInfo) GetRouterIpv6() Ipv6Addr {
if o == nil || IsNil(o.RouterIpv6) {
var ret Ipv6Addr
return ret
}
return *o.RouterIpv6
}
// GetRouterIpv6Ok returns a tuple with the RouterIpv6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsRouterInfo) GetRouterIpv6Ok() (*Ipv6Addr, bool) {
if o == nil || IsNil(o.RouterIpv6) {
return nil, false
}
return o.RouterIpv6, true
}
// HasRouterIpv6 returns a boolean if a field has been set.
func (o *SmsRouterInfo) HasRouterIpv6() bool {
if o != nil && !IsNil(o.RouterIpv6) {
return true
}
return false
}
// SetRouterIpv6 gets a reference to the given Ipv6Addr and assigns it to the RouterIpv6 field.
func (o *SmsRouterInfo) SetRouterIpv6(v Ipv6Addr) {
o.RouterIpv6 = &v
}
// GetRouterFqdn returns the RouterFqdn field value if set, zero value otherwise.
func (o *SmsRouterInfo) GetRouterFqdn() string {
if o == nil || IsNil(o.RouterFqdn) {
var ret string
return ret
}
return *o.RouterFqdn
}
// GetRouterFqdnOk returns a tuple with the RouterFqdn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsRouterInfo) GetRouterFqdnOk() (*string, bool) {
if o == nil || IsNil(o.RouterFqdn) {
return nil, false
}
return o.RouterFqdn, true
}
// HasRouterFqdn returns a boolean if a field has been set.
func (o *SmsRouterInfo) HasRouterFqdn() bool {
if o != nil && !IsNil(o.RouterFqdn) {
return true
}
return false
}
// SetRouterFqdn gets a reference to the given string and assigns it to the RouterFqdn field.
func (o *SmsRouterInfo) SetRouterFqdn(v string) {
o.RouterFqdn = &v
}
func (o SmsRouterInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SmsRouterInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.NfInstanceId) {
toSerialize["nfInstanceId"] = o.NfInstanceId
}
if !IsNil(o.DiameterAddress) {
toSerialize["diameterAddress"] = o.DiameterAddress
}
if !IsNil(o.MapAddress) {
toSerialize["mapAddress"] = o.MapAddress
}
if !IsNil(o.RouterIpv4) {
toSerialize["routerIpv4"] = o.RouterIpv4
}
if !IsNil(o.RouterIpv6) {
toSerialize["routerIpv6"] = o.RouterIpv6
}
if !IsNil(o.RouterFqdn) {
toSerialize["routerFqdn"] = o.RouterFqdn
}
return toSerialize, nil
}
type NullableSmsRouterInfo struct {
value *SmsRouterInfo
isSet bool
}
func (v NullableSmsRouterInfo) Get() *SmsRouterInfo {
return v.value
}
func (v *NullableSmsRouterInfo) Set(val *SmsRouterInfo) {
v.value = val
v.isSet = true
}
func (v NullableSmsRouterInfo) IsSet() bool {
return v.isSet
}
func (v *NullableSmsRouterInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSmsRouterInfo(val *SmsRouterInfo) *NullableSmsRouterInfo {
return &NullableSmsRouterInfo{value: val, isSet: true}
}
func (v NullableSmsRouterInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSmsRouterInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。