代码拉取完成,页面将自动刷新
/*
N5g-ddnmf_Discovery API
N5g-ddnmf_Discovery Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_N5g_ddnmf_Discovery
import (
"encoding/json"
)
// checks if the RestrictedCodeSuffixPool type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &RestrictedCodeSuffixPool{}
// RestrictedCodeSuffixPool Contains the Restricted Code Suffix Pool.
type RestrictedCodeSuffixPool struct {
CodeSuffixList []string `json:"codeSuffixList,omitempty"`
CodeSuffixRangeList []RestrictedCodeSuffixRange `json:"codeSuffixRangeList,omitempty"`
}
// NewRestrictedCodeSuffixPool instantiates a new RestrictedCodeSuffixPool 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 NewRestrictedCodeSuffixPool() *RestrictedCodeSuffixPool {
this := RestrictedCodeSuffixPool{}
return &this
}
// NewRestrictedCodeSuffixPoolWithDefaults instantiates a new RestrictedCodeSuffixPool 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 NewRestrictedCodeSuffixPoolWithDefaults() *RestrictedCodeSuffixPool {
this := RestrictedCodeSuffixPool{}
return &this
}
// GetCodeSuffixList returns the CodeSuffixList field value if set, zero value otherwise.
func (o *RestrictedCodeSuffixPool) GetCodeSuffixList() []string {
if o == nil || IsNil(o.CodeSuffixList) {
var ret []string
return ret
}
return o.CodeSuffixList
}
// GetCodeSuffixListOk returns a tuple with the CodeSuffixList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RestrictedCodeSuffixPool) GetCodeSuffixListOk() ([]string, bool) {
if o == nil || IsNil(o.CodeSuffixList) {
return nil, false
}
return o.CodeSuffixList, true
}
// HasCodeSuffixList returns a boolean if a field has been set.
func (o *RestrictedCodeSuffixPool) HasCodeSuffixList() bool {
if o != nil && !IsNil(o.CodeSuffixList) {
return true
}
return false
}
// SetCodeSuffixList gets a reference to the given []string and assigns it to the CodeSuffixList field.
func (o *RestrictedCodeSuffixPool) SetCodeSuffixList(v []string) {
o.CodeSuffixList = v
}
// GetCodeSuffixRangeList returns the CodeSuffixRangeList field value if set, zero value otherwise.
func (o *RestrictedCodeSuffixPool) GetCodeSuffixRangeList() []RestrictedCodeSuffixRange {
if o == nil || IsNil(o.CodeSuffixRangeList) {
var ret []RestrictedCodeSuffixRange
return ret
}
return o.CodeSuffixRangeList
}
// GetCodeSuffixRangeListOk returns a tuple with the CodeSuffixRangeList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RestrictedCodeSuffixPool) GetCodeSuffixRangeListOk() ([]RestrictedCodeSuffixRange, bool) {
if o == nil || IsNil(o.CodeSuffixRangeList) {
return nil, false
}
return o.CodeSuffixRangeList, true
}
// HasCodeSuffixRangeList returns a boolean if a field has been set.
func (o *RestrictedCodeSuffixPool) HasCodeSuffixRangeList() bool {
if o != nil && !IsNil(o.CodeSuffixRangeList) {
return true
}
return false
}
// SetCodeSuffixRangeList gets a reference to the given []RestrictedCodeSuffixRange and assigns it to the CodeSuffixRangeList field.
func (o *RestrictedCodeSuffixPool) SetCodeSuffixRangeList(v []RestrictedCodeSuffixRange) {
o.CodeSuffixRangeList = v
}
func (o RestrictedCodeSuffixPool) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o RestrictedCodeSuffixPool) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.CodeSuffixList) {
toSerialize["codeSuffixList"] = o.CodeSuffixList
}
if !IsNil(o.CodeSuffixRangeList) {
toSerialize["codeSuffixRangeList"] = o.CodeSuffixRangeList
}
return toSerialize, nil
}
type NullableRestrictedCodeSuffixPool struct {
value *RestrictedCodeSuffixPool
isSet bool
}
func (v NullableRestrictedCodeSuffixPool) Get() *RestrictedCodeSuffixPool {
return v.value
}
func (v *NullableRestrictedCodeSuffixPool) Set(val *RestrictedCodeSuffixPool) {
v.value = val
v.isSet = true
}
func (v NullableRestrictedCodeSuffixPool) IsSet() bool {
return v.isSet
}
func (v *NullableRestrictedCodeSuffixPool) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableRestrictedCodeSuffixPool(val *RestrictedCodeSuffixPool) *NullableRestrictedCodeSuffixPool {
return &NullableRestrictedCodeSuffixPool{value: val, isSet: true}
}
func (v NullableRestrictedCodeSuffixPool) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableRestrictedCodeSuffixPool) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。