1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_restricted_code_suffix_pool.go 5.00 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
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)
}
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助