代码拉取完成,页面将自动刷新
/*
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 IwmscInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &IwmscInfo{}
// IwmscInfo Information of an SMS-IWMSC NF Instance
type IwmscInfo struct {
MsisdnRanges []IdentityRange `json:"msisdnRanges,omitempty"`
SupiRanges []SupiRange `json:"supiRanges,omitempty"`
TaiRangeList []TaiRange `json:"taiRangeList,omitempty"`
ScNumber *string `json:"scNumber,omitempty"`
}
// NewIwmscInfo instantiates a new IwmscInfo 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 NewIwmscInfo() *IwmscInfo {
this := IwmscInfo{}
return &this
}
// NewIwmscInfoWithDefaults instantiates a new IwmscInfo 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 NewIwmscInfoWithDefaults() *IwmscInfo {
this := IwmscInfo{}
return &this
}
// GetMsisdnRanges returns the MsisdnRanges field value if set, zero value otherwise.
func (o *IwmscInfo) GetMsisdnRanges() []IdentityRange {
if o == nil || IsNil(o.MsisdnRanges) {
var ret []IdentityRange
return ret
}
return o.MsisdnRanges
}
// GetMsisdnRangesOk returns a tuple with the MsisdnRanges field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IwmscInfo) GetMsisdnRangesOk() ([]IdentityRange, bool) {
if o == nil || IsNil(o.MsisdnRanges) {
return nil, false
}
return o.MsisdnRanges, true
}
// HasMsisdnRanges returns a boolean if a field has been set.
func (o *IwmscInfo) HasMsisdnRanges() bool {
if o != nil && !IsNil(o.MsisdnRanges) {
return true
}
return false
}
// SetMsisdnRanges gets a reference to the given []IdentityRange and assigns it to the MsisdnRanges field.
func (o *IwmscInfo) SetMsisdnRanges(v []IdentityRange) {
o.MsisdnRanges = v
}
// GetSupiRanges returns the SupiRanges field value if set, zero value otherwise.
func (o *IwmscInfo) GetSupiRanges() []SupiRange {
if o == nil || IsNil(o.SupiRanges) {
var ret []SupiRange
return ret
}
return o.SupiRanges
}
// GetSupiRangesOk returns a tuple with the SupiRanges field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IwmscInfo) GetSupiRangesOk() ([]SupiRange, bool) {
if o == nil || IsNil(o.SupiRanges) {
return nil, false
}
return o.SupiRanges, true
}
// HasSupiRanges returns a boolean if a field has been set.
func (o *IwmscInfo) HasSupiRanges() bool {
if o != nil && !IsNil(o.SupiRanges) {
return true
}
return false
}
// SetSupiRanges gets a reference to the given []SupiRange and assigns it to the SupiRanges field.
func (o *IwmscInfo) SetSupiRanges(v []SupiRange) {
o.SupiRanges = v
}
// GetTaiRangeList returns the TaiRangeList field value if set, zero value otherwise.
func (o *IwmscInfo) GetTaiRangeList() []TaiRange {
if o == nil || IsNil(o.TaiRangeList) {
var ret []TaiRange
return ret
}
return o.TaiRangeList
}
// GetTaiRangeListOk returns a tuple with the TaiRangeList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IwmscInfo) GetTaiRangeListOk() ([]TaiRange, bool) {
if o == nil || IsNil(o.TaiRangeList) {
return nil, false
}
return o.TaiRangeList, true
}
// HasTaiRangeList returns a boolean if a field has been set.
func (o *IwmscInfo) HasTaiRangeList() bool {
if o != nil && !IsNil(o.TaiRangeList) {
return true
}
return false
}
// SetTaiRangeList gets a reference to the given []TaiRange and assigns it to the TaiRangeList field.
func (o *IwmscInfo) SetTaiRangeList(v []TaiRange) {
o.TaiRangeList = v
}
// GetScNumber returns the ScNumber field value if set, zero value otherwise.
func (o *IwmscInfo) GetScNumber() string {
if o == nil || IsNil(o.ScNumber) {
var ret string
return ret
}
return *o.ScNumber
}
// GetScNumberOk returns a tuple with the ScNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IwmscInfo) GetScNumberOk() (*string, bool) {
if o == nil || IsNil(o.ScNumber) {
return nil, false
}
return o.ScNumber, true
}
// HasScNumber returns a boolean if a field has been set.
func (o *IwmscInfo) HasScNumber() bool {
if o != nil && !IsNil(o.ScNumber) {
return true
}
return false
}
// SetScNumber gets a reference to the given string and assigns it to the ScNumber field.
func (o *IwmscInfo) SetScNumber(v string) {
o.ScNumber = &v
}
func (o IwmscInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o IwmscInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.MsisdnRanges) {
toSerialize["msisdnRanges"] = o.MsisdnRanges
}
if !IsNil(o.SupiRanges) {
toSerialize["supiRanges"] = o.SupiRanges
}
if !IsNil(o.TaiRangeList) {
toSerialize["taiRangeList"] = o.TaiRangeList
}
if !IsNil(o.ScNumber) {
toSerialize["scNumber"] = o.ScNumber
}
return toSerialize, nil
}
type NullableIwmscInfo struct {
value *IwmscInfo
isSet bool
}
func (v NullableIwmscInfo) Get() *IwmscInfo {
return v.value
}
func (v *NullableIwmscInfo) Set(val *IwmscInfo) {
v.value = val
v.isSet = true
}
func (v NullableIwmscInfo) IsSet() bool {
return v.isSet
}
func (v *NullableIwmscInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIwmscInfo(val *IwmscInfo) *NullableIwmscInfo {
return &NullableIwmscInfo{value: val, isSet: true}
}
func (v NullableIwmscInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIwmscInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。