代码拉取完成,页面将自动刷新
/*
Nhss_imsSDM
Nhss Subscriber Data Management Service for IMS. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nhss_imsSDM
import (
"encoding/json"
"fmt"
)
// checks if the MsisdnList type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MsisdnList{}
// MsisdnList List of MSISDNs associated to the IMS public Identity
type MsisdnList struct {
// String containing an additional or basic MSISDN
BasicMsisdn string `json:"basicMsisdn"`
AdditionalMsisdns []string `json:"additionalMsisdns,omitempty"`
}
type _MsisdnList MsisdnList
// NewMsisdnList instantiates a new MsisdnList 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 NewMsisdnList(basicMsisdn string) *MsisdnList {
this := MsisdnList{}
this.BasicMsisdn = basicMsisdn
return &this
}
// NewMsisdnListWithDefaults instantiates a new MsisdnList 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 NewMsisdnListWithDefaults() *MsisdnList {
this := MsisdnList{}
return &this
}
// GetBasicMsisdn returns the BasicMsisdn field value
func (o *MsisdnList) GetBasicMsisdn() string {
if o == nil {
var ret string
return ret
}
return o.BasicMsisdn
}
// GetBasicMsisdnOk returns a tuple with the BasicMsisdn field value
// and a boolean to check if the value has been set.
func (o *MsisdnList) GetBasicMsisdnOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.BasicMsisdn, true
}
// SetBasicMsisdn sets field value
func (o *MsisdnList) SetBasicMsisdn(v string) {
o.BasicMsisdn = v
}
// GetAdditionalMsisdns returns the AdditionalMsisdns field value if set, zero value otherwise.
func (o *MsisdnList) GetAdditionalMsisdns() []string {
if o == nil || IsNil(o.AdditionalMsisdns) {
var ret []string
return ret
}
return o.AdditionalMsisdns
}
// GetAdditionalMsisdnsOk returns a tuple with the AdditionalMsisdns field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MsisdnList) GetAdditionalMsisdnsOk() ([]string, bool) {
if o == nil || IsNil(o.AdditionalMsisdns) {
return nil, false
}
return o.AdditionalMsisdns, true
}
// HasAdditionalMsisdns returns a boolean if a field has been set.
func (o *MsisdnList) HasAdditionalMsisdns() bool {
if o != nil && !IsNil(o.AdditionalMsisdns) {
return true
}
return false
}
// SetAdditionalMsisdns gets a reference to the given []string and assigns it to the AdditionalMsisdns field.
func (o *MsisdnList) SetAdditionalMsisdns(v []string) {
o.AdditionalMsisdns = v
}
func (o MsisdnList) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MsisdnList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["basicMsisdn"] = o.BasicMsisdn
if !IsNil(o.AdditionalMsisdns) {
toSerialize["additionalMsisdns"] = o.AdditionalMsisdns
}
return toSerialize, nil
}
func (o *MsisdnList) 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{
"basicMsisdn",
}
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)
}
}
varMsisdnList := _MsisdnList{}
err = json.Unmarshal(bytes, &varMsisdnList)
if err != nil {
return err
}
*o = MsisdnList(varMsisdnList)
return err
}
type NullableMsisdnList struct {
value *MsisdnList
isSet bool
}
func (v NullableMsisdnList) Get() *MsisdnList {
return v.value
}
func (v *NullableMsisdnList) Set(val *MsisdnList) {
v.value = val
v.isSet = true
}
func (v NullableMsisdnList) IsSet() bool {
return v.isSet
}
func (v *NullableMsisdnList) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMsisdnList(val *MsisdnList) *NullableMsisdnList {
return &NullableMsisdnList{value: val, isSet: true}
}
func (v NullableMsisdnList) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMsisdnList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。